/* General Layout */
.eze-lp-container { 
    max-width: 900px; 
    margin: 0 auto; 
    font-family: 'Noto Sans Bengali', sans-serif;
}

/* --- SUPER DESIGN: Modern Mobile Tabs --- */
.eze-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    gap: 10px;
    padding-bottom: 5px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
    scrollbar-width: none; /* Firefox: Hide scrollbar */
}

/* Hide scrollbar for Chrome/Safari/Opera */
.eze-tabs::-webkit-scrollbar {
    display: none;
}

.eze-tab-button {
    flex: 0 0 auto;
    padding: 10px 20px;
    border: none;
    background-color: #f1f3f4;
    color: #5f6368;
    font-weight: 600;
    font-size: 14px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.eze-tab-button:hover {
    background-color: #e8eaed;
    color: #202124;
}

.eze-tab-button.active {
    background-color: #1a73e8;
    color: white;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.3);
}

.eze-tab-content { display: none; padding: 10px 0; border: none; animation: fadeIn 0.4s ease; }
.eze-tab-content.active { display: block; }

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

/* --- SUPER DESIGN: Modern Form Inputs --- */
.eze-form-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.eze-form-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.eze-form-group {
    flex: 1;
    min-width: 200px;
}

.eze-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eze-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box; /* Crucial for width: 100% */
}

.eze-form-control:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    outline: none;
}

/* --- AUTO SCHEDULER STYLES --- */
.eze-scheduler-panel {
    background-color: #f0f7ff;
    border: 1px solid #cce5ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.eze-week-ticker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eze-week-ticker label {
    display: inline-flex !important;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px !important;
    transition: all 0.2s;
    user-select: none;
    margin-bottom: 0 !important;
}

.eze-week-ticker input[type="checkbox"] {
    margin-right: 5px;
    accent-color: #1a73e8;
}

.eze-week-ticker label:hover {
    background-color: #e8f0fe;
    border-color: #1a73e8;
}

.eze-week-ticker label:has(input:checked) {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.eze-btn-generate {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(108, 92, 231, 0.2);
    transition: transform 0.2s;
    width: 100%;
    margin-top: 10px;
}
.eze-btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 92, 231, 0.3);
}

/* --- NEW: CARD GRID SYSTEM --- */
.eze-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.eze-lp-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.eze-lp-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.eze-lp-card.selected {
    border: 2px solid #1a73e8;
    background-color: #f8fbff;
}

/* Card Header */
.eze-card-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lp-day-badge {
    background: #1a73e8;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
}

.lp-date-badge {
    color: #555;
    font-size: 13px;
    font-weight: 500;
}

/* Card Body */
.eze-card-body {
    padding: 15px;
    flex-grow: 1;
}

.lp-meta-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lp-meta-tag {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
}

.lp-content-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
    cursor: pointer;
    border-left: 3px solid #eee;
    padding-left: 10px;
}

.lp-content-text:hover {
    border-left-color: #1a73e8;
    background: #fafafa;
}

/* Card Footer (Inputs/Actions) */
.eze-card-footer {
    padding: 12px 15px;
    border-top: 1px solid #eee;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Assign Specific Inputs */
.assign-card-check-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #1a73e8;
}

.assign-card-check-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a73e8;
}

