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

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F8F8F8;
    color: #333;
    display: flex;
    min-height: 100vh;
}

/* Apply Montserrat to all text */
h1, h2, h3, h4, h5, h6,
.phase-title,
.week-detail-header h2,
.card-header h3 {
    font-family: 'Montserrat', sans-serif;
}

/* Global Heading Styles */
h1 {
    font-size: 16px;
    font-weight: 600;
}

h2 {
    font-size: 14px;
    font-weight: 600;
}

h3 {
    font-size: 12px;
    font-weight: 500;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #E5E5E5;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.logo {
    margin-bottom: 40px;
}

.logo img {
    display: block;
    height: 40px;
    width: auto;
}

.main-nav {
    flex: 1;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 30px;
}

.nav-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #71274E;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
}

.nav-icon {
    color: #71274E;
}

.nav-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.phase-list {
    list-style: none;
    margin-left: 30px;
}

.phase-item {
    padding: 10px 15px;
    margin: 5px 0;
    cursor: pointer;
    border-radius: 6px;
    color: #999;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.phase-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.phase-item:hover .phase-icon,
.phase-item.active .phase-icon {
    opacity: 1;
}

.phase-item:hover {
    background: #F8F8F8;
    color: #71274E;
}

.phase-item.active {
    background: #EAE5F7;
    color: #71274E;
    border-left-color: #71274E;
    font-weight: 500;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin: 8px 0;
    cursor: pointer;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-item[data-nav="home"].active {
    background: #EAE5F7;
    padding: 10px 0px;
    margin: 5px 0 30px 0;
    border-radius: 6px;
}

.nav-item:hover {
    background: #F8F8F8;
    color: #71274E;
}

.nav-item[data-nav="home"] {
    padding: 0;
    margin: 0 0 30px 0;
    color: #71274E;
    font-weight: 600;
    font-size: 15px;
}

.nav-item .nav-icon {
    color: #666;
}

.nav-item:hover .nav-icon {
    color: #71274E;
}

.nav-item.active {
    background: #EAE5F7;
    color: #71274E;
    font-weight: 500;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-top: 1px solid #E5E5E5;
    margin-top: 20px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #71274E, #9D4E7C);
}

.user-profile span {
    color: #666;
    font-size: 14px;
}

/* Main Content Styles */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 40px 60px;
    max-width: 1200px;
}

.phase-header {
    margin-bottom: 30px;
}

.phase-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.phase-icon-header {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.phase-title {
    font-size: 24px;
    color: #333;
    font-weight: 500;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #E5E5E5;
}

.tab {
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 15px;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    font-weight: 500;
}

.tab:hover {
    color: #71274E;
}

.tab.active {
    color: #71274E;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #71274E;
}

/* Content Container */
.content-container {
    margin-top: 30px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h3 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.btn-link {
    background: none;
    border: none;
    color: #71274E;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

/* Progress Card */
.progress-card {
    background: white;
    padding: 0;
    border: 3px solid #4A90E2;
}

.progress-card-inner {
    background: linear-gradient(135deg, #EAE5F7 0%, #F5F2FA 100%);
    padding: 24px;
}

.progress-card .card-header {
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0;
    padding-bottom: 20px;
    border-bottom: 2px dotted #4A90E2;
}

.progress-card .card-header h3 {
    color: #71274E;
}

.progress-icon {
    flex-shrink: 0;
}

.progress-content-box {
    padding-top: 20px;
}

.progress-content-box h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.progress-content-box p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Concierge Card */
.request-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-label {
    color: #999;
    font-size: 14px;
    flex: 1;
}

.detail-value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

/* Goals Card */
.goals-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.goals-header {
    justify-content: flex-start !important;
    gap: 12px;
}

.goals-header h3 {
    margin: 0;
}

.goal-section h4 {
    font-size: 15px;
    color: #71274E;
    margin-bottom: 8px;
    font-weight: 600;
}

.goal-section p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.goal-section.warning {
    background: #FFF3CD;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #FFA726;
}

.goal-section.warning h4 {
    color: #F57C00;
}

/* Week List View */
.week-list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.week-item {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.week-item:hover {
    box-shadow: 0 4px 12px rgba(113, 39, 78, 0.15);
    transform: translateY(-2px);
}

.week-icon {
    width: 48px;
    height: 48px;
    background: #EAE5F7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.week-info {
    flex: 1;
}

.week-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 600;
}

.week-info p {
    font-size: 14px;
    color: #999;
}

.week-chevron {
    color: #71274E;
}

/* Week Detail View */
.week-detail-view {
    /* No max-width - use full content area width */
}

.hidden {
    display: none !important;
}

.back-button {
    background: none;
    border: none;
    color: #71274E;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.back-button:hover {
    background: #EAE5F7;
}

.week-detail-header {
    margin-bottom: 30px;
    text-align: center;
}

.week-detail-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 600;
}

.week-detail-header p {
    font-size: 16px;
    color: #999;
    font-weight: 400;
}

/* Detail Sections */
.detail-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 18px;
    color: #71274E;
    font-weight: 600;
}

.activity-category,
.milestone-category {
    margin-bottom: 0;
    padding: 16px 0;
    border-bottom: 1px solid #E5E5E5;
}

.activity-category:last-child,
.milestone-category:last-child {
    border-bottom: none;
}

.activity-category h4,
.milestone-category h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.activity-category p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.activity-list,
.milestone-list {
    list-style: none;
    margin-left: 0;
}

.activity-list li,
.milestone-list li {
    padding: 12px 0;
    position: relative;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid #E5E5E5;
}

.activity-list li:last-child,
.milestone-list li:last-child {
    border-bottom: none;
}

.activity-list li::before,
.milestone-list li::before {
    display: none;
}

/* Milestone Tabs */
.milestone-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #E5E5E5;
}

.milestone-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    text-align: center;
    border-radius: 0;
    margin-bottom: -2px;
}

.milestone-tab:hover {
    background: #F8F8F8;
    color: #71274E;
}

.milestone-tab.active {
    background: transparent;
    color: white;
    background: #71274E;
    border-bottom-color: #71274E;
}

/* Baby Section */
.baby-section {
    background: #F5F5F5;
    border: 1px solid #E5E5E5;
    border-left: none;
    border-radius: 12px;
    text-align: center;
}

.baby-section .section-header {
    justify-content: center;
    padding-bottom: 16px;
    border-bottom: 2px dashed #D0D0D0;
    margin-bottom: 20px;
}

.baby-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.baby-list li {
    padding: 14px 20px;
    color: #71274E;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 500;
    border-bottom: none;
}

.baby-list li::before {
    display: none;
}

.baby-list li:last-child {
    border-bottom: none;
}

/* Mobile Header */
.mobile-header {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid #E5E5E5;
    z-index: 1000;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.mobile-logo {
    height: 24px;
    width: auto;
}

.mobile-header-right {
    display: flex;
    align-items: center;
}

.mobile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #71274E, #9D4E7C);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Tab Selector */
.mobile-tab-selector {
    display: none; /* Hidden on desktop */
}

.mobile-tab-dropdown {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #71274E;
    background: white;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2371274E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
/* Home Content */
.home-content {
    display: none;
}

.home-content.active {
    display: block;
}

/* Phases Overview Card */
.phases-overview-card .card-header {
    justify-content: flex-start !important;
    gap: 12px;
}

.phases-overview-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.phase-overview-item {
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E5E5;
}

.phase-overview-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.phase-overview-item h4 {
    font-size: 16px;
    color: #71274E;
    margin-bottom: 8px;
    font-weight: 600;
}

.phase-overview-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   USER SWITCHER STYLES
   =================================== */

.user-switcher {
    margin-bottom: 30px;
    padding: 0 10px;
}

.user-toggle {
    display: flex;
    gap: 8px;
    background: #F8F8F8;
    border-radius: 8px;
    padding: 4px;
}

.user-option {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.user-option:hover {
    background: rgba(113, 39, 78, 0.05);
}

.user-option.active {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.user-delivery {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

.user-option.active .user-name {
    color: #71274E;
}

.user-option.active .user-delivery {
    color: #71274E;
}

/* Responsive Design */
@media (max-width: 1024px) {
    body {
        flex-direction: column;
    }
    
    /* Show mobile header */
    .mobile-header {
        display: flex;
    }
    
    /* Sidebar becomes drawer */
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .sidebar.active {
        left: 0;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    }

    /* User switcher mobile */
    .user-switcher {
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .user-option {
        padding: 10px 6px;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .user-delivery {
        font-size: 10px;
    }
    
    /* Main content adjustments */
    .main-content {
        margin-left: 0;
        margin-top: 60px; /* Account for fixed header */
        padding: 20px 16px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Phase header adjustments */
    .phase-header {
        margin-bottom: 20px;
    }
    
    .phase-title {
        font-size: 20px;
    }
    
    /* Hide desktop tabs, show mobile dropdown */
    .desktop-tabs {
        display: none;
    }
    
    .mobile-tab-selector {
        display: block;
        margin-bottom: 20px;
    }
    
    /* Week detail header mobile sizing */
    .week-detail-header h2 {
        font-size: 24px;
    }
    
    .week-detail-header p {
        font-size: 14px;
    }
    
    /* Back button mobile styling */
    .back-button {
        padding: 10px;
        margin-bottom: 16px;
    }
    
    .back-button img {
        width: 20px;
        height: 20px;
    }
    
    /* Card adjustments */
    .card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    /* Progress card mobile */
    .progress-card-inner {
        padding: 20px;
    }
    
    .progress-card .card-header {
        flex-direction: row;
        align-items: center;
    }
    
    .progress-icon {
        width: 48px;
        height: 48px;
    }
    
    /* Week list mobile */
    .week-item {
        padding: 16px 20px;
    }
    
    .week-icon {
        width: 40px;
        height: 40px;
    }
    
    .week-info h3 {
        font-size: 15px;
    }
    
    .week-info p {
        font-size: 13px;
    }
    
    /* Detail sections mobile */
    .detail-section {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .section-header {
        margin-bottom: 16px;
    }
    
    .section-header h3 {
        font-size: 16px;
    }
    
    /* Milestone tabs mobile */
    .milestone-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .milestone-tab {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    /* Activity and milestone content */
    .activity-category h4,
    .milestone-category h4 {
        font-size: 15px;
    }
    
    .activity-category p {
        font-size: 13px;
    }
    
    /* Baby section mobile */
    .baby-section {
        padding: 20px;
    }
    
    .baby-list li {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    /* Two column layouts stack on mobile */
    .two-column {
        flex-direction: column;
    }
    
    .column {
        margin-bottom: 15px;
    }
    
    /* Reading Layout Mobile */
    .reading-layout {
        flex-direction: column;
        gap: 0;
    }
    
    .reading-toc.desktop-toc {
        display: none;
    }
    
    .mobile-toc-tabs {
        display: flex !important;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        width: 100%;
        background: white;
        border-bottom: 2px solid #E5E5E5;
        margin: 0 0 24px 0;
        position: sticky;
        top: 60px;
        z-index: 10;
    }
    
    .mobile-toc-tab {
        flex-shrink: 0;
        padding: 14px 20px;
        font-size: 14px;
        color: #666;
        border-bottom: 3px solid transparent;
        margin-bottom: -2px;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s;
        background: white;
    }
    
    .mobile-toc-tab.active {
        color: #71274E;
        border-bottom-color: #71274E;
        font-weight: 600;
    }
    
    .reading-header {
        text-align: center;
        margin-bottom: 24px;
    }
    
    .reading-header h1 {
        font-size: 28px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .reading-subtitle {
        font-size: 16px;
        color: #999;
    }
    
    .reading-section {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .reading-section h2 {
        font-size: 20px;
    }
    
    .reading-section h3 {
        font-size: 18px;
        margin: 20px 0 10px 0;
    }
    
    .reading-back-button img {
        width: 28px;
        height: 28px;
    }
    
    .reading-item {
        padding: 16px 20px;
    }
    
    .reading-icon {
        width: 40px;
        height: 40px;
    }
    
    .reading-icon img {
        width: 24px;
        height: 24px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .main-content {
        padding: 16px 12px;
    }
    
    .phase-title {
        font-size: 18px;
    }
    
    .week-detail-header h2 {
        font-size: 22px;
    }
    
    .card {
        padding: 16px;
    }
    
    .progress-card-inner {
        padding: 16px;
    }
    
    .week-item {
        padding: 14px 16px;
    }
    
    .detail-section {
        padding: 16px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ===================================
   ADDITIONAL READINGS STYLES
   =================================== */

/* Readings List View */
.readings-list-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reading-item {
    background: white;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.reading-item:hover {
    border-color: #71274E;
    box-shadow: 0 2px 8px rgba(113, 39, 78, 0.1);
}

.reading-icon {
    width: 48px;
    height: 48px;
    background: #EAE5F7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reading-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.reading-info {
    flex: 1;
}

.reading-info h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.reading-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.reading-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #999;
    font-size: 14px;
}

.reading-time {
    white-space: nowrap;
}

.reading-arrow {
    color: #71274E;
    font-size: 20px;
    flex-shrink: 0;
}

/* Reading Detail View */
.reading-detail-view {
    width: 100%;
}

.reading-back-button {
    margin-bottom: 24px;
}

.reading-back-button img {
    width: 32px;
    height: 32px;
}

.reading-layout {
    display: flex;
    gap: 40px;
    position: relative;
}

.reading-content {
    flex: 1;
    max-width: 800px;
}

.reading-header {
    margin-bottom: 40px;
    text-align: center;
}

.reading-header h1 {
    font-size: 48px;
    color: #333;
    margin: 0 0 16px 0;
    font-weight: 700;
    line-height: 1.2;
}

.reading-subtitle {
    font-size: 20px;
    color: #999;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

/* Reading Content Sections */
.reading-section {
    background: white;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    scroll-margin-top: 80px;
}

.reading-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.reading-section-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.reading-section h2 {
    font-size: 22px;
    color: #71274E;
    margin: 0;
    font-weight: 600;
}

.reading-section h3 {
    font-size: 20px;
    color: #333;
    margin: 24px 0 12px 0;
    font-weight: 700;
    line-height: 1.3;
}

.reading-section h4 {
    font-size: 16px;
    color: #333;
    margin: 16px 0 8px 0;
    font-weight: 600;
}

.reading-section p {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    margin: 12px 0;
}

.reading-section ul {
    margin: 12px 0;
    padding-left: 24px;
}

.reading-section li {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    margin: 8px 0;
}

.reading-section li strong {
    color: #71274E;
    font-weight: 600;
}

/* Warning Section (Yellow) */
.reading-section.warning-section {
    background: #FFF9E6;
    border-color: #FFD54F;
    border-left: 4px solid #FFA000;
}

.reading-section.warning-section h2 {
    color: #E65100;
}

/* Emergency Section (Red) */
.reading-section.emergency-section {
    background: #FFEBEE;
    border-color: #EF5350;
    border-left: 4px solid #C62828;
}

.reading-section.emergency-section h2 {
    color: #C62828;
}

/* Critical Text Styling */
.critical-number {
    background: #FFEBEE;
    color: #C62828;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Callout Boxes */
.callout-box {
    background: #EAE5F7;
    border-left: 4px solid #71274E;
    padding: 16px;
    margin: 16px 0;
    border-radius: 0 4px 4px 0;
}

.callout-box strong {
    color: #71274E;
    font-weight: 600;
}

.callout-box.red {
    background: #FFEBEE;
    border-left-color: #C62828;
}

.callout-box.red strong {
    color: #C62828;
}

/* References List */
.references-list {
    list-style: none;
    padding: 0;
}

.references-list li {
    padding: 12px 0;
    border-bottom: 1px solid #E5E5E5;
    line-height: 1.6;
    font-size: 14px;
    color: #555;
}

.references-list li:last-child {
    border-bottom: none;
}

.references-list em {
    font-style: italic;
    color: #666;
}

.references-list a {
    color: #71274E;
    text-decoration: underline;
    word-break: break-all;
}

.references-list a:hover {
    color: #9D4E7C;
}

/* Table of Contents Sidebar (Desktop) */
.reading-toc {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.reading-toc nav {
    background: #F8F8F8;
    border-radius: 8px;
    padding: 20px;
}

.toc-item {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    margin: 4px 0;
    cursor: pointer;
}

.toc-item:hover {
    background: #EAE5F7;
    color: #71274E;
}

.toc-item.active {
    background: #71274E;
    color: white;
    font-weight: 500;
}

/* Mobile TOC Tabs */
.mobile-toc-tabs {
    display: none; /* Hidden on desktop, shown on mobile via media query */
    position: sticky;
    top: 60px;
    background: white;
    z-index: 10;
    border-bottom: 2px solid #E5E5E5;
}

/* ===================================
   SYMPTOM TRACKER STYLES
   =================================== */

#symptom-tracker-app {
    padding: 40px 60px;
    max-width: 1200px;
}

/* Alert Banner */
.symptom-alert {
    background: #FFF3CD;
    border: 1px solid #FFD54F;
    border-left: 4px solid #FFA000;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 30px;
    display: none;
}

.symptom-alert.visible {
    display: block;
}

.alert-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.alert-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.alert-close:hover {
    color: #333;
}

/* Tracker Header */
.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.tracker-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tracker-title h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.btn-primary {
    background: #71274E;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #5A1F3E;
}

.btn-secondary {
    background: white;
    color: #71274E;
    border: 2px solid #71274E;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #F8F8F8;
}

.btn-secondary:active {
    background: #EAE5F7;
}

/* Status Overview */
.tracker-status {
    margin-bottom: 20px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E5E5E5;
}

.status-row:last-child {
    border-bottom: none;
}

.status-label {
    font-weight: 500;
    color: #666;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.green {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-badge.yellow {
    background: #FFF9E6;
    color: #F57C00;
}

.status-badge.orange {
    background: #FFF3E0;
    color: #E65100;
}

.status-badge.red {
    background: #FFEBEE;
    color: #C62828;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.green {
    background: #4CAF50;
}

.status-dot.yellow {
    background: #FFC107;
}

.status-dot.orange {
    background: #FF9800;
}

.status-dot.red {
    background: #F44336;
}

/* Calendar */
.tracker-calendar {
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.date-range {
    color: #999;
    font-size: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: #F8F8F8;
    position: relative;
}

.calendar-day.today {
    background: #EAE5F7;
    border: 2px solid #71274E;
}

.day-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.day-number {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.calendar-day .status-dot {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Table */
.tracker-table h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.table-scroll {
    overflow-x: auto;
}

.tracker-table table {
    width: 100%;
    border-collapse: collapse;
}

.tracker-table th {
    text-align: left;
    padding: 12px;
    background: #F8F8F8;
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

.tracker-table td {
    padding: 12px;
    border-bottom: 1px solid #E5E5E5;
    color: #333;
    font-size: 14px;
}

.tracker-table tr:last-child td {
    border-bottom: none;
}

/* ===================================
   CHECK-IN DRAWER (Right Slide-In)
   =================================== */

/* Backdrop overlay */
.drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.visible {
    display: block;
    opacity: 1;
}

/* Drawer container */
.check-in-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: white;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.check-in-drawer.open {
    transform: translateX(0);
}

/* Drawer header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #E5E5E5;
    flex-shrink: 0;
}

.drawer-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.drawer-close:hover {
    background: #F5F5F5;
    color: #333;
}

/* Drawer content (scrollable) */
.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    -webkit-overflow-scrolling: touch;
}

/* Drawer footer (sticky) */
.drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid #E5E5E5;
    background: white;
    flex-shrink: 0;
    display: flex;
    gap: 12px;
}

.drawer-footer button {
    flex: 1;
}

/* Form sections */
.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

/* Mood options */
.mood-options {
    display: flex;
    gap: 12px;
}

.mood-option {
    flex: 1;
    padding: 16px 12px;
    border: 2px solid #E5E5E5;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mood-option:hover {
    border-color: #71274E;
    background: #F8F8F8;
}

.mood-option.active {
    border-color: #71274E;
    background: #EAE5F7;
    font-weight: 500;
}

/* Blood pressure inputs */
.bp-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bp-inputs input {
    width: 100px;
    padding: 12px 16px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.bp-inputs input:focus {
    outline: none;
    border-color: #71274E;
}

.bp-inputs span {
    font-size: 18px;
    color: #666;
}

.bp-unit {
    font-size: 14px !important;
    color: #999 !important;
}

/* Symptom items */
.symptom-item {
    margin-bottom: 16px;
    padding: 16px;
    background: #F8F8F8;
    border-radius: 8px;
}

.symptom-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}

.symptom-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #71274E;
}

/* Severity row (only for headache) */
.severity-row {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E5E5E5;
    gap: 12px;
}

.severity-row label {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #E5E5E5;
    background: white;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.severity-row input[type="radio"] {
    display: none;
}

.severity-row input[type="radio"]:checked + label,
.severity-row label:has(input[type="radio"]:checked) {
    border-color: #71274E;
    background: #EAE5F7;
    font-weight: 500;
}

/* Weight input */
.weight-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weight-input input {
    width: 120px;
    padding: 12px 16px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 16px;
}

.weight-input input:focus {
    outline: none;
    border-color: #71274E;
}

.weight-input span {
    font-size: 14px;
    color: #999;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #71274E;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .check-in-drawer {
        max-width: 100%;
    }
    
    .drawer-header {
        padding: 16px 20px;
    }
    
    .drawer-content {
        padding: 20px;
    }
    
    .drawer-footer {
        padding: 16px 20px;
    }
    
    .mood-options {
        flex-direction: column;
    }
    
    .bp-inputs {
        flex-wrap: wrap;
    }
}

/* ===================================
   UPDATED SYMPTOM TRACKER STYLES
   =================================== */

/* Tracker Header - Simplified */
.tracker-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E5E5;
}

.tracker-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.tracker-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Alert Banner - Updated Text */
.symptom-alert {
    background: #FFF9E6;
    border: 1px solid #FFD54F;
    border-left: 4px solid #F59E0B;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: none;
}

.symptom-alert.visible {
    display: block;
}

.alert-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #92400E;
}

.alert-text strong {
    font-weight: 600;
    color: #78350F;
}

.alert-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #D97706;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.alert-close:hover {
    color: #B45309;
}

/* Main Tracker Card */
.tracker-main-card {
    padding: 32px;
    margin-bottom: 24px;
}

/* Row 1: Date Header & Button */
.tracker-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E5E5;
}

.tracker-date-info h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.tracker-date-info p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Row 2: 7-Day Calendar Row */
.tracker-calendar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E5E5;
}

.calendar-nav-btn {
    background: white;
    border: 1px solid #E5E5E5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
    flex-shrink: 0;
}

.calendar-nav-btn:hover {
    background: #F8F8F8;
    border-color: #71274E;
    color: #71274E;
}

.calendar-days-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    flex: 1;
}

.calendar-day-box {
    background: #F8F8F8;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.calendar-day-box.today {
    border: 2px dashed #71274E;
    background: white;
}

.day-letter {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.day-num {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.calendar-day-box .status-dot {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Row 3: Status Grid */
.tracker-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.status-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.status-info-item img {
    flex-shrink: 0;
    margin-top: 2px;
}

.status-info-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.status-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .tracker-main-card {
        padding: 20px;
    }
    
    .tracker-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .tracker-card-header .btn-primary {
        width: 100%;
    }
    
    .calendar-days-row {
        gap: 8px;
    }
    
    .calendar-day-box {
        padding: 12px 8px;
    }
    
    .day-num {
        font-size: 18px;
    }
    
    .tracker-status-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ===================================
   CONCIERGE REQUEST SECTION
   =================================== */

.concierge-section {
    padding: 40px 60px;
    width: 100%;
    max-width: 800px;
}

.concierge-container {
    max-width: 680px;
    margin: 0 auto;
}

.concierge-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.concierge-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Fix concierge section positioning */
#conciergeSection.concierge-section {
    position: absolute;
    top: 0;
    left: 280px;
    right: 0;
    margin-left: 0;
    background: #F8F8F8;
    z-index: 10;
}

@media (max-width: 1024px) {
    #conciergeSection.concierge-section {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
    }
}

/* Concierge Tabs */
.concierge-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #E5E5E5;
    margin-bottom: 30px;
}

.concierge-tab {
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 15px;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    font-weight: 500;
}

.concierge-tab:hover {
    color: #71274E;
}

.concierge-tab.active {
    color: #71274E;
}

.concierge-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #71274E;
}

.concierge-tab-content {
    display: none;
}

.concierge-tab-content.active {
    display: block;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group textarea,
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    background: white;
    color: #333;
    transition: border-color 0.2s;
}

.form-group textarea:focus,
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #71274E;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: #71274E;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #5A1F3E;
}

.btn-submit:disabled {
    background: #E5E5E5;
    color: #999;
    cursor: not-allowed;
}

/* Request Cards */
.request-card {
    background: white;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.request-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.request-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 14px;
}

.request-detail svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.request-label {
    color: #999;
    min-width: 140px;
}

.request-value {
    color: #333;
    font-weight: 500;
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    z-index: 2000;
}

.success-toast {
    background: #2D2D2D;
    color: white;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
}

.toast-message {
    font-size: 13px;
    color: #B8B8B8;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .concierge-section {
        margin-left: 0;
        margin-top: 60px;
        padding: 20px 16px;
    }
    
    .success-toast {
        width: 100%;
        max-width: 100%;
    }
}