/* === Layout === */
.navbar-brand-logo {
    border-radius: 8px;
    object-fit: contain;
}
.sidebar-desktop {
    min-height: calc(100vh - 72px);
}
.sidebar-nav {
    padding: 1rem 0;
}
.sidebar-nav h3 {
    padding: 1.25rem 1.25rem 0.4rem;
    margin: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
}
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-nav a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: all 0.15s;
}
.sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
}
.main-content {
    background: #f5f6fa;
    min-height: calc(100vh - 72px);
}

/* === Role Theme Colors === */
.role-super_admin .role-navbar { background: #7f1d1d !important; }
.role-super_admin .role-sidebar { background: #5c1212 !important; }
.role-hmo .role-navbar { background: #1e3a5f !important; }
.role-hmo .role-sidebar { background: #15273f !important; }
.role-hospital .role-navbar { background: #0f5c4a !important; }
.role-hospital .role-sidebar { background: #0a3d31 !important; }
.role-pharmacy .role-navbar { background: #0f5c5c !important; }
.role-pharmacy .role-sidebar { background: #0a3d3d !important; }
.role-client .role-navbar { background: #4a1d6b !important; }
.role-client .role-sidebar { background: #321449 !important; }
.role-company .role-navbar { background: #7a4a0e !important; }
.role-company .role-sidebar { background: #523108 !important; }
.role-gym .role-navbar { background: #1a3a6b !important; }
.role-gym .role-sidebar { background: #122849 !important; }
.role-spa .role-navbar { background: #5b2d6e !important; }
.role-spa .role-sidebar { background: #3d1f4b !important; }
.role-ai_auditor .role-navbar { background: #312e81 !important; }
.role-ai_auditor .role-sidebar { background: #1e1b4b !important; }

.role-navbar { color: #fff; }
.role-navbar .navbar-brand { color: #fff; }
.role-navbar .navbar-brand:hover { color: rgba(255,255,255,0.85); }
.role-navbar .btn { color: #fff; border-color: rgba(255,255,255,0.4); }
.role-navbar .btn:hover { background: rgba(255,255,255,0.15); }

/* === Notification Bell === */
.btn-notification {
    position: relative;
    padding: 0.375rem 0.75rem;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
    background: transparent;
    border-radius: 0.375rem;
    font-size: 1rem;
}
.btn-notification:hover { color: #fff; border-color: rgba(255,255,255,0.7); }
.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #dc3545;
    color: #fff;
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.notification-dropdown { width: 340px; max-width: calc(100vw - 24px); }
.notification-dropdown-header { border-bottom: 1px solid #eee; }
.notification-list { max-height: 320px; overflow-y: auto; }
.notification-item {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 1rem;
    white-space: normal;
    border-bottom: 1px solid #f3f4f6;
}
.notification-item:hover { background: #f8f9fa; }
.notification-unread { background: #eff6ff; }
.notification-unread:hover { background: #dbeafe; }
.notification-item-title { font-size: 0.85rem; font-weight: 600; color: #1a1a2e; }
.notification-item-message {
    font-size: 0.8rem;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notification-item-time { font-size: 0.72rem; color: #9ca3af; margin-top: 0.15rem; }

/* === Guest === */
.guest-main {
    min-height: calc(100vh - 56px);
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Auth Container === */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
}
.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.auth-card h1 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #1a1a2e;
}

/* === Landing === */
body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}
.hero-section {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 80vh;
}
.hero-brand-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: #fff;
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.stats-strip {
    background: #1a1a2e;
    color: #fff;
}
.stat-number { font-size: 2rem; font-weight: 700; color: #fff; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.05em; }
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 1.5rem;
    height: 100%;
}
.testimonial-card .stars { color: #fbbf24; }
.testimonial-card .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.audience-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}
.audience-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.audience-card .audience-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 0.25rem 0; font-size: 0.9rem; color: #4b5563; }
.check-list li::before { content: '\F26A'; font-family: 'bootstrap-icons'; color: #16a34a; margin-right: 0.5rem; }
.min-vh-80 { min-height: 80vh; }
.hero-cards {
    display: grid;
    gap: 1rem;
}
.hero-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1.5rem;
    color: #fff;
    backdrop-filter: blur(4px);
}
.hero-card h5 { font-weight: 600; }
.hero-card-1 { margin-right: 3rem; }
.hero-card-2 { margin-left: 1.5rem; margin-right: 1.5rem; }
.hero-card-3 { margin-left: 3rem; }
.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}
.bg-purple { background-color: #6f42c1 !important; }
.text-purple { color: #6f42c1 !important; }

/* === Stats Grid === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat-card { background: #fff; border-radius: 12px; padding: 1.25rem; box-shadow: 0 1px 4px rgba(0,0,0,0.06); text-align: center; }
.stat-card h3 { font-size: 1.75rem; color: #1a1a2e; margin-bottom: 0.15rem; }
.stat-card p { font-size: 0.8rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.03em; margin: 0; }

/* === Landing Sections === */
.section-title { text-align: center; font-size: 1.75rem; font-weight: 700; color: #1a1a2e; margin-bottom: 1rem; }
.section-subtitle { text-align: center; color: #6b7280; max-width: 600px; margin: 0 auto 2rem; }
.landing-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.85rem;
}
.landing-footer p { margin: 0; }

/* === Demo Login === */
.demo-logins { text-align: center; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.demo-title { font-size: 0.85rem; color: #6b7280; margin-bottom: 0.5rem; }
.demo-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.demo-note { font-size: 0.8rem; color: #9ca3af; margin-top: 0.75rem; }
.demo-note code { background: #f3f4f6; padding: 0.1rem 0.3rem; border-radius: 3px; }

/* === Landing Feature Cards === */
.feature-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 1.5rem; transition: transform 0.2s; }
.feature-card:hover { transform: translateY(-3px); }
.feature-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h4 { color: #fff; font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 0; line-height: 1.5; }
.step-card { text-align: center; background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.step-card .step-number { width: 40px; height: 40px; border-radius: 50%; background: #2563eb; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 0.75rem; }
.step-card h4 { font-size: 1rem; color: #1a1a2e; }
.step-card p { font-size: 0.85rem; color: #6b7280; margin: 0; }

/* === Action Group === */
.action-group { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* === Inline Form === */
.inline-form { display: inline; }

/* === Offcanvas Overrides === */
.offcanvas .sidebar-nav a { color: rgba(255,255,255,0.7); }
.offcanvas .sidebar-nav a:hover { color: #fff; }

/* === Badge Colors (overrides) === */
.badge-success { background: #d1fae5 !important; color: #065f46 !important; }
.badge-warning { background: #fef3c7 !important; color: #92400e !important; }
.badge-danger { background: #fee2e2 !important; color: #991b1b !important; }
.badge-info { background: #dbeafe !important; color: #1e40af !important; }
.badge-draft { background: #f3f4f6 !important; color: #6b7280 !important; }
.badge-submitted { background: #d1fae5 !important; color: #065f46 !important; }
.badge-paid { background: #d1fae5 !important; color: #065f46 !important; }
.badge-approved { background: #dbeafe !important; color: #1e40af !important; }
.badge-rejected { background: #fee2e2 !important; color: #991b1b !important; }
.badge-pending { background: #fef3c7 !important; color: #92400e !important; }
.badge-partial { background: #fef3c7 !important; color: #92400e !important; }
.badge-dispensed { background: #dbeafe !important; color: #1e40af !important; }
.badge-cancelled { background: #fee2e2 !important; color: #991b1b !important; }
