/* =====================================================
   Exlantix – Jazdy testowe
   Wspólny CSS dla całego systemu
   Ścieżka: /cars/assets/css/main.css
===================================================== */

/* ---------- RESET / BASE ---------- */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
    line-height: 1.4;
}

/* ---------- TYPOGRAFIA ---------- */
h1, h2, h3 {
    margin: 0 0 12px 0;
    font-weight: 600;
}

h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }

p {
    margin: 0 0 10px 0;
}

/* ---------- LINKI ---------- */
a {
    color: #60a5fa;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ---------- PRZYCISKI ---------- */
button,
.btn {
    display: inline-block;
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #2563eb;
    color: #fff;
    transition: background 0.15s ease;
}

button:hover,
.btn:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #334155;
}
.btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: #dc2626;
}
.btn-danger:hover {
    background: #b91c1c;
}

/* ---------- FORMULARZE ---------- */
label {
    display: block;
    margin-top: 14px;
    font-size: 14px;
    color: #cbd5f5;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 4px;
    border: none;
    font-size: 15px;
    background: #020617;
    color: #e5e7eb;
}

input::placeholder {
    color: #64748b;
}

/* ---------- KOMUNIKATY ---------- */
.error {
    margin: 12px 0;
    padding: 8px;
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    font-size: 14px;
    border-radius: 4px;
    text-align: center;
}

.success {
    margin: 12px 0;
    padding: 8px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-size: 14px;
    border-radius: 4px;
}

/* =====================================================
   LOGIN
===================================================== */
.page-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-box {
    background: #020617;
    padding: 26px;
    border-radius: 8px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.login-box h1 {
    text-align: center;
}

.brand {
    text-align: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: #94a3b8;
}

/* =====================================================
   LAYOUT OGÓLNY (ADMIN / SALES)
===================================================== */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: #020617;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
}

.header .title {
    font-size: 16px;
    font-weight: 600;
}

.header .user {
    font-size: 13px;
    color: #94a3b8;
}

.content {
    flex: 1;
    padding: 20px;
}

/* =====================================================
   TABELKI / LISTY
===================================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.table th,
.table td {
    padding: 10px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #1e293b;
}

.table th {
    color: #cbd5f5;
    font-weight: 600;
}

.row-muted {
    color: #64748b;
}

/* ---------- STATUSY ---------- */
.status-booked {
    color: #60a5fa;
}
.status-done {
    color: #22c55e;
}
.status-no-show {
    color: #f87171;
}
.status-cancelled {
    color: #94a3b8;
    text-decoration: line-through;
}

.slot {
    padding: 6px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.slot-free {
    background: #f4f4f4;
    color: #666;
}

.slot-booked {
    background: #ffe0e0;
    color: #900;
    font-weight: bold;
}

.slot-booked:hover {
    background: #ffcccc;
}

.slot-disabled {
    background: #e0e0e0;
    color: #999;
    cursor: default;
}

.btn-secondary {
    display:inline-block;
    padding:8px 14px;
    background:#eee;
    color:#333;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
}

.btn-secondary:hover {
    background:#ddd;
}

/* =====================================================
   RESPONSYWNOŚĆ
===================================================== */
@media (max-width: 768px) {
    .content {
        padding: 14px;
    }

    h1 {
        font-size: 20px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 420px) {
    .login-box {
        padding: 20px;
    }
}
