/* ============================================
   FLAURA MEDICAL EMR - COMPLETE STYLESHEET
   ============================================ */

@import url('https://cdn.syncfusion.com/ej2/material.css');

:root {
    /* Brand Colors */
    --color-primary: #1976d2; /* Deep Blue */
    --color-primary-light: #3b82f6;
    --color-white: #ffffff;
    --color-bg: #f4f7fa;
    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    /* Sidebar Specific */
    --sidebar-bg: #1e3a8a; /* Deep Navy */
    --nav-active: #3b82f6;
    /* Effects */
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --radius-lg: 18px;
    --radius-md: 12px;
}

/* 1. BASE LAYOUT
   ============================================ */
html, body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    margin: 0;
    transition: background-color 0.3s ease;
}

.main-content {
    padding: 24px;
    padding-top: 80px;
    max-width: 1440px;
    margin: 0 auto;
}

/* 2. DASHBOARD GRID SYSTEM
   ============================================ */

/* Top row of 4 small cards */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

/* Main split: Schedule (Left) | Sidebar (Right) */
.dashboard-layout {
    display: grid !important;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
    width: 100%;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 3. CARDS & COMPONENTS
   ============================================ */
.stat-card, .content-card {
    background: var(--color-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease;
}

    .stat-card:hover {
        transform: translateY(-4px);
    }

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Schedule List Item */
.schedule-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

/* 4. BUTTONS (Enforcing Blue & White)
   ============================================ */
.e-btn.e-primary, .btn-blue, .btn-primary {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    border: none !important;
}

.e-btn.e-outline.e-primary, .btn-outline {
    border: 1.5px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    background-color: transparent !important;
    border-radius: var(--radius-md) !important;
}

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

.dashboard-page {
    width: 100%;
}

/* 5. SIDEBAR NAVIGATION
   ============================================ */
.e-sidebar {
    background-color: var(--sidebar-bg) !important;
    border-right: none !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 12px 20px;
    margin: 4px 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

    .nav-link.active {
        background-color: var(--nav-active) !important;
        color: white !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

.nav-section-header {
    padding: 24px 20px 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 800;
}

/* 6. SLICK DARK MODE SWITCH
   ============================================ */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
}

.nav-link,
.theme-switch-wrapper,
.btn,
.e-btn {
    touch-action: manipulation;
}

.theme-switch {
    display: inline-block;
    height: 20px;
    position: relative;
    width: 40px;
}

    .theme-switch input {
        display: none;
    }

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        background-color: white;
        bottom: 3px;
        content: "";
        height: 14px;
        left: 4px;
        position: absolute;
        transition: .4s;
        width: 14px;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: var(--color-primary-light);
}

    input:checked + .slider:before {
        transform: translateX(18px);
    }

.mode-label {
    font-size: 10px;
    font-weight: 800;
    color: white;
}

/* 7. DARK MODE OVERRIDES
   ============================================ */
body.dark-mode {
    background-color: #0f172a !important;
    --color-white: #1e293b;
    --color-border: #334155;
    --color-text-main: #f1f5f9;
}

    body.dark-mode .schedule-item {
        background: #334155 !important;
    }

/* 8. PUBLIC LANDING PAGE
   ============================================ */
.landing-shell {
    background: var(--color-white);
    color: var(--color-text-main);
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 18px 0;
}

.landing-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-decoration: none;
}

.landing-links a {
    margin: 0 16px;
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
}

.landing-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.landing-body {
    background: var(--color-white);
}

.landing-hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(25, 118, 210, 0.1);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.landing-hero-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 28px;
    border: 1px solid var(--color-border);
}

.hero-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.hero-feature:last-child {
    border-bottom: none;
}

.hero-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(25, 118, 210, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hero-card-header {
    font-weight: 700;
    margin-bottom: 16px;
}

.landing-hero-card li {
    margin-bottom: 12px;
    font-weight: 500;
}

.landing-metrics {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.landing-section {
    padding: 70px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 40px;
}

.landing-card,
.landing-panel,
.landing-form-card,
.pricing-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--color-border);
    box-shadow: var(--card-shadow);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(25, 118, 210, 0.1);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.landing-panel {
    background: #f9fbff;
}

.landing-form-card {
    background: #ffffff;
}

.landing-cta {
    padding: 60px 0;
    background: var(--color-primary);
}

.landing-footer {
    padding: 40px 0;
    background: #0f172a;
    color: #f8fafc;
}

.landing-footer a {
    color: #cbd5f5;
    text-decoration: none;
    margin-right: 16px;
}

.landing-footer-brand {
    font-weight: 700;
    margin-bottom: 8px;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: inline-block;
    flex-shrink: 0;
}

.pricing-card {
    text-align: left;
    position: relative;
    height: 100%;
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(25, 118, 210, 0.1);
    color: var(--color-primary);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-card ul li {
    margin-bottom: 10px;
}

.pricing-footer {
    margin-top: 32px;
}

.bg-primary-soft {
    background-color: rgba(25, 118, 210, 0.1);
}

.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

@media (max-width: 991px) {
    .landing-links {
        display: none;
    }


    .landing-actions {
        flex-direction: column;
        align-items: flex-end;
    }
}

.group-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--color-primary) !important;
}

.group-hover {
    transition: all 0.3s ease;
}

.bg-info-subtle {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.text-info-emphasis {
    color: #055160 !important;
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.text-success {
    color: #198754 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Feature Navigation Hover Dropdown */
.landing-links .dropdown-hover:hover .dropdown-menu, 
.landing-footer-links .dropdown-hover:hover .dropdown-menu { 
    display: block;
    margin-top: 0;
    animation: fadeIn 0.2s ease-in-out;
}
.landing-links .dropdown-hover .dropdown-toggle::after {
    vertical-align: middle;
}
.dropdown-feature-item {
    transition: all 0.2s;
    border-radius: 6px;
    margin: 0 8px;
    width: auto;
}
.dropdown-feature-item:hover {
    background-color: var(--bs-light);
    transform: translateX(4px);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Blog post create/edit modal — tall and resizable */
.modal-dialog-resizable {
    max-width: 95vw;
}
.modal-content-resizable {
    height: 90vh;
    min-height: 500px;
    resize: both;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-content-resizable .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
}
