/* 贝尔安亲托管班 假期课程与课表服务平台 - 主样式表 (index.css) */

:root {
    /* Color Palette */
    --brand-primary: #ff9800;
    --brand-primary-light: #fff3e0;
    --brand-secondary: #f57c00;
    --brand-dark: #e65100;
    --brand-accent: #4caf50;
    --brand-accent-light: #e8f5e9;
    
    --bg-primary: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    
    --text-main: #2c3e50;
    --text-muted: #64748b;
    --text-light: #ffffff;
    
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(245, 124, 0, 0.08);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.08);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.03);
}

/* Header Area */
.app-header {
    background: var(--bg-header);
    padding: 24px 20px 0 20px;
    position: relative;
    color: var(--text-light);
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.brand-container {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-sm);
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
    line-height: 1.2;
}

.sub-logo {
    font-size: 11px;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tagline {
    font-size: 13px;
    margin-top: 8px;
    opacity: 0.85;
    background: rgba(0, 0, 0, 0.15);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Nav Tabs */
.main-nav {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.nav-tab-btn {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    color: #ffffff;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.nav-tab-btn.active {
    background-color: var(--bg-primary);
    color: var(--brand-secondary);
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.header-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 1;
}

.header-curve svg {
    display: block;
    width: 100%;
    height: 35px;
}

/* Main Content Wrapper */
.app-main {
    flex: 1;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Labels & Headers */
.section-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2 i {
    color: var(--brand-primary);
}

.sub-sec-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Filter Card */
.filter-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.grade-selector-container {
    margin-bottom: 16px;
}

.grade-toggle-group {
    display: flex;
    background-color: var(--bg-primary);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.grade-btn, .intro-grade-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.grade-btn.active, .intro-grade-btn.active {
    background-color: var(--bg-card);
    color: var(--brand-secondary);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* Week Selector Pills */
.week-pills-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 10px 0;
    scrollbar-width: none; /* Firefox */
}

.week-pills-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.week-pill {
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-main);
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.week-pill.active {
    background-color: var(--brand-primary-light);
    border-color: var(--brand-primary);
    color: var(--brand-secondary);
    font-weight: 700;
}

/* Timetable Section styles */
.timetable-section {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Desktop Schedule Grid Table (Hidden on small screens) */
.desktop-timetable-wrapper {
    overflow-x: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 12px;
    width: 100%;
}

.timetable-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    text-align: center;
}

.timetable-table th:first-child,
.timetable-table td:first-child {
    width: 80px; /* Time column fixed width */
}

.timetable-table th:not(:first-child),
.timetable-table td:not(:first-child) {
    width: calc((100% - 80px) / 5); /* 5 weekdays equal width */
}

.timetable-table th {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-weight: 700;
    font-size: 13px;
    padding: 10px 4px;
    border-bottom: 2px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.timetable-table td {
    padding: 6px 4px;
    font-size: 11px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    vertical-align: middle;
}

.timetable-table td:last-child, .timetable-table th:last-child {
    border-right: none;
}

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

.col-time {
    font-weight: 700;
    color: var(--brand-secondary);
    background-color: var(--brand-primary-light) !important;
    font-size: 11px;
    padding: 6px 2px !important;
}

/* Table Lesson cell layout */
.lesson-card {
    background-color: #fafafa;
    border-radius: var(--radius-sm);
    padding: 4px 6px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 3.5px solid #cbd5e1;
    transition: var(--transition);
    cursor: pointer;
    text-align: left;
}

.lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.lesson-card.clickable {
    cursor: pointer;
}

.lesson-card.subject-chinese {
    border-left-color: #ff5722;
    background-color: #fff3e0;
}
.lesson-card.subject-math {
    border-left-color: #03a9f4;
    background-color: #e1f5fe;
}
.lesson-card.subject-english {
    border-left-color: #9c27b0;
    background-color: #f3e5f5;
}
.lesson-card.subject-attention {
    border-left-color: #4caf50;
    background-color: #e8f5e9;
}
.lesson-card.subject-writing {
    border-left-color: #795548;
    background-color: #efebe9;
}
.lesson-card.subject-special {
    border-left-color: #e91e63;
    background-color: #fce4ec;
}

.lesson-name {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1px;
    font-size: 11px;
    white-space: normal;
    word-break: break-all;
    line-height: 1.2;
}

.lesson-topic {
    font-size: 9px;
    color: var(--text-muted);
    overflow: hidden;
    white-space: normal;
    word-break: break-all;
    line-height: 1.2;
}

/* General activities full column span in table */
.general-activity-row td {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 500;
    font-style: italic;
    padding: 8px;
}

/* Mobile Timeline View (<768px) */
.mobile-timeline {
    display: none;
    flex-direction: column;
    margin-top: 10px;
    position: relative;
    padding-left: 20px;
}

.mobile-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 2px solid var(--bg-card);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item.active .timeline-dot {
    background-color: var(--brand-secondary);
    box-shadow: 0 0 0 4px var(--brand-primary-light);
}

.timeline-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-secondary);
    margin-bottom: 4px;
    display: block;
}

.timeline-card {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 12px 16px;
    border-left: 4px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-item.active .timeline-card {
    background-color: var(--bg-card);
    border-color: var(--brand-primary);
}

.timeline-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.timeline-card p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.timeline-card.subject-chinese { border-left-color: #ff5722; }
.timeline-card.subject-math { border-left-color: #03a9f4; }
.timeline-card.subject-english { border-left-color: #9c27b0; }
.timeline-card.subject-attention { border-left-color: #4caf50; }
.timeline-card.subject-writing { border-left-color: #795548; }
.timeline-card.subject-special { border-left-color: #e91e63; }

/* Mobile Weekday Tabs Navigation */
.mobile-day-tabs {
    display: flex;
    gap: 4px;
    background-color: var(--bg-primary);
    padding: 4px;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid var(--border-color);
}

.day-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.day-tab-btn.active {
    background-color: var(--bg-card);
    color: var(--brand-secondary);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* Recitation Library */
.recitation-section {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.recitation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.rec-card {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rec-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--brand-primary);
}

.rec-card-header {
    margin-bottom: 6px;
}

.rec-card-source {
    font-size: 10px;
    color: var(--brand-secondary);
    font-weight: 500;
    display: block;
}

.rec-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2px;
}

.rec-card-excerpt {
    font-size: 11px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

.rec-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    font-size: 11px;
    color: var(--brand-primary);
    font-weight: 500;
}

/* TAB 2 Intro styles */
.intro-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.brand-story-card {
    border-top: 5px solid var(--brand-primary);
}

.brand-story-badge {
    background-color: var(--brand-primary-light);
    color: var(--brand-secondary);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.brand-p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Features Grid */
.core-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-item {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 16px;
}

.feature-orange { background-color: #ffe0b2; color: #ff9800; }
.feature-green { background-color: #c8e6c9; color: #4caf50; }
.feature-blue { background-color: #b3e5fc; color: #0288d1; }
.feature-purple { background-color: #e1bee7; color: #7b1fa2; }

.feature-item h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Curriculum Intro Card List */
.curriculum-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.curriculum-intro-card {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.curriculum-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.curriculum-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.curriculum-card-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 14px;
    background-color: var(--brand-primary);
    border-radius: 2px;
}

.curriculum-hours {
    font-size: 11px;
    background-color: #fafafa;
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 12px;
    color: var(--brand-secondary);
    font-weight: 700;
}

.curriculum-body-section {
    margin-bottom: 8px;
}

.curriculum-body-section:last-child {
    margin-bottom: 0;
}

.curriculum-body-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.curriculum-body-content {
    font-size: 12px;
    color: var(--text-muted);
    white-space: pre-line;
    padding-left: 15px;
}

/* Daily Routine Timeline */
.timeline-routine-container {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 24px;
    margin-top: 15px;
}

.timeline-routine-container::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--border-color);
}

.routine-item {
    position: relative;
    padding-bottom: 24px;
}

.routine-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 2px solid var(--bg-card);
}

.routine-item.highlight::before {
    background-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px var(--brand-primary-light);
}

.routine-item:last-child {
    padding-bottom: 0;
}

.routine-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-secondary);
    display: block;
    margin-bottom: 4px;
}

.routine-content h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.routine-content p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.routine-item.highlight .routine-content h4 {
    color: var(--brand-secondary);
}

/* Gallery styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.img-placeholder {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    gap: 6px;
    padding: 10px;
}

.img-placeholder i {
    font-size: 28px;
    opacity: 0.9;
}

.img-placeholder span {
    font-size: 12px;
    font-weight: 500;
}

/* Footer Section */
.app-footer {
    margin-top: auto;
    background-color: #2c3e50;
    color: #94a3b8;
    padding: 30px 20px 20px 20px;
    text-align: center;
}

.footer-contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.footer-contact-card h3 {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 6px;
}

.contact-desc {
    font-size: 12px;
    margin-bottom: 16px;
}

.contact-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-btn {
    flex: 1;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    text-decoration: none;
}

.phone-btn {
    background-color: var(--brand-primary);
    color: var(--text-light);
}

.phone-btn:hover {
    background-color: var(--brand-secondary);
}

.wechat-btn {
    background-color: #07c160;
    color: var(--text-light);
}

.wechat-btn:hover {
    background-color: #06ad56;
}

.contact-meta {
    font-size: 11px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.contact-meta p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-meta p i {
    color: var(--brand-primary);
    width: 14px;
}

.map-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.map-link:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.map-tag {
    color: var(--brand-primary);
    font-weight: 700;
    margin-left: 2px;
    font-size: 9px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1px 4px;
    border-radius: 4px;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.footer-copyright {
    font-size: 10px;
    opacity: 0.6;
}

/* Modals & Drawers */
.drawer-overlay, .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: flex-end; /* Mobile Bottom Sheet by default */
    animation: fadeInBg 0.3s ease;
}

@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 1; }
}

.drawer-content {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 800px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 24px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

.drawer-title-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.subject-badge {
    background-color: var(--brand-primary);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.drawer-title-area h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.drawer-close-btn, .modal-close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

.drawer-body {
    overflow-y: auto;
    flex: 1;
    margin-bottom: 20px;
    padding-right: 5px;
}

.detail-info-group {
    margin-bottom: 16px;
}

.detail-info-group:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.info-label i {
    width: 14px;
}

.detail-text {
    font-size: 13px;
    color: var(--text-main);
    background-color: var(--bg-primary);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    line-height: 1.5;
}

.drawer-footer {
    display: flex;
}

.drawer-confirm-btn {
    flex: 1;
    background-color: var(--brand-primary);
    color: var(--text-light);
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.drawer-confirm-btn:hover {
    background-color: var(--brand-secondary);
}

/* Recitation Modal Specific (Center modal on all screens) */
.modal-overlay {
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.rec-source-badge {
    background-color: var(--brand-primary-light);
    color: var(--brand-secondary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    text-align: center;
    padding: 10px 0;
    margin-bottom: 20px;
}

.modal-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.rec-author {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.rec-content-body {
    font-size: 15px;
    line-height: 2;
    color: var(--text-main);
    white-space: pre-wrap;
    background-color: #fafafa;
    border: 1px dashed var(--border-color);
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    min-width: 80%;
    letter-spacing: 1px;
}

.rec-check-btn {
    width: 100%;
    background-color: var(--brand-accent);
    color: var(--text-light);
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.rec-check-btn:hover {
    background-color: #43a047;
}

/* Toast Message */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}

.toast-message.show {
    transform: translateX(-50%) translateY(0);
}


/* RESPONSIVE DESIGN (Media Queries) */

/* Desktop & Tablet view adjustment */
@media (min-width: 768px) {
    .mobile-timeline {
        display: none !important;
    }
    .desktop-timetable-wrapper {
        display: block !important;
    }
    #mobile-day-selector {
        display: none !important;
    }
}

/* Mobile Screen view adjustment */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }
    
    .app-main {
        padding: 12px;
    }
    
    .desktop-timetable-wrapper {
        display: none !important;
    }
    
    .mobile-timeline {
        display: flex !important;
    }
    
    #mobile-day-selector {
        display: flex !important;
    }
    
    .recitation-grid {
        grid-template-columns: 1fr;
    }
    
    .core-features-grid {
        grid-template-columns: 1fr;
    }
    
    .drawer-overlay {
        align-items: flex-end;
    }
    
    .drawer-content {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}
