@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== Base ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f4f6fa;
    color: #1e293b;
    font-size: 0.9rem;
}

/* ===== Sidebar ===== */
#sidebar-wrapper {
    background: #fff;
    border-right: 1px solid #e8ecf1;
    min-height: 100vh;
    transition: all 0.3s ease;
}
.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid #f0f2f5;
}
.sidebar-brand .brand-name {
    display: block;
    text-decoration: none;
    text-align: center;
}
.sidebar-brand .brand-logo {
    max-height: 60px;
    width: auto;
}

.sidebar-nav {
    padding: 12px;
}
.sidebar-nav .nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 16px 12px 8px;
}
.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}
.sidebar-nav .nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}
.sidebar-nav .nav-item:hover {
    background: #f1f5f9;
    color: #334155;
}
.sidebar-nav .nav-item.active {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    font-weight: 600;
}
.sidebar-nav .nav-item.active i {
    color: #3b82f6;
}
.sidebar-nav .nav-item .badge {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 3px 7px;
    border-radius: 6px;
}

/* ===== Top Navbar ===== */
.top-navbar {
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
    padding: 12px 24px;
}
.top-navbar .page-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
}
.top-navbar .btn-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.top-navbar .btn-toggle:hover {
    background: #f1f5f9;
    color: #334155;
}
.top-navbar .notification-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    transition: all 0.2s;
}
.top-navbar .notification-btn:hover { background: #f1f5f9; }
.top-navbar .admin-dropdown .btn {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 6px 14px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #475569;
}
.top-navbar .admin-dropdown .btn:hover { background: #f1f5f9; }
.top-navbar .admin-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 6px;
}

/* ===== Content ===== */
.content-area { padding: 24px; }

/* ===== Stat Cards ===== */
.stat-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8ecf1;
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 14px 0 0 14px;
}
.stat-card.card-blue::before { background: linear-gradient(180deg, #3b82f6, #2563eb); }
.stat-card.card-green::before { background: linear-gradient(180deg, #22c55e, #16a34a); }
.stat-card.card-amber::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.stat-card.card-purple::before { background: linear-gradient(180deg, #8b5cf6, #7c3aed); }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.stat-card.card-blue .stat-icon { background: #eff6ff; color: #3b82f6; }
.stat-card.card-green .stat-icon { background: #f0fdf4; color: #22c55e; }
.stat-card.card-amber .stat-icon { background: #fffbeb; color: #f59e0b; }
.stat-card.card-purple .stat-icon { background: #f5f3ff; color: #8b5cf6; }
.stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-top: 4px;
}

/* ===== Cards ===== */
.card {
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    box-shadow: none;
    overflow: hidden;
}
.card-header {
    background: #fff;
    border-bottom: 1px solid #f0f2f5;
    padding: 16px 20px;
    font-weight: 600;
}

/* ===== Tables ===== */
.table { margin-bottom: 0; }
.table thead th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    border-bottom: 1px solid #f0f2f5;
    padding: 12px 16px;
    background: #fafbfc;
}
.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f5f6f8;
    color: #475569;
    font-size: 0.85rem;
}
.table tbody tr:hover { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: none; }
.img-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e8ecf1;
}

/* ===== Badges ===== */
.badge {
    font-weight: 500;
    font-size: 0.73rem;
    padding: 5px 10px;
    border-radius: 8px;
}
.badge.bg-success { background: #dcfce7 !important; color: #15803d !important; }
.badge.bg-danger { background: #fee2e2 !important; color: #b91c1c !important; }
.badge.bg-warning { background: #fef3c7 !important; color: #92400e !important; }
.badge.bg-primary { background: #dbeafe !important; color: #1d4ed8 !important; }
.badge.bg-info { background: #e0f2fe !important; color: #0369a1 !important; }
.badge.bg-secondary { background: #f1f5f9 !important; color: #475569 !important; }

/* ===== Buttons ===== */
.btn { border-radius: 10px; font-weight: 500; font-size: 0.85rem; }
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    box-shadow: 0 2px 6px rgba(59,130,246,.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 12px rgba(59,130,246,.35);
}
.btn-outline-primary {
    border-color: #bfdbfe;
    color: #2563eb;
}
.btn-outline-primary:hover {
    background: #eff6ff;
    border-color: #93bbfd;
    color: #1d4ed8;
}
.btn-outline-danger {
    border-color: #fecaca;
    color: #dc2626;
}
.btn-outline-danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}
.btn-outline-secondary {
    border-color: #e2e8f0;
    color: #64748b;
}
.btn-outline-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}
.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
}

/* ===== Forms ===== */
.form-control, .form-select {
    border-radius: 10px;
    border-color: #e2e8f0;
    font-size: 0.88rem;
    padding: 10px 14px;
}
.form-control:focus, .form-select:focus {
    border-color: #93bbfd;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-label {
    font-weight: 500;
    font-size: 0.82rem;
    color: #475569;
    margin-bottom: 6px;
}
.form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* ===== TinyMCE Editor ===== */
.tox-tinymce { border: 1px solid #e2e8f0 !important; border-radius: 12px !important; overflow: hidden; }
.tox .tox-toolbar, .tox .tox-toolbar__overflow, .tox .tox-toolbar__primary { background: #f8fafc !important; }
.tox .tox-menubar { background: #f8fafc !important; }
.tox .tox-statusbar { border-top: 1px solid #e8ecf1 !important; }

/* ===== Alerts ===== */
.alert {
    border-radius: 12px;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 14px 20px;
}
.alert-success { background: #f0fdf4; color: #166534; }
.alert-danger { background: #fef2f2; color: #991b1b; }

/* ===== Pagination ===== */
.page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #e8ecf1;
    color: #475569;
    font-weight: 500;
    font-size: 0.82rem;
}
.page-item.active .page-link {
    background: #3b82f6;
    border-color: #3b82f6;
}

/* ===== Price Summary ===== */
.price-summary { background: #f8fafc; border-radius: 14px; padding: 20px; border: 1px solid #e8ecf1; }
.price-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.88rem; }
.price-total { font-size: 1.2rem; font-weight: 700; border-top: 2px solid #e2e8f0; padding-top: 10px; margin-top: 6px; color: #0f172a; }

/* ===== Booking Wizard ===== */
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-progress .step {
    flex: 1; text-align: center; padding: 12px 0; position: relative;
    font-size: 0.8rem; color: #94a3b8; font-weight: 500;
}
.wizard-progress .step.active { color: #2563eb; font-weight: 600; }
.wizard-progress .step.completed { color: #16a34a; }
.wizard-progress .step::after {
    content: ''; position: absolute; top: 50%; right: 0;
    width: 50%; height: 2px; background: #e2e8f0; z-index: 0;
}
.wizard-progress .step::before {
    content: ''; position: absolute; top: 50%; left: 0;
    width: 50%; height: 2px; background: #e2e8f0; z-index: 0;
}
.wizard-progress .step:first-child::before,
.wizard-progress .step:last-child::after { display: none; }
.wizard-progress .step.completed::before,
.wizard-progress .step.active::before { background: #3b82f6; }
.wizard-progress .step.completed::after { background: #3b82f6; }
.wizard-progress .step-number {
    width: 34px; height: 34px; border-radius: 10px;
    background: #e2e8f0; color: #fff; display: inline-flex;
    align-items: center; justify-content: center;
    font-weight: 600; position: relative; z-index: 1; margin-bottom: 4px;
}
.wizard-progress .step.active .step-number { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.wizard-progress .step.completed .step-number { background: linear-gradient(135deg, #22c55e, #16a34a); }

.service-option, .extra-option {
    cursor: pointer; border: 2px solid #e8ecf1; border-radius: 14px;
    padding: 20px; text-align: center; transition: all 0.2s; background: #fff;
}
.service-option:hover, .extra-option:hover { border-color: #93bbfd; background: #f8faff; }
.service-option.selected, .extra-option.selected {
    border-color: #3b82f6; background: #eff6ff; box-shadow: 0 0 0 1px #3b82f6;
}

/* ===== Login ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f5ff 0%, #e8ecf4 100%);
}
.login-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}
.login-card .login-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

/* ===== Dropdown ===== */
.dropdown-menu {
    border-radius: 12px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    padding: 6px;
}
.dropdown-item {
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 8px 12px;
}
.dropdown-item:hover { background: #f1f5f9; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
