/* ==========================================================================
   GIAO DIỆN MOBILE LỊCH CÔNG TÁC TUẦN - UBND XÃ EA SÚP
   Thiết kế thẻ hiện đại (Day Cards), màu xanh - trắng chuyên nghiệp, tối ưu di động
   ========================================================================== */

:root {
    --primary-blue: #165ba5;
    --primary-dark: #0f4379;
    --primary-light: #2575c7;
    --primary-gradient: linear-gradient(135deg, #1b64a6 0%, #134e86 100%);
    --card-header-bg: #1d63aa;
    --card-header-gradient: linear-gradient(90deg, #1d63aa 0%, #185594 100%);
    
    --bg-page: #f1f5f9;
    --bg-card: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-highlight: #eff6ff;
    
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-accent: #bfdbfe;
    
    --color-danguy: #dc2626;
    --color-hdnd: #d97706;
    --color-ubnd: #2563eb;
    --color-mttq: #7c3aed;
    --color-khac: #059669;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 2px 8px -1px rgba(15, 23, 42, 0.08);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    --font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --safe-bottom: env(safe-area-inset-bottom, 16px);
    --safe-top: env(safe-area-inset-top, 0px);
}

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

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-page);
    font-family: var(--font-family);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Frame mode for Desktop Preview */
body.desktop-preview-mode {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 24px 16px;
}

.device-frame-wrapper {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    position: relative;
}

body.desktop-preview-mode .device-frame-wrapper {
    max-width: 412px;
    height: 870px;
    background: #000;
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15), inset 0 0 4px rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
}

body.desktop-preview-mode .device-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-page);
    border-radius: 34px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Floating Switcher on Desktop */
.desktop-controls-bar {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 999px;
    gap: 10px;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .desktop-controls-bar {
        display: flex;
    }
}

.desktop-controls-bar a, 
.desktop-controls-bar button {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.desktop-controls-bar a:hover, 
.desktop-controls-bar button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* App Container */
.mobile-app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-page);
    padding-bottom: 76px; /* Space for bottom nav */
}

/* ==========================================================================
   TOP STATUS & APP HEADER
   ========================================================================== */
.mobile-header {
    background: var(--primary-gradient);
    color: var(--text-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(15, 76, 129, 0.2);
    padding-top: var(--safe-top);
}

/* App Nav Bar (Logo + Title) */
.mobile-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    gap: 10px;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-decoration: none;
    color: #fff;
}