/* Utility Styles */
.table-responsive { overflow-x: auto; width: 100%; border-radius: 8px; border: 1px solid #eee; margin-top: 20px; }
.lesson-plan-table { min-width: 700px; border-collapse: collapse; }
.lesson-plan-table th, .lesson-plan-table td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; }
.lesson-plan-table th { background: #f8f9fa; font-weight: 600; color: #444; }
.lesson-plan-table tr:hover { background-color: #f8faff; }

.lessonPlanContent { white-space: pre-wrap; cursor: pointer; }
.masterPlanContent { white-space: pre-wrap; font-size: 13px; }

.message-box { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #4CAF50; color: white; padding: 15px 25px; border-radius: 8px; z-index: 1000; display: none; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); font-weight: 500; }

.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.8); display: flex; justify-content: center; align-items: center; z-index: 1001; display: none; backdrop-filter: blur(2px); }
.loading-spinner { border: 4px solid #f3f3f3; border-top: 4px solid #1a73e8; border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Modal */
#editModal.modal { display: none; position: fixed; z-index: 99999; padding-top: 60px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.modal-content { background-color: #fff; margin: auto; padding: 30px; border: none; width: 90%; max-width: 500px; border-radius: 12px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2); animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.close-button { color: #aaa; float: right; font-size: 28px; font-weight: bold; transition: color 0.2s; }
.close-button:hover { color: #333; cursor: pointer; }

/* Assignment Selectors */
.assignment-selectors { display: flex; flex-direction: column; gap: 15px; padding: 20px; border: 1px dashed #ccc; margin-top: 20px; background: #fafafa; border-radius: 8px; }
.section-checkboxes {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    overflow: visible !important;
    min-height: 28px;
}
/* Override .eze-form-group label block display for checkbox labels inside section-checkboxes */
.section-checkboxes label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: #fff !important;
    border: 1px solid #c9b8f8 !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #4a3a8a !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
    user-select: none;
    transition: background 0.15s, border-color 0.15s;
}
.section-checkboxes label:hover {
    background: #ede8ff !important;
    border-color: #6c5ce7 !important;
}
.section-checkboxes label input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    accent-color: #6c5ce7;
}
.section-checkboxes label:has(input:checked) {
    background: #6c5ce7 !important;
    border-color: #5a4dd1 !important;
    color: #fff !important;
}

/* Batch Upload Tools Styles */
.batch-upload-tools { background-color: #f8f9fa; border: 1px solid #e1e4e8; padding: 20px; margin-bottom: 25px; border-radius: 8px; }
.upload-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.file-input { padding: 8px; border: 1px solid #ccc; background: #fff; border-radius: 6px; }

/* Buttons */
.button { padding: 10px 20px; border-radius: 6px; border: none; cursor: pointer; font-size: 14px; transition: opacity 0.2s; display: inline-block; text-decoration: none; }
.button:hover { opacity: 0.9; }

/* --- RESPONSIVE MOBILE FIXES --- */
@media (max-width: 600px) {
    .eze-lp-container { padding: 0 5px; width: 100%; box-sizing: border-box; }
    .eze-lp-container .eze-form-grid { flex-direction: column !important; gap: 15px !important; }

    .eze-lp-container .eze-tabs {
        display: flex !important; flex-direction: column !important; flex-wrap: wrap !important;
        overflow: visible !important; height: auto !important; gap: 10px !important;
        margin-bottom: 20px !important; border-bottom: none !important; width: 100% !important;
    }
    .eze-lp-container .eze-tab-button {
        display: block !important; width: 100% !important; text-align: center !important;
        white-space: normal !important; border-radius: 8px !important; padding: 15px 10px !important;
        background-color: #f8f9fa !important; color: #333 !important; min-height: 44px !important;
    }
    .eze-lp-container .eze-tab-button.active { background-color: #1a73e8 !important; color: white !important; }

    .eze-lp-container select, .eze-lp-container .eze-form-control, .eze-lp-container input[type="date"], .eze-lp-container input[type="text"] {
        display: block !important; visibility: visible !important; opacity: 1 !important;
        font-size: 16px !important; min-height: 45px !important; width: 100% !important;
        -webkit-appearance: menulist !important; appearance: menulist !important;
        background-color: #fff !important; color: #333 !important; border: 1px solid #ccc !important;
        margin-bottom: 10px !important;
    }
    /* Override: lesson plan textarea must be tall enough for 6+ lines */
    .eze-lp-container textarea.eze-ma-plan,
    .eze-lp-container .eze-ma-plan {
        min-height: 160px !important;
        height: 160px !important;
        resize: vertical !important;
        overflow-y: auto !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    .eze-lp-container #filterDropdowns { display: flex !important; flex-direction: column !important; width: 100% !important; }
    .eze-lp-container #filterDropdowns select { width: 100% !important; margin-bottom: 10px !important; }
    .modal-content { width: 95% !important; margin: 10% auto !important; padding: 20px !important; }
    
    /* Grid Adjustments for Mobile */
    .eze-card-grid {
        grid-template-columns: 1fr !important;
    }

    /* Section checkboxes – force visibility on mobile */
    .section-checkboxes {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        overflow: visible !important;
    }
    .section-checkboxes label {
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        width: auto !important;
        min-width: unset !important;
        min-height: unset !important;
        padding: 7px 12px !important;
        font-size: 13px !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    .section-checkboxes label input[type="checkbox"] {
        display: inline-block !important;
        width: 16px !important;
        height: 16px !important;
        min-height: unset !important;
        -webkit-appearance: checkbox !important;
        appearance: checkbox !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
}

/* Print & Public Styles */
.eze-lesson-plan-print, .eze-lesson-plan-print * { font-family: 'Noto Sans Bengali', sans-serif !important; box-sizing: border-box; }
.eze-public-lp-container { max-width: 900px; margin: 0 auto; font-family: 'Noto Sans Bengali', sans-serif; }

/* ---- Public Page Tabs ---- */
.eze-pub-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e1e1e1;
    flex-wrap: wrap;
}
.eze-pub-tab-btn {
    background: #f0f0f1;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 9px 20px;
    font-size: 14px;
    cursor: pointer;
    color: #50575e;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}
.eze-pub-tab-btn:hover { background: #e0e0e0; color: #2271b1; }
.eze-pub-tab-btn.active { background: #2271b1; color: #fff; border-color: #2271b1; font-weight: 600; }

/* ---- Public Tab Panes ---- */
.eze-pub-tab-pane { display: block; animation: fadeIn 0.3s ease; }

/* ---- Print Range Box ---- */
.eze-pub-print-box {
    background: #fafbfc;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 24px;
}
.eze-pub-print-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 14px;
}
.eze-pub-print-form .form-group { flex: 1; min-width: 150px; }
.eze-pub-print-form .form-group label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: #3c434a; }
.eze-pub-print-form .form-group input { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.eze-pub-print-form .form-group select { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; background: #fff; }
.eze-pub-print-form .form-group select:disabled { background: #f5f5f5; color: #999; cursor: not-allowed; }
.eze-optional-badge { display:inline-block; background:#e8f4fd; color:#2271b1; font-size:10px; font-weight:600; padding:1px 6px; border-radius:8px; border:1px solid #bee3f8; margin-left:4px; vertical-align:middle; }
.eze-pub-print-hint { color: #666; font-size: 12px; line-height: 1.5; margin-top: 10px; padding: 8px 12px; background: #e8f4fd; border-left: 3px solid #2271b1; border-radius: 0 4px 4px 0; }

@media (max-width:600px) {
    .eze-pub-tabs { gap: 2px; }
    .eze-pub-tab-btn { font-size: 12px; padding: 8px 12px; }
    .eze-pub-print-form { flex-direction: column; }
}
.eze-public-search-box { background: #f9f9f9; padding: 20px; border-radius: 8px; border: 1px solid #e1e1e1; margin-bottom: 30px; }
.eze-public-form { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end; }
.eze-public-form .form-group { flex: 1; min-width: 150px; }
.eze-public-form .form-group input, .eze-public-form .form-group select { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.eze-public-btn { background-color: #2271b1; color: #fff; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 14px; height: 40px; margin-top: 1px; }

.eze-daily-cards { display: flex; flex-direction: column; gap: 20px; }
.eze-day-card { border: 1px solid #e2e4e7; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.eze-card-header { background: #f0f0f1; padding: 10px 15px; border-bottom: 1px solid #e2e4e7; display: flex; justify-content: space-between; align-items: center; }
.eze-card-header .day-name { font-weight: bold; font-size: 16px; color: #2271b1; }
.eze-card-header .full-date { font-size: 13px; color: #646970; }
.eze-subject-row { padding: 15px; border-bottom: 1px solid #f0f0f1; }
.eze-subject-row .subject-name { font-weight: bold; font-size: 15px; color: #1d2327; margin-bottom: 5px; }
.eze-subject-row .section-badge { background: #dcdcde; color: #50575e; font-size: 11px; padding: 2px 6px; border-radius: 10px; }
.plan-content a { color: #2271b1; text-decoration: underline; overflow-wrap: break-word; word-break: break-word; }
.plan-content a:hover { color: #135e96; text-decoration: none; }
/* ============================================================
   MASTER PLAN DASHBOARD (v4.3)
   ============================================================ */

/* Hero */
.eze-mp-wrap { max-width: 1200px; }
.eze-mp-hero {
    display: flex;
    gap: 18px;
    align-items: center;
    background: linear-gradient(135deg, #1a73e8 0%, #6c5ce7 100%);
    color: #fff;
    padding: 22px 26px;
    border-radius: 16px;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(26,115,232,0.18);
}
.eze-mp-hero-icon {
    font-size: 42px;
    line-height: 1;
    background: rgba(255,255,255,0.18);
    width: 64px; height: 64px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.eze-mp-hero-title {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.eze-mp-hero-sub {
    margin: 0;
    font-size: 14px;
    opacity: 0.92;
}

/* Tab bar tweaks for master page */
.eze-mp-tabs { margin-bottom: 22px; }

/* Tab content containers (separate from the main shortcode's .eze-tab-content) */
.eze-mp-tab-content {
    display: none;
    animation: fadeIn 0.35s ease;
}
.eze-mp-tab-content.active { display: block; }

/* ---------- Dashboard Filter Bar ---------- */
.eze-dash-filterbar {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.eze-dash-filter-group { flex: 1; min-width: 180px; }
.eze-dash-filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}
.eze-dash-filter-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
    min-width: unset;
}
.eze-btn-ghost {
    background: #f1f3f4;
    color: #333;
    border: 1px solid #dadce0;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s;
}
.eze-btn-ghost:hover { background: #e8eaed; }
.eze-btn-primary {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s, transform 0.15s;
}
.eze-btn-primary:hover { background: #1765cc; transform: translateY(-1px); }

/* ---------- Stat Cards ---------- */
.eze-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.eze-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #eceef1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.eze-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.eze-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 5px; height: 100%;
    border-radius: 5px 0 0 5px;
}
.eze-stat-blue::before   { background: #1a73e8; }
.eze-stat-green::before  { background: #22c55e; }
.eze-stat-purple::before { background: #8b5cf6; }
.eze-stat-orange::before { background: #f59e0b; }
.eze-stat-teal::before   { background: #14b8a6; }
.eze-stat-red::before    { background: #ef4444; }

.eze-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}
.eze-stat-value {
    font-size: 30px;
    font-weight: 700;
    color: #202124;
    line-height: 1.1;
    margin-bottom: 6px;
    transition: opacity 0.2s;
}
.eze-stat-value.eze-stat-loading { opacity: 0.4; }
.eze-stat-foot {
    font-size: 12px;
    color: #80868b;
}

/* ---------- Dashboard Card ---------- */
.eze-dash-card {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 18px;
}
.eze-dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}
.eze-dash-card-head h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #202124;
}
.eze-dash-card-sub {
    font-size: 12px;
    color: #80868b;
}
.eze-dash-empty {
    text-align: center;
    color: #9aa0a6;
    padding: 24px 10px;
    font-size: 13px;
}
.eze-dash-empty.eze-dash-ok {
    color: #22c55e;
    font-weight: 600;
}

.eze-dash-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-bottom: 0;
}
.eze-dash-two-col .eze-dash-card { margin-bottom: 18px; }

/* ---------- Coverage bar ---------- */
.eze-coverage-bar {
    width: 100%;
    height: 28px;
    background: #f1f3f4;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}
.eze-coverage-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #10b981);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    border-radius: 999px;
    transition: width 0.6s ease;
    min-width: 40px;
}
.eze-coverage-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #5f6368;
}
.eze-coverage-legend b { color: #202124; }

/* ---------- Horizontal bar lists ---------- */
.eze-hbar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}
.eze-hbar-row {
    display: grid;
    grid-template-columns: 110px 1fr 50px;
    gap: 10px;
    align-items: center;
}
.eze-hbar-label {
    font-size: 13px;
    font-weight: 600;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.eze-hbar-track {
    background: #f1f3f4;
    border-radius: 999px;
    height: 18px;
    overflow: hidden;
}
.eze-hbar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s ease;
    background: #1a73e8;
}
.eze-hbar-fill.eze-hbar-blue   { background: linear-gradient(90deg, #1a73e8, #4285f4); }
.eze-hbar-fill.eze-hbar-orange { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.eze-hbar-fill.eze-hbar-teal   { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }
.eze-hbar-val {
    font-size: 13px;
    font-weight: 700;
    color: #202124;
    text-align: right;
}

/* ---------- Day distribution (vertical bars) ---------- */
.eze-day-dist {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 0 4px 0;
    align-items: flex-end;
    min-height: 200px;
}
.eze-day-col {
    flex: 0 0 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.eze-day-bar-wrap {
    height: 140px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.eze-day-bar {
    width: 100%;
    background: linear-gradient(180deg, #8b5cf6, #6c5ce7);
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: height 0.5s ease;
}
.eze-day-count {
    font-size: 11px;
    font-weight: 700;
    color: #202124;
}
.eze-day-label {
    font-size: 10px;
    color: #80868b;
    white-space: nowrap;
}

/* ---------- Monthly trend ---------- */
.eze-trend-wrap { width: 100%; }
.eze-trend {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    align-items: flex-end;
    min-height: 200px;
}
.eze-trend-col {
    flex: 0 0 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.eze-trend-val {
    font-size: 11px;
    font-weight: 700;
    color: #202124;
}
.eze-trend-bar-wrap {
    height: 140px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.eze-trend-bar {
    width: 100%;
    background: linear-gradient(180deg, #1a73e8, #4285f4);
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: height 0.5s ease;
}
.eze-trend-label {
    font-size: 10px;
    color: #5f6368;
    white-space: nowrap;
    transform: rotate(-20deg);
    transform-origin: center;
    margin-top: 4px;
}

/* ---------- Class × Subject heatmap matrix ---------- */
.eze-matrix-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.eze-matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
    font-size: 12px;
}
.eze-matrix-table th {
    background: #f1f3f4;
    padding: 8px 10px;
    font-weight: 700;
    color: #202124;
    text-align: center;
    white-space: nowrap;
    border-radius: 6px;
    font-size: 12px;
}
.eze-matrix-corner { background: #e8eaed !important; }
.eze-matrix-row-h {
    position: sticky;
    left: 0;
    z-index: 2;
    text-align: left !important;
    min-width: 110px;
}
.eze-matrix-cell {
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    min-width: 52px;
    transition: transform 0.15s;
}
.eze-matrix-cell:hover { transform: scale(1.08); }
.eze-matrix-total {
    background: #202124 !important;
    color: #fff !important;
    font-weight: 700;
}
.eze-matrix-grand { background: #0b5cd9 !important; }

/* ---------- Recent list ---------- */
.eze-recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
}
.eze-recent-item {
    background: #f8fafc;
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    padding: 12px 14px;
    transition: background 0.15s, border-color 0.15s;
}
.eze-recent-item:hover {
    background: #fff;
    border-color: #1a73e8;
}
.eze-recent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.eze-recent-text {
    font-size: 13px;
    color: #3c4043;
    line-height: 1.5;
}

/* ---------- Orphan list ---------- */
.eze-orphan-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
}
.eze-orphan-item {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 12px;
}

/* ---------- Pills (badges) ---------- */
.eze-pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    background: #e8eaed;
    color: #202124;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.eze-pill-blue  { background: #e3f0fd; color: #1765cc; }
.eze-pill-red   { background: #fee2e2; color: #b91c1c; }
.eze-pill-light { background: #f1f3f4; color: #5f6368; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .eze-mp-hero { padding: 16px 18px; gap: 12px; }
    .eze-mp-hero-icon { width: 48px; height: 48px; font-size: 30px; border-radius: 10px; }
    .eze-mp-hero-title { font-size: 17px; }
    .eze-mp-hero-sub { font-size: 12px; }

    .eze-stat-card { padding: 14px 16px; }
    .eze-stat-value { font-size: 24px; }

    .eze-hbar-row { grid-template-columns: 90px 1fr 40px; gap: 6px; }
    .eze-hbar-label { font-size: 12px; }

    .eze-dash-card { padding: 14px; }
    .eze-dash-card-head h4 { font-size: 14px; }

    .eze-coverage-legend { font-size: 12px; gap: 10px; }
}

/* ============================================================
   DAILY ROUTINE STATUS TAB  (v4.4)
   ============================================================ */

/* --- Summary strip --- */
.eze-dr-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
}
.eze-dr-sum-card {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1.5px solid #e6e8eb;
    min-width: 100px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.eze-dr-sum-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.eze-dr-sum-total      { border-color: #c7d2fe; background: #eef2ff; }
.eze-dr-sum-assigned   { border-color: #bbf7d0; background: #f0fdf4; }
.eze-dr-sum-completed  { border-color: #6ee7b7; background: #ecfdf5; }
.eze-dr-sum-not-assigned{ border-color: #fca5a5; background: #fff1f2; }
.eze-dr-sum-val {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
}
.eze-dr-sum-label {
    font-size: 12px;
    color: #5f6368;
    margin-top: 4px;
    text-align: center;
}

/* --- Legend --- */
.eze-dr-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e6e8eb;
}
.eze-dr-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #3c4043;
}
.eze-dr-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.eze-dr-dot-completed   { background: #22c55e; }
.eze-dr-dot-today       { background: #f59e0b; }
.eze-dr-dot-upcoming    { background: #1a73e8; }
.eze-dr-dot-nodate      { background: #8b5cf6; }
.eze-dr-dot-unassigned  { background: #ef4444; }

/* --- Day list --- */
.eze-dr-day-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Day card --- */
.eze-dr-day-card {
    border: 1.5px solid #e6e8eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.eze-dr-day-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.eze-dr-day-full    { border-left: 4px solid #22c55e; }
.eze-dr-day-partial { border-left: 4px solid #f59e0b; }
.eze-dr-day-none    { border-left: 4px solid #ef4444; }

/* Day card header (clickable toggle) */
.eze-dr-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    background: #f8fafc;
    border-bottom: 1px solid #e6e8eb;
    user-select: none;
    transition: background 0.15s;
}
.eze-dr-day-head:hover { background: #f1f3f4; }
.eze-dr-day-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.eze-dr-day-num {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a2e;
}
.eze-dr-day-count {
    font-size: 12px;
    color: #5f6368;
    background: #e8eaed;
    border-radius: 99px;
    padding: 2px 9px;
}
.eze-dr-day-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.eze-dr-day-stat {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    white-space: nowrap;
}
.eze-dr-ds-assigned   { background: #dcfce7; color: #15803d; }
.eze-dr-ds-completed  { background: #d1fae5; color: #065f46; }
.eze-dr-ds-unassigned { background: #fee2e2; color: #991b1b; }

.eze-dr-toggle-icon {
    font-size: 12px;
    color: #9aa0a6;
    transition: transform 0.25s;
    flex-shrink: 0;
}
.eze-dr-day-card.eze-dr-expanded .eze-dr-toggle-icon {
    transform: rotate(180deg);
}

/* Day card body (collapsed by default) */
.eze-dr-day-body {
    display: none;
    padding: 12px 16px;
    background: #fff;
}
.eze-dr-day-card.eze-dr-expanded .eze-dr-day-body {
    display: block;
    animation: fadeIn 0.25s ease;
}

/* --- Plan rows within a day card --- */
.eze-dr-plan-row {
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.eze-dr-plan-row:last-child { margin-bottom: 0; }
.eze-dr-plan-completed      { border-left: 4px solid #22c55e; }
.eze-dr-plan-today          { border-left: 4px solid #f59e0b; }
.eze-dr-plan-upcoming       { border-left: 4px solid #1a73e8; }
.eze-dr-plan-assigned_no_date { border-left: 4px solid #8b5cf6; }
.eze-dr-plan-not_assigned   { border-left: 4px solid #ef4444; background: #fff7f7; }

.eze-dr-plan-header {
    padding: 10px 12px 6px;
}
.eze-dr-plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}
.eze-dr-plan-snippet {
    font-size: 12px;
    color: #5f6368;
    line-height: 1.5;
}

.eze-dr-plan-body {
    padding: 6px 12px 10px;
    border-top: 1px dashed #e6e8eb;
    background: #fafafa;
}

/* Schedule list inside plan */
.eze-dr-sched-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.eze-dr-sched-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e6e8eb;
    font-size: 12px;
}
.eze-dr-sched-date {
    color: #3c4043;
    font-weight: 600;
}
.eze-dr-no-sched {
    font-size: 12px;
    color: #e53935;
    font-style: italic;
}

/* --- Status badges --- */
.eze-dr-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.eze-dr-badge-completed  { background: #dcfce7; color: #15803d; }
.eze-dr-badge-today      { background: #fef3c7; color: #92400e; }
.eze-dr-badge-upcoming   { background: #dbeafe; color: #1e40af; }
.eze-dr-badge-nodate     { background: #ede9fe; color: #5b21b6; }
.eze-dr-badge-unassigned { background: #fee2e2; color: #991b1b; }

/* --- Filter bar override for DR tab --- */
.eze-dr-filterbar { margin-bottom: 16px; }

/* --- Responsive --- */
@media (max-width: 640px) {
    .eze-dr-sum-card  { padding: 10px 12px; }
    .eze-dr-sum-val   { font-size: 22px; }
    .eze-dr-day-head  { padding: 10px 12px; }
    .eze-dr-day-num   { font-size: 14px; }
}

/* =============================================================
   TAB 5: ROUTINE COVERAGE
   ============================================================= */

/* Filter bar */
.eze-rc-filterbar { margin-bottom: 16px; }

/* Day tabs strip (replaces দেখুন select) */
/* ====================================================
   ROUTINE COVERAGE – Week Date Picker Bar
   ==================================================== */
.eze-rc-week-picker-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: linear-gradient(135deg, #1a3060 0%, #2a4fa0 100%);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(26,48,96,0.18);
}
.eze-rc-week-picker-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.eze-rc-week-picker-icon {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.eze-rc-week-picker-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.eze-rc-week-picker-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.eze-rc-week-range {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}
.eze-rc-week-picker-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.eze-rc-date-input {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    padding: 7px 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
    color-scheme: dark;
}
.eze-rc-date-input:hover,
.eze-rc-date-input:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.7);
}
.eze-rc-week-nav {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    line-height: 1;
}
.eze-rc-week-nav:hover {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-1px);
}
.eze-rc-week-nav:active { transform: translateY(0); }
.eze-rc-week-today {
    font-size: 12px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.22);
}

/* ====================================================
   DAY TABS – Date display upgrade
   ==================================================== */
.eze-rc-day-tabs-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.eze-rc-day-tabs-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
}
.eze-rc-day-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.eze-rc-day-tab {
    background: #f0f4ff;
    border: 1.5px solid #c5d0ee;
    border-radius: 10px;
    padding: 7px 10px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #3a4a6b;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 54px;
}
.eze-rc-tab-dayname {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
}
.eze-rc-tab-en {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: #7a8cb0;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.eze-rc-tab-date {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #5a7abf;
    margin-top: 3px;
    padding: 2px 6px;
    background: rgba(90,122,191,0.1);
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.eze-rc-day-tab:hover {
    background: #dde6ff;
    border-color: #7b9de0;
    color: #1a3060;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(26,48,96,0.1);
}
.eze-rc-day-tab:hover .eze-rc-tab-en { color: #5a78c0; }
.eze-rc-day-tab:hover .eze-rc-tab-date {
    background: rgba(90,122,191,0.18);
    color: #2a4fa0;
}
.eze-rc-day-tab.active {
    background: #1a3060;
    border-color: #1a3060;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26,48,96,0.30);
    transform: translateY(-2px);
}
.eze-rc-day-tab.active .eze-rc-tab-en { color: #8ab0f0; }
.eze-rc-day-tab.active .eze-rc-tab-date {
    background: rgba(255,255,255,0.18);
    color: #c8deff;
}
/* Today indicator */
.eze-rc-day-tab.eze-rc-tab-today {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245,158,11,0.25);
}
.eze-rc-day-tab.eze-rc-tab-today .eze-rc-tab-date {
    background: rgba(245,158,11,0.15);
    color: #b45309;
    font-weight: 700;
}
.eze-rc-day-tab.eze-rc-tab-today.active .eze-rc-tab-date {
    background: rgba(245,158,11,0.3);
    color: #fde68a;
}



/* Lesson Plan YES / NO subtabs */
.eze-rc-lp-subtabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0 4px;
    padding: 10px 14px;
    background: #f8f9fc;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
}
.eze-rc-lp-subtab {
    background: #fff;
    border: 1.5px solid #d0d8ec;
    border-radius: 6px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #3a4a6b;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.eze-rc-lp-subtab:hover {
    background: #eef2ff;
    border-color: #8fa8e0;
}
.eze-rc-lp-subtab.active {
    background: #1a3060;
    border-color: #1a3060;
    color: #fff;
}
.eze-rc-lp-subtab[data-lp-filter="yes"].active { background: #15803d; border-color: #15803d; }
.eze-rc-lp-subtab[data-lp-filter="no"].active  { background: #991b1b; border-color: #991b1b; }

/* Day blocks */
.eze-rc-day-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.eze-rc-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f4ff;
    border-bottom: 1px solid #dde3f5;
    padding: 10px 16px;
}
.eze-rc-day-name {
    font-weight: 700;
    font-size: 15px;
    color: #1a3060;
}
.eze-rc-day-name small {
    font-weight: 400;
    font-size: 12px;
    color: #5a6a8a;
    margin-left: 6px;
}
.eze-rc-day-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.eze-rc-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}
.eze-rc-badge-ok      { background: #dcfce7; color: #15803d; }
.eze-rc-badge-missing { background: #fee2e2; color: #991b1b; }

/* Slots grid */
.eze-rc-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    padding: 14px 16px;
}
.eze-rc-slot {
    border-radius: 6px;
    padding: 10px 12px;
    border-left: 4px solid #ccc;
    background: #fafafa;
    font-size: 13px;
}
.eze-rc-slot-ok      { border-left-color: #28a745; background: #f0fdf4; }
.eze-rc-slot-missing { border-left-color: #dc3545; background: #fff5f5; }

.eze-rc-slot-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.eze-rc-slot-period {
    background: #e9ecef;
    color: #495057;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.eze-rc-slot-class {
    font-weight: 700;
    color: #1a3060;
    font-size: 13px;
}
.eze-rc-slot-section {
    color: #6c757d;
    font-size: 11px;
}
.eze-rc-slot-bottom { font-size: 13px; }
.eze-rc-slot-subject {
    font-weight: 600;
    color: #333;
}
.eze-rc-lp-count {
    display: inline-block;
    margin-left: 6px;
    background: #d1e7dd;
    color: #0f5132;
    padding: 1px 7px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}
.eze-rc-no-plan {
    display: inline-block;
    margin-left: 6px;
    background: #f8d7da;
    color: #842029;
    padding: 1px 7px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}

/* ── Date assignment row ──────────────────────────────── */
.eze-rc-slot-date-row {
    margin-top: 7px;
    padding-top: 6px;
    border-top: 1px dashed #d1d5db;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 5px;
}

.eze-rc-slot-date-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 99px;
    white-space: nowrap;
}

.eze-rc-date-assigned {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.eze-rc-date-missing {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.eze-rc-other-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    width: 100%;
}

.eze-rc-other-dates-label {
    font-size: 10.5px;
    color: #6b7280;
    font-weight: 500;
}

.eze-rc-date-chip {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 99px;
    padding: 1px 7px;
    font-size: 10.5px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .eze-rc-slots { grid-template-columns: 1fr; }
    .eze-rc-day-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .eze-rc-week-picker-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }
    .eze-rc-week-picker-right { width: 100%; }
    .eze-rc-date-input { flex: 1; }
    .eze-rc-week-range { font-size: 13px; }
    .eze-rc-day-tab { min-width: 44px; padding: 6px 6px 7px; }
    .eze-rc-tab-dayname { font-size: 11px; }
    .eze-rc-tab-date { font-size: 9px; padding: 1px 4px; }
}

/* ============================================================
   📱 WhatsApp to Teachers — Card Grid System
   Added: aiginex-lesson-plan v4.9 upgrade
   ============================================================ */

/* ── Subtab: active state for the WhatsApp button ──────────── */
.eze-rc-lp-subtab[data-lp-filter="whatsapp"].active {
    background: #075e54;          /* WhatsApp brand green */
    border-color: #075e54;
    color: #fff;
}
.eze-rc-lp-subtab[data-lp-filter="whatsapp"]:not(.active):hover {
    background: #e8f5e9;
    border-color: #25d366;
    color: #075e54;
}

/* ── Summary strip above the grid ──────────────────────────── */
.eze-wa-summary {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #5d4037;
}

/* ── Responsive grid ────────────────────────────────────────── */
.eze-wa-teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* ── Individual teacher card ────────────────────────────────── */
.eze-wa-teacher-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.eze-wa-teacher-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.13);
    transform: translateY(-2px);
}

/* ── Card header: avatar + name/phone ──────────────────────── */
.eze-wa-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f0f0f0;
    background: #f9f9f9;
}
.eze-wa-teacher-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #075e54 0%, #25d366 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0;
}
.eze-wa-teacher-info {
    flex: 1;
    min-width: 0;
}
.eze-wa-teacher-name {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.eze-wa-teacher-phone {
    font-size: 12px;
    color: #555;
    margin-top: 3px;
}

/* ── Missing plans header ───────────────────────────────────── */
.eze-wa-missing-header {
    padding: 8px 16px 4px;
    font-size: 12px;
    color: #c0392b;
    background: #fff5f5;
}

/* ── Missing assignment list ────────────────────────────────── */
.eze-wa-missing-list {
    list-style: none;
    margin: 0;
    padding: 4px 16px 10px;
    flex: 1;
    background: #fff5f5;
    border-bottom: 1px solid #fce4e4;
}
.eze-wa-missing-list li {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 4px 0;
    font-size: 12px;
    border-bottom: 1px dashed #fcd3d3;
    line-height: 1.4;
}
.eze-wa-missing-list li:last-child {
    border-bottom: none;
}
.eze-wa-missing-class {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}
.eze-wa-missing-sep {
    color: #bbb;
    font-size: 11px;
}
.eze-wa-missing-subject {
    color: #c0392b;
    font-style: italic;
}

/* ── Card footer: action button ─────────────────────────────── */
.eze-wa-card-footer {
    padding: 12px 16px;
    background: #fff;
    display: flex;
    justify-content: flex-end;
}
.eze-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    background: #25d366;
    color: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(37,211,102,0.35);
}
.eze-wa-btn:hover {
    background: #128c7e;
    box-shadow: 0 4px 12px rgba(18,140,126,0.45);
    color: #fff;
    text-decoration: none;
}
.eze-wa-btn-disabled {
    background: #e0e0e0;
    color: #999;
    box-shadow: none;
    cursor: not-allowed;
}

/* ── Responsive: single column on narrow screens ─────────────── */
@media (max-width: 600px) {
    .eze-wa-teacher-grid {
        grid-template-columns: 1fr;
    }
    .eze-wa-teacher-name { font-size: 14px; }
}

/* ── Auto Scheduler Collapsible ─────────────────────────────── */
.eze-scheduler-toggle-header:hover {
    background: linear-gradient(135deg, #e8e0ff, #ddf0ff) !important;
}
.eze-scheduler-toggle-header h4 {
    pointer-events: none;
}

/* ── Tab4: Master Plan Add ───────────────────────────────────── */
.eze-master-add-view-table thead th {
    background: #f0f4ff;
    font-weight: 600;
    color: #333;
}
.eze-master-add-view-table tbody tr:nth-child(even) {
    background: #f9fbff;
}

/* Add-row card — flex column on all screen sizes */
.eze-master-add-new-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 10px 12px 12px;
    margin-bottom: 10px;
}

/* Top bar: day + subject + remove button in one row */
.eze-ma-topbar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}
.eze-ma-topbar .eze-ma-day {
    flex: 0 0 80px;
    min-width: 0;
    font-size: 13px;
}
.eze-ma-topbar .eze-ma-subject {
    flex: 1 1 0;
    min-width: 0;
    font-size: 13px;
}
.eze-ma-remove-row {
    flex: 0 0 auto;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c0392b;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 6px 10px;
    white-space: nowrap;
}

/* Textarea — full width, auto-expands via JS */
.eze-master-add-new-row .eze-ma-plan {
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    resize: vertical;
    min-height: 180px;
    line-height: 1.6;
    overflow-y: auto;
    display: block;
}

@media (max-width: 640px) {
    .eze-ma-topbar .eze-ma-day    { flex: 0 0 70px; font-size: 14px; }
    .eze-ma-topbar .eze-ma-subject { font-size: 14px; }
    .eze-master-add-new-row .eze-ma-plan {
        font-size: 14px;
        min-height: 160px;
        height: 160px;
        touch-action: pan-y;
    }
}
