
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0052D4;
    --primary-hover: #003a9b;
    --accent-color: #00c2a8;
    --secondary-color: #F2F5F9;
    --text-dark: #1c2b3a;
    --text-light: #6c7a89;
    --white-color: #ffffff;
    --border-color: #e8ecef;
    --shadow: 0 10px 30px rgba(0, 82, 212, 0.1);
    --shadow-lg: 0 24px 48px rgba(15, 35, 75, 0.14);
    --radius-lg: 22px;
    --gradient-primary: linear-gradient(135deg, #0052D4 0%, #4364F7 50%, #00c2a8 100%);
    --font-family: 'Poppins', sans-serif;
}

/* Base styles */
body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--white-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
}

.container {
    max-width: 1140px;
}

/* Navbar */
.freshspace-navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--white-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    line-height: 1;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.freshspace-pill {
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    box-shadow: none;
}

.btn-outline-primary.freshspace-pill {
    border-width: 2px;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 10px 24px rgba(0, 82, 212, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--gradient-primary);
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 82, 212, 0.32);
}

.btn-outline-primary {
    border-width: 2px;
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* Hero Section Carousel */
.hero-carousel {
    position: relative;
    height: 90vh;
    min-height: 700px;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    position: relative;
    height: 100%;
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 15, 40, 0.35) 0%, rgba(5, 15, 40, 0.65) 100%);
}

.carousel-caption {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    bottom: 12%;
    left: 10%;
    right: 10%;
    text-align: center;
    z-index: 2;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white-color);
    text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.carousel-caption p {
    font-size: 1.25rem;
    color: var(--white-color);
}

