:root {
    --primary: #4361ee;
    --primary-hover: #3a56d4;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --body-bg: #f1f5f9;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
}

body {
    background-color: var(--body-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    padding: 0.6rem 1rem;
    border-bottom: 3px solid var(--primary);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.navbar-brand .brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    margin-right: 0.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: 6px;
    margin: 0 2px;
    transition: background 0.15s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.1);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1.1rem;
    color: #475569;
}

.card-body {
    padding: 1.1rem;
}

/* Stat cards */
.stat-card {
    border-radius: 12px;
    padding: 1.25rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    right: -15px;
    top: -15px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-card.waiting { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card.checking { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-card.booked { background: linear-gradient(135deg, #10b981, #059669); }
.stat-card.error { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* Tables */
.table {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.table th {
    white-space: nowrap;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    border-bottom-width: 2px;
    padding: 0.65rem 0.75rem;
}

.table td {
    padding: 0.65rem 0.75rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Status badges */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.7em;
    border-radius: 6px;
    letter-spacing: 0.01em;
}

/* Buttons */
.btn {
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.45rem 1rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border-color: #d1d5db;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
}

/* Page header */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0;
}

/* Login */
.login-card {
    border-radius: 16px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.login-header h3 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.login-header p {
    opacity: 0.7;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Client search in booking form */
.client-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;
}

.client-item {
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    transition: background 0.1s;
}

.client-item:hover {
    background: #f1f5f9;
}

/* Detail info table */
.info-table th {
    color: #64748b;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
    padding: 0.5rem 0.75rem;
    width: 40%;
}

.info-table td {
    font-weight: 500;
    color: #1e293b;
}

/* Filter buttons */
.filter-group .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
}