.brand-emblem-wrap {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-emblem {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.mobile-logo-banner {
    max-height: 38px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.brand-sub {
    font-size: 10px;
    letter-spacing: 0.2px;
    opacity: 0.92;
    font-weight: 700;
    line-height: 1.25;
}

.brand-main {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-header-icon {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}

.btn-header-icon:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

/* ==========================================================================
   WEEK CONTROLLER (CARD SELECTOR)
   ========================================================================== */
.week-control-section {
    padding: 12px 14px 6px 14px;
}

.week-selector-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.btn-nav-week {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-nav-week:active {
    background: #e2e8f0;
    transform: scale(0.92);
}

.week-display-center {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.week-display-center:active {
    background: var(--bg-highlight);
}

.week-title-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.week-dates-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 1px;
}

.btn-calendar-picker {
    background: var(--bg-highlight);
    border: 1px solid var(--border-accent);
    color: var(--primary-blue);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-calendar-picker:active {
    background: #dbeafe;
    transform: scale(0.92);
}

/* ==========================================================================
   QUICK DAY CHIPS BAR (T2 -> CN) & FILTER STRIP
   ========================================================================== */
.quick-tools-strip {
    padding: 6px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Horizontal scroll day chips */
.day-chips-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.day-chips-scroll::-webkit-scrollbar {
    display: none;
}

.day-chip-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.day-chip-btn .day-label {
    font-size: 11px;
    text-transform: uppercase;
}

.day-chip-btn .day-num {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
}

.day-chip-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
    box-shadow: 0 2px 6px rgba(22, 91, 165, 0.3);
}

.day-chip-btn.active .day-num {
    color: #fff;
}

.day-chip-btn.is-today {
    border-color: #3b82f6;
    background: #eff6ff;
}

.day-chip-btn.is-today:not(.active) .day-num {
    color: #1d4ed8;
}

/* Quick Action / Filter Pill Bar */
.filter-pills-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
}

.filter-pills-bar::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.filter-pill.active {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
    font-weight: 600;
}

.filter-pill-search {
    flex: 1;
    min-width: 140px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-pill-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 12px;
    width: 100%;
    font-family: inherit;
    color: var(--text-main);
}

.filter-pill-search input::placeholder {
    color: var(--text-light);
}

/* ==========================================================================
   DAY CARDS CONTAINER (BỐ CỤC THẺ TỪNG NGÀY)
   ========================================================================== */
.schedule-cards-list {
    padding: 8px 14px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Day Card Unit */
.day-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.day-card.is-today-card {
    border: 2px solid #F59E0B;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

.day-card.is-today-card .day-card-header {
    background: linear-gradient(135deg, #FEF08A 0%, #FDE047 50%, #F59E0B 100%) !important;
    color: #78350F !important;
}

.day-card.is-today-card .day-card-title span {
    color: #78350F !important;
    font-weight: 900;
}

.day-card.is-today-card .day-card-item-count {
    background: rgba(120, 53, 15, 0.15) !important;
    color: #78350F !important;
    font-weight: 700;
}

.day-card.is-today-card .meta-time-wrap {
    background: #FEF9C3;
    color: #854D0E;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* Card Header Banner */
.day-card-header {
    background: var(--card-header-gradient);
    color: var(--text-white);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.day-card-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.today-badge-pill {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.day-card-item-count {
    font-size: 11.5px;
    font-weight: 500;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.18);
    padding: 2px 8px;
    border-radius: 999px;
}

/* Card Body */
.day-card-body {
    padding: 4px 0;
}

/* Individual Schedule Item inside Day Card */
.schedule-card-item {
    padding: 12px 14px;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s ease;
    cursor: pointer;
}

.schedule-card-item:last-child {
    border-bottom: none;
}

.schedule-card-item:active {
    background-color: var(--bg-subtle);
}

/* Line 1: Time & Session & Host */
.item-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    line-height: 1.35;
}

.meta-time-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #1e293b;
}

.meta-time-icon {
    font-size: 12px;
    color: var(--text-muted);
}

.meta-divider {
    color: #cbd5e1;
    font-weight: 300;
}

.meta-leader-wrap {
    color: var(--text-secondary);
    font-size: 12.5px;
}

.meta-leader-wrap strong {
    color: #0f172a;
    font-weight: 600;
}

/* Line 2: Work Content Title (Màu đỏ nổi bật theo yêu cầu) */
.item-content-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #dc2626;
    line-height: 1.35;
    margin-bottom: 6px;
}

/* Line 3: Location */
.item-location-row {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 12.5px;
    color: #475569;
    line-height: 1.35;
}

.location-pin-icon {
    font-size: 13px;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 1px;
}

.location-text {
    flex: 1;
}

/* Badges / Extras row */
.item-extras-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #f1f5f9;
}

.bloc-tag {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bloc-tag.bloc-danguy { background: #fee2e2; color: #b91c1c; }
.bloc-tag.bloc-hdnd { background: #fef3c7; color: #b45309; }
.bloc-tag.bloc-ubnd { background: #dbeafe; color: #1d4ed8; }
.bloc-tag.bloc-mttq { background: #ede9fe; color: #6d28d9; }
.bloc-tag.bloc-khac { background: #d1fae5; color: #047857; }

.attachment-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0284c7;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.attachment-chip:active {
    background: #e0f2fe;
}

/* Empty Day State */
.empty-day-state {
    padding: 18px 14px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    font-style: italic;
}

/* Empty Search Results */
.empty-search-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 36px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-search-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.empty-search-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 8px calc(6px + var(--safe-bottom)) 8px;
    z-index: 200;
    max-width: 430px;
    margin: 0 auto;
}

body.desktop-preview-mode .mobile-bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-bottom-left-radius: 34px;
    border-bottom-right-radius: 34px;
}

.nav-item-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    flex: 1;
}

.nav-item-btn .nav-icon {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.15s ease;
}

.nav-item-btn .nav-label {
    letter-spacing: -0.1px;
}

.nav-item-btn.active {
    color: var(--primary-blue);
}

.nav-item-btn.active .nav-icon {
    transform: translateY(-2px);
}

.nav-item-btn.active::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 999px;
}

.nav-badge-count {
    position: absolute;
    top: 2px;
    right: 20%;
    background: #ef4444;
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
}

/* Floating Action Button (Thêm lịch nhanh nếu có quyền) */
.mobile-fab-add {
    position: fixed;
    bottom: calc(76px + var(--safe-bottom));
    right: 18px;
    background: var(--primary-gradient);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 8px 18px rgba(22, 91, 165, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 150;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.desktop-preview-mode .mobile-fab-add {
    position: absolute;
    bottom: 84px;
    right: 18px;
}

.mobile-fab-add:active {
    transform: scale(0.9) rotate(90deg);
}

/* ==========================================================================
   VIEWS / TABS (Trang chủ, Lịch tuần, Thông báo, Tài khoản)
   ========================================================================== */
.mobile-view {
    display: none;
    width: 100%;
}

.mobile-view.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

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

/* ==========================================================================
   VIEW: TRANG CHỦ / TỔNG QUAN
   ========================================================================== */
.home-summary-container {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-greeting-card {
    background: var(--primary-gradient);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.home-greeting-card::after {
    content: '🏛️';
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 80px;
    opacity: 0.15;
    pointer-events: none;
}

.greeting-date-time {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.greeting-title {
    font-size: 18px;
    font-weight: 800;
    margin: 4px 0 8px 0;
}

.greeting-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-md);
    padding: 8px 6px;
    text-align: center;
}

.stat-num {
    font-size: 17px;
    font-weight: 800;
}

.stat-desc {
    font-size: 10.5px;
    opacity: 0.85;
    margin-top: 2px;
}

.section-block-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-block-title a {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
}

/* ==========================================================================
   VIEW: THÔNG BÁO / NHẬT KÝ
   ========================================================================== */
.notifications-list {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.notif-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notif-icon-wrap.audit {
    background: #fef3c7;
    color: #d97706;
}

.notif-body {
    flex: 1;
}

.notif-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.notif-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   VIEW: TÀI KHOẢN / CÀI ĐẶT
   ========================================================================== */
.account-view-wrap {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.account-profile-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.profile-avatar-box {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--bg-highlight);
    border: 2px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.profile-info-box {
    flex: 1;
}

.profile-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.profile-role-tag {
    display: inline-block;
    background: #ecfdf5;
    color: #059669;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-top: 3px;
}

.profile-email {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.account-menu-group {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.account-menu-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.account-menu-item:last-child {
    border-bottom: none;
}

.account-menu-item:active {
    background: var(--bg-subtle);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
}

/* ==========================================================================
   MODAL / BOTTOM SHEET (XEM CHI TIẾT LỊCH, BỘ LỌC, CHỌN TUẦN)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: none;
    align-items: flex-end; /* Bottom sheet on mobile */
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.bottom-sheet-content {
    background: #fff;
    width: 100%;
    max-width: 430px;
    max-height: 85vh;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 16px 18px calc(16px + var(--safe-bottom)) 18px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
    position: relative;
}

.modal-overlay.active .bottom-sheet-content {
    transform: translateY(0);
}

.sheet-handle-bar {
    width: 36px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 999px;
    margin: -6px auto 14px auto;
}

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

.sheet-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.btn-close-sheet {
    background: #f1f5f9;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
}

/* Detail Modal Specifics */
.detail-meta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.detail-row-icon {
    font-size: 16px;
    width: 22px;
    flex-shrink: 0;
    color: var(--primary-blue);
}

.detail-row-content {
    flex: 1;
}

.detail-row-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.detail-row-value {
    font-size: 13.5px;
    color: var(--text-main);
    font-weight: 500;
    margin-top: 1px;
}

.detail-row-value.strong-content {
    font-size: 15px;
    font-weight: 700;
    color: #dc2626;
}

.detail-actions-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.btn-detail-act {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
}

.btn-detail-act.primary {
    background: var(--primary-blue);
    color: #fff;
}

.btn-detail-act.secondary {
    background: #f1f5f9;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

/* Toast Message */
.mobile-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    background: #1e293b;
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 90%;
    text-align: center;
}

.mobile-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