.carousel-caption .btn {
    padding: 12px 28px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Feature Item */
.feature-item {
    text-align: center;
    padding: 34px 28px;
    transition: all 0.3s ease;
    background: var(--white-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-item i {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white-color);
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Service Card */
.service-card {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 30px;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card img.card-img-top {
    border-radius: 14px;
    height: 200px;
    object-fit: cover;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* User Dashboard Styles */
.dashboard-grid-layout {
    display: grid;
    gap: 24px;
}

.dashboard-intro-card,
.dashboard-panel,
.dashboard-quick-actions {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.dashboard-intro-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 82, 212, 0.1);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dashboard-title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0;
    line-height: 1.05;
}

.dashboard-description {
    color: var(--text-light);
    max-width: 720px;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-actions .btn {
    min-width: 200px;
}

.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-stat-card {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 26px;
    border-radius: 22px;
}

.dashboard-stat-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.25rem;
}

.dashboard-stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.dashboard-stat-value {
    font-size: 2rem;
    margin: 0;
    font-weight: 900;
}

.dashboard-stat-note {
    margin: 0;
    color: var(--text-light);
}

.dashboard-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.dashboard-panel-large {
    min-height: 420px;
}

.dashboard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-action-list {
    display: grid;
    gap: 14px;
}

.dashboard-action-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dashboard-action-link:hover {
    border-color: rgba(0, 82, 212, 0.22);
    background: rgba(0, 82, 212, 0.04);
}

.dashboard-info-box {
    border: 1px solid rgba(0, 82, 212, 0.14);
    border-radius: 20px;
    padding: 22px;
    background: rgba(242, 245, 249, 1);
}

.dashboard-info-box h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.dashboard-table th,
.dashboard-table td {
    vertical-align: middle;
}

@media (max-width: 991px) {
    .dashboard-stats-row,
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .dashboard-intro-card {
        padding: 22px;
    }

    .dashboard-actions {
        flex-direction: column;
    }
}

/* Forms */
.form-control {
    border-radius: 5px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.form-card {
    background: var(--white-color);
    box-shadow: var(--shadow);
    border-radius: 10px;
    padding: 40px;
}

/* Booking page */
.booking-page {
    padding: 60px 0;
    min-height: calc(100vh - 120px);
    background: var(--secondary-color);
}

.booking-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white-color);
    border-radius: 28px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.booking-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 36px;
}

.booking-card-title {
    font-size: clamp(2rem, 2.6vw, 2.8rem);
    margin: 0.5rem 0 0;
    line-height: 1.05;
}

.booking-card-subtitle {
    max-width: 620px;
}

.booking-price-panel {
    min-width: 220px;
    padding: 18px 22px;
    border-radius: 20px;
    background: rgba(0, 82, 212, 0.05);
    border: 1px solid rgba(0, 82, 212, 0.12);
    text-align: center;
}

.booking-price-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.booking-price-value {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary-color);
}

.booking-form .form-label {
    font-weight: 600;
}

.booking-form .form-control,
.booking-form .form-select,
.booking-form textarea {
    border-radius: 14px;
    padding: 16px 18px;
}

.booking-form textarea {
    min-height: 140px;
}

.booking-form .btn {
    border-radius: 14px;
    padding: 15px 22px;
}

@media (max-width: 768px) {
    .booking-card {
        padding: 30px 24px;
    }

    .booking-card-header {
        flex-direction: column;
    }

    .booking-price-panel {
        width: 100%;
    }
}

/* ================================================================
   Shared Portal Shell (Customer & Staff dashboards)
   Theme is switched via .theme-customer / .theme-staff modifiers.
   ================================================================ */
.portal-shell {
    --portal-accent: var(--primary-color);
    --portal-accent-soft: rgba(0, 82, 212, 0.12);
    --portal-sidebar-bg: var(--text-dark);
    min-height: 100vh;
    background: var(--secondary-color);
    display: flex;
    flex-direction: column;
}

.portal-shell.theme-customer {
    --portal-accent: var(--accent-color);
    --portal-accent-soft: rgba(0, 194, 168, 0.14);
    --portal-sidebar-bg: #0b2b3d;
}

.portal-shell.theme-staff {
    --portal-accent: #7c3aed;
    --portal-accent-soft: rgba(124, 58, 237, 0.14);
    --portal-sidebar-bg: #241b38;
}

.portal-shell.theme-admin {
    --portal-accent: var(--primary-color);
    --portal-accent-soft: rgba(0, 82, 212, 0.10);
    --portal-sidebar-bg: var(--text-dark);
}

.portal-search-sm {
    min-width: 220px;
}

.portal-search-sm .form-control {
    border-radius: 999px;
}

.portal-topbar {
    height: 64px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.portal-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-brand {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
}

.portal-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: var(--portal-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.portal-brand-text {
    font-weight: 800;
    color: var(--text-dark);
}

.portal-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.portal-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.portal-user-role {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 700;
    text-transform: capitalize;
}

.portal-user-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
}

.portal-body {
    flex: 1;
    display: flex;
    min-height: calc(100vh - 64px);
}

.portal-sidebar {
    width: 250px;
    background: var(--portal-sidebar-bg);
    color: #fff;
    flex-shrink: 0;
}

.portal-sidebar-inner {
    padding: 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 64px;
}

.portal-sidebar-header {
    margin-bottom: 18px;
}

.portal-sidebar-title {
    font-weight: 900;
    font-size: 16px;
}

.portal-sidebar-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.portal-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.portal-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.portal-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
}

.portal-nav-link.active {
    background: var(--portal-accent);
    color: #fff;
}

.portal-nav-icon {
    width: 22px;
    text-align: center;
}

.portal-sidebar-footer {
    margin-top: auto;
}

.portal-microstat {
    font-weight: 800;
    margin-top: 4px;
}

.portal-content {
    flex: 1;
    padding: 26px 22px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.portal-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.portal-page-title {
    margin: 0;
    font-weight: 900;
    font-size: 22px;
}

.portal-page-subtitle {
    margin: 4px 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.portal-chip {
    background: var(--portal-accent-soft);
    color: var(--portal-accent);
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
}

.portal-sidebar-toggle {
    display: none;
}

.portal-sidebar-overlay {
    display: none;
}

@media (max-width: 991px) {
    .portal-sidebar {
        position: fixed;
        left: -260px;
        top: 64px;
        bottom: 0;
        z-index: 60;
        transition: left 0.25s ease;
        overflow-y: auto;
    }

    .portal-shell.is-sidebar-open .portal-sidebar {
        left: 0;
    }

    .portal-sidebar-toggle {
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
        width: 26px;
        background: none;
        border: none;
        padding: 0;
    }

    .portal-sidebar-toggle span {
        width: 100%;
        height: 2px;
        background: var(--text-dark);
        border-radius: 2px;
    }

    .portal-shell.is-sidebar-open .portal-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 64px 0 0 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 55;
    }
}

/* Job cards used on the staff portal */
.job-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.job-card-meta {
    display: grid;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.job-card-meta i {
    width: 16px;
    text-align: center;
    margin-right: 6px;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white-color);
    padding: 60px 0 25px 0;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: white;
    padding: 14px 18px;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    font-weight: 700;
    text-decoration: none;
    z-index: 1050;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.whatsapp-float i {
    font-size: 1.2rem;
}

.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    font-size: 0.75rem;
    color: white;
}

.whatsapp-mobile-only {
    display: none;
}

@media (max-width: 992px) {
    .whatsapp-mobile-only {
        display: inline-flex;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        padding: 12px 16px;
    }
}
.footer h3 {
    color: var(--white-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.footer-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--primary-color);
    color: var(--white-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.footer p {
    color: var(--text-light);
}

.footer-links a,
.footer-links {
    color: var(--text-light);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.text-light-50 {
    color: rgba(255,255,255,0.7);
}

.footer .social-links {
    display: flex;
    gap: 14px;
    align-items: center;
}

.footer .social-links .social-link {
    color: var(--white-color);
    font-size: 1.5rem;
}

.footer .copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
    color: var(--text-light);
}

/* --- Price Calculator v2 --- */
.calculator-container {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: start;
}

.calc-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.calc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 2px solid var(--border-color);
    background: var(--white-color);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-chip input {
    display: none;
}

.calc-chip.active,
.calc-chip:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(0, 82, 212, 0.08);
    color: var(--primary-color);
}

.calc-chip .discount-tag {
    background: var(--accent-color);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
}

.calc-addon-list {
    display: grid;
    gap: 12px;
}

.calc-addon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.calc-addon:hover {
    border-color: rgba(0, 82, 212, 0.3);
}

.calc-addon:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(0, 82, 212, 0.05);
}

.calc-addon .addon-name {
    font-weight: 600;
}

.calc-addon .addon-price {
    color: var(--text-light);
    font-weight: 700;
    white-space: nowrap;
}

.calc-summary-card {
    position: sticky;
    top: 24px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.calc-summary-card .price-display {
    font-size: 2.6rem;
    font-weight: 900;
    margin: 6px 0 18px;
}

.calc-breakdown {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.calc-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.calc-breakdown-row.total {
    font-weight: 800;
    font-size: 1.05rem;
    border-bottom: none;
}

.calc-summary-card .btn-light {
    border-radius: 12px;
    font-weight: 700;
    width: 100%;
}

@media (max-width: 900px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .calc-summary-card {
        position: static;
    }
}

/* --- Admin Panel Styles --- */

.admin-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--secondary-color);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.admin-topbar-left, .admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-sidebar-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
}
.admin-sidebar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
}

.admin-brand-mark {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 700;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-brand-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.admin-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}
.admin-user-name {
    font-weight: 600;
}
.admin-user-role {
    font-size: 0.8rem;
    color: var(--text-light);
}

.admin-body {
    display: flex;
    flex-grow: 1;
}

.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background-color: var(--white-color);
    border-right: 1px solid var(--border-color);
    transition: transform 0.3s ease-in-out;
}

.admin-sidebar-inner {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-sidebar-header {
    padding: 0 0.5rem 1.5rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}
.admin-sidebar-title {
    font-weight: 700;
    font-size: 1.2rem;
}
.admin-sidebar-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.admin-nav-link:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.admin-nav-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding: 1rem 0.5rem 0 0.5rem;
    font-size: 0.8rem;
}
.admin-microstat {
    font-weight: 600;
}

.admin-content {
    flex-grow: 1;
    padding: 1.5rem;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.admin-page-title {
    margin: 0;
    font-size: 1.75rem;
}
.admin-chip {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Overlay for when mobile sidebar is open */
.admin-sidebar-overlay {
    display: none;
}

/* Responsive Admin Styles */
@media (max-width: 992px) {
    .is-sidebar-open .admin-sidebar-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .is-sidebar-open .admin-sidebar-toggle span:nth-child(2) {
        opacity: 0;
    }
    .is-sidebar-open .admin-sidebar-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1030;
        transform: translateX(-100%);
    }
    .is-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }
    .is-sidebar-open .admin-sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1025;
    }
    .admin-brand-text {
        display: none; /* Hide brand text on smaller screens */
    }
}

@media (max-width: 768px) {
    .admin-content {
        padding: 1rem;
    }
    .admin-topbar {
        padding: 0.75rem 1rem;
    }
}

/* Admin stat cards + soft background helpers */
.dashboard-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    height: 100%;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bg-primary-soft { background: rgba(0, 82, 212, 0.08); }
.bg-success-soft { background: rgba(25, 135, 84, 0.08); }
.bg-danger-soft { background: rgba(220, 53, 69, 0.08); }
.bg-warning-soft { background: rgba(255, 193, 7, 0.12); }

.bg-primary-soft.text-primary,
.text-primary { color: var(--primary-color) !important; }

.admin-page .card,
.admin-page .table-responsive {
    border-radius: var(--radius-lg);
}
