/* Teacher Meeting Interface - New Design */

/* ============================================
   Device Check Button + Modal
   ============================================ */

.device-check-bar {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.device-check-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    border: 2px solid;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.device-check-btn.loading {
    background: #f5f5f5;
    border-color: #ddd;
    color: #888;
    cursor: default;
}

.device-check-btn.ok {
    background: rgba(39, 174, 96, 0.08);
    border-color: rgba(39, 174, 96, 0.4);
    color: #27ae60;
}

.device-check-btn.ok:hover {
    background: rgba(39, 174, 96, 0.15);
}

.device-check-btn.warn {
    background: rgba(231, 76, 60, 0.07);
    border-color: rgba(231, 76, 60, 0.4);
    color: #c0392b;
}

.device-check-btn.warn:hover {
    background: rgba(231, 76, 60, 0.14);
}

/* Modal overlay */
.dc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-modal {
    background: #fff;
    border-radius: 20px;
    width: 92%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: dcSlideIn 0.22s ease;
}

@keyframes dcSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dc-modal-header {
    background: linear-gradient(135deg, #820c22, #a01533);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dc-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.dc-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.dc-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dc-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Camera preview */
.dc-preview-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
}

.dc-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    transform: scaleX(-1);
}

.dc-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
}

.dc-placeholder span {
    font-size: 2.5rem;
}

.dc-placeholder p {
    margin: 0;
    font-size: 0.85rem;
}

.dc-preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.72rem;
    text-align: center;
    padding: 4px;
}

/* Status rows */
.dc-status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dc-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 11px 14px;
    transition: background 0.2s, border-color 0.2s;
}

.dc-status-row.ok {
    background: rgba(39, 174, 96, 0.06);
    border-color: rgba(39, 174, 96, 0.25);
}

.dc-status-row.err {
    background: rgba(231, 76, 60, 0.06);
    border-color: rgba(231, 76, 60, 0.25);
}

.dc-status-ico {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.dc-status-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dc-status-info strong {
    font-size: 0.88rem;
    color: #222;
}

.dc-status-info span {
    font-size: 0.78rem;
    color: #777;
}

.dc-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: #eee;
    color: #666;
    white-space: nowrap;
}

.dc-badge.ok {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.dc-badge.err {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

/* Mic meter */
.dc-mic-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
}

.dc-mic-meter span {
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
}

.dc-meter-bg {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.dc-meter-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #27ae60, #fac40d, #e74c3c);
    border-radius: 4px;
    transition: width 0.08s linear;
}

/* Denied help */
.dc-denied-help {
    background: rgba(231, 76, 60, 0.06);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.7;
}

.dc-denied-help strong {
    display: block;
    color: #c0392b;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.dc-denied-help ol {
    margin: 0;
    padding-right: 18px;
}

/* All good */
.dc-all-good {
    background: rgba(39, 174, 96, 0.08);
    border: 1px solid rgba(39, 174, 96, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #27ae60;
    text-align: center;
}

/* Footer */
.dc-modal-footer {
    padding: 14px 20px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dc-allow-btn,
.dc-retry-btn,
.dc-done-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.dc-allow-btn {
    background: linear-gradient(135deg, #820c22, #a01533);
    color: #fff;
    box-shadow: 0 4px 12px rgba(130, 12, 34, 0.3);
}

.dc-allow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(130, 12, 34, 0.4);
}

.dc-retry-btn {
    background: rgba(130, 12, 34, 0.08);
    color: #820c22;
    border: 1px solid rgba(130, 12, 34, 0.2);
}

.dc-retry-btn:hover {
    background: rgba(130, 12, 34, 0.15);
}

.dc-done-btn {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.dc-done-btn:hover {
    background: rgba(39, 174, 96, 0.2);
}

/* ============================================
   Create Lesson Button & Modal
   ============================================ */

.create-lesson-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    border: 2px solid rgba(130, 12, 34, 0.4);
    background: rgba(130, 12, 34, 0.08);
    color: #820c22;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    margin-right: 10px;
}

.create-lesson-btn:hover {
    background: rgba(130, 12, 34, 0.15);
    transform: translateY(-1px);
}

.create-lesson-btn .btn-icon {
    font-size: 1.1rem;
}

/* Modify device-check-bar to support multiple buttons */
.device-check-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Create Lesson Modal Styling */
.cl-modal {
    max-width: 480px;
}

.cl-form-group {
    margin-bottom: 16px;
}

.cl-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.cl-select,
.cl-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
    color: #333;
    transition: border-color 0.2s;
}

.cl-select:focus,
.cl-input:focus {
    outline: none;
    border-color: #820c22;
}

.cl-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 30px;
}

.cl-student-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(130, 12, 34, 0.05);
    border: 1px solid rgba(130, 12, 34, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #666;
}

.cl-info-icon {
    font-size: 1rem;
}

.cl-info-separator {
    color: #ccc;
}

.cl-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    background: linear-gradient(135deg, #820c22, #a01533);
    color: #fff;
    box-shadow: 0 4px 12px rgba(130, 12, 34, 0.3);
}

.cl-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(130, 12, 34, 0.4);
}

.cl-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cl-submit-btn .btn-icon {
    font-size: 1.1rem;
}

.cl-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: rgba(130, 12, 34, 0.05);
    border-radius: 10px;
    margin-top: 14px;
    font-size: 0.88rem;
    color: #820c22;
    font-weight: 600;
}

.cl-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(130, 12, 34, 0.2);
    border-top-color: #820c22;
    border-radius: 50%;
    animation: cl-spin 0.8s linear infinite;
}

@keyframes cl-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Main Container */
/* ...existing code... */

/* Lessons Sections */
/* Lessons Sections - horizontal layout for laptop */
.lessons-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (min-width: 1024px) {
    .lessons-sections {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .lesson-section {
        min-width: 0;
    }
}

/* KPI Modern Redesign */
:root {
    --zuwad-primary: #820c22;
    --zuwad-secondary: #fac40d;
    --zuwad-dark: #2c3e50;
    --zuwad-light: #f8f9fa;
    --zuwad-gray: #95a5a6;
}

/* KPI Container Updates */
.lessons-sections.kpi-single-column {
    display: block;
    max-width: 100%;
    margin: 0 0 40px;
    font-family: 'Qatar', sans-serif;
}

.kpi-lessons-section {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(130, 12, 34, 0.08);
    /* Transparent primary shadow */
    overflow: hidden;
    padding: 0;
}

.kpi-lessons-section .section-header {}

.kpi-lessons-section .section-icon {
    background: linear-gradient(135deg, var(--zuwad-primary), #a01533);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(130, 12, 34, 0.2);
    font-size: 1.25rem;
}

.kpi-lessons-section h3 {
    color: var(--zuwad-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.kpi-lessons-section .section-content {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Modern KPI Card Styles */
.kpi-modern-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kpi-modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.kpi-modern-card.obs-mode:hover {
    border-color: rgba(130, 12, 34, 0.1);
}

/* Status Strip */
.card-status-strip {
    height: 4px;
    width: 100%;
    background: #e0e0e0;
}

.active-card .card-status-strip {
    background: var(--zuwad-secondary);
    box-shadow: 0 0 10px rgba(250, 196, 13, 0.4);
}

.soon-card .card-status-strip {
    background: #3498db;
}

.finished-card .card-status-strip {
    background: #95a5a6;
}

/* Main Content */
.card-main-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header Row */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.student-profile {
    display: flex;
    gap: 12px;
    align-items: center;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--zuwad-primary), #5e0516);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    position: relative;
    box-shadow: 0 4px 10px rgba(130, 12, 34, 0.2);
}

.live-pulse {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--zuwad-secondary);
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(250, 196, 13, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(250, 196, 13, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(250, 196, 13, 0);
    }
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.student-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--zuwad-dark);
    line-height: 1.3;
}

.sub-info {
    font-size: 0.85rem;
    color: var(--zuwad-gray);
    margin-top: 2px;
}

.postponed-tag {
    font-size: 0.7rem;
    background: #fff3cd;
    color: #856404;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Status Pill */
.status-pill {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pill.active {
    background: rgb(57, 162, 25);
    color: #ffffff;
    box-shadow: 0 2px 2px rgb(0 0 0 / 22%);
}

.status-pill.soon {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.status-pill.finished {
    background: #f1f3f5;
    color: #adb5bd;
}

/* Info Grid */
.card-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #fcfcfc;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #f1f1f1;
}

.info-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-block.teacher-block {
    grid-column: span 2;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 5px;
}

.block-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
}

.block-content {
    display: flex;
    flex-direction: column;
}

.block-content .label {
    font-size: 0.7rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
}

.block-content .value {
    font-size: 0.9rem;
    color: var(--zuwad-dark);
    font-weight: 700;
}

.teacher-name-val {
    color: var(--zuwad-primary) !important;
}

/* Participants Preview */
.participants-preview {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    border: 1px dashed #d0d0d0;
}

.participants-preview.empty-room {
    background: #fff0f0;
    border-color: #ffdce0;
    color: #e03131;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.pp-header {
    display: flex;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.pp-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pp-badge {
    background: white;
    border: 1px solid #eee;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #555;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Footer & Actions */
.card-actions-footer {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #f5f5f5;
}

.join-match-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--zuwad-primary) 0%, #a01533 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(130, 12, 34, 0.25);
}

.join-match-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(130, 12, 34, 0.35);
    background: linear-gradient(135deg, #9b1935 0%, #b91d40 100%);
}

.join-match-btn.disabled {
    background: #e9ecef;
    color: #adb5bd;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .kpi-lessons-section .section-content {
        grid-template-columns: 1fr;
    }
}

/* Trial and Observation Badges */
.trial-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 8px;
    vertical-align: middle;
}

.observation-badge {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 8px;
    vertical-align: middle;
}

/* Teacher info for observation mode */
.teacher-info {
    color: #8b0628;
    font-size: 0.85rem;
    margin: 5px 0 0 0;
    font-weight: 500;
}

/* Observation card styling */
.lesson-card.observation-card {
    border-color: #3498db;
}

/* Trial card styling */
.lesson-card.trial-card {
    border-color: #f39c12;
}

/* Finished card styling */
.lesson-card.finished-card {
    border-color: #95a5a6;
}

/* KPI Subsections styling */
.kpi-subsection {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.kpi-subsection:last-child {
    margin-bottom: 0;
}

.kpi-subsection-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.kpi-subsection-title span {
    font-size: 1.3rem;
}

/* Grid layout for observation mode cards inside KPI section */
.kpi-lessons-section .section-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

/* For KPI observation mode - direct cards without subsections */
.kpi-single-column .kpi-lessons-section .section-content .lesson-card {
    margin-bottom: 0;
}

/* Responsive grid for observation cards */
@media (max-width: 1200px) {
    .kpi-lessons-section .section-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kpi-lessons-section .section-content {
        grid-template-columns: 1fr;
    }
}

/* Active subsection special styling */
.kpi-subsection.active-subsection {
    background: linear-gradient(135deg, #fff, #e8f5e9);
    border-color: #27ae60;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.kpi-subsection.active-subsection .kpi-subsection-title {
    color: #27ae60;
    border-bottom-color: #27ae60;
}

/* Coming subsection styling */
.kpi-subsection.coming-subsection {
    background: linear-gradient(135deg, #fff, #e3f2fd);
    border-color: #3498db;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.kpi-subsection.coming-subsection .kpi-subsection-title {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Finished subsection styling */
.kpi-subsection.finished-subsection {
    background: linear-gradient(135deg, #fff, #f5f5f5);
    border-color: #95a5a6;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.kpi-subsection.finished-subsection .kpi-subsection-title {
    color: #7f8c8d;
    border-bottom-color: #95a5a6;
}

/* KPI Filter Controls - Modern Redesign */
.kpi-filter-controls {
    background: linear-gradient(360deg, #dbdbdb, #ffffff);
    padding: 25px;
    border-radius: 24px;
    margin-bottom: 25px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.filter-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

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

.filter-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--zuwad-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background: #fcfcfc;
    transition: all 0.2s ease;
    font-family: inherit;
    color: var(--zuwad-dark);
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--zuwad-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(130, 12, 34, 0.05);
}

.filter-input::placeholder {
    color: #bbb;
}

.filter-results {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(130, 12, 34, 0.05);
    border-radius: 10px;
    color: var(--zuwad-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: none;
    border: 1px solid rgba(130, 12, 34, 0.1);
}

.filter-results.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 20px;
    }

    .filter-group {
        min-width: 100%;
    }
}

/* Analytics Summary - Modern Redesign */
.analytics-summary {
    margin-top: 15px;
    border-top: 1px solid #eee;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.analytics-item {
    background: #fff;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.analytics-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Specific item colors */
.analytics-item.total {
    border-bottom: 4px solid #3498db;
}

.analytics-item.active {
    border-bottom: 4px solid #27ae60;
}

.analytics-item.empty {
    border-bottom: 4px solid #e74c3c;
}

.analytics-item.one {
    border-bottom: 4px solid #f39c12;
}

.analytics-item.two-plus {
    border-bottom: 4px solid #9b59b6;
}

.analytics-item.teachers {
    border-bottom: 4px solid var(--zuwad-primary);
}

.analytics-icon {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.analytics-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--zuwad-dark);
    line-height: 1.2;
}

.analytics-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Custom Loading Spinner */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 20px;
}

.custom-loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(#dd831d 10%, #ffffff);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #000 0);
    animation: s3 1s infinite linear;
    position: relative;
}

.custom-loader:before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: 50%;
    transform: rotate(35deg);
    /* Offset slightly */
}

@keyframes s3 {
    to {
        transform: rotate(1turn)
    }
}

.loading-text {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
    animation: pulse-text 2s infinite ease-in-out;
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@media (max-width: 1200px) {
    .analytics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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




.lesson-section {
    background: #820c22;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.lesson-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b0628, #a91b47);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 6, 40, 0.3);
}

.section-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 600;
}

.section-content {
    min-height: 100px;
}

.loading-placeholder {
    text-align: center;
    color: #95a5a6;
    font-size: 1.1rem;
    padding: 40px 20px;
    font-style: italic;
}

.no-lessons {
    text-align: center;
    color: #95a5a6;
    font-size: 1.1rem;
    padding: 40px 20px;
    font-style: italic;
}

.error-message {
    text-align: center;
    color: #e74c3c;
    font-size: 1.1rem;
    padding: 40px 20px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px;

    /* Celebration Menu & Animations */

    /* Menu Container - Keep inline */
    .celebration-menu-container {
        position: relative;
        display: inline-flex;
        /* Fix layout "online" */
        align-items: center;
    }

    .celebration-btn {
        background: linear-gradient(135deg, #f39c12, #e67e22);
        border: none;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .celebration-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 15px rgba(243, 156, 18, 0.4);
    }

    /* Popup Menu */
    /* Popup Menu - Robust Styling */
    #celebration_popup {
        display: none !important;
        /* Force hidden by default */
        position: fixed !important;
        /* Fixed position relative to viewport (set by JS) */
        background: #ffffff !important;
        border: 1px solid #ddd !important;
        border-radius: 12px !important;
        padding: 8px !important;
        width: 160px !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
        z-index: 2147483647 !important;
        /* Max z-index to stay on top */
        flex-direction: column !important;
        gap: 5px !important;
        margin: 0 !important;
    }

    #celebration_popup.show {
        display: flex !important;
        animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        gap: 8px;
    }

    @keyframes popIn {
        from {
            opacity: 0;
            transform: translateX(-50%) scale(0.9);
        }

        to {
            opacity: 1;
            transform: translateX(-50%) scale(1);
        }
    }

    .celebration-option {
        all: unset !important;
        /* Reset ALL styles inherited */
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        background: transparent !important;
        border: none !important;
        padding: 10px 12px !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: right !important;
        color: #333 !important;
        font-family: inherit !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        margin: 0 !important;
        height: auto !important;
        line-height: normal !important;
    }

    .celebration-option:hover {
        background: #f0f2f5 !important;
    }

    .celebration-option .opt-icon {
        font-size: 1.4rem !important;
        line-height: 1 !important;
        margin: 0 !important;
    }

    .celebration-option .opt-text {
        flex-grow: 1 !important;
    }

    /* Animation Container Overlay - Relative to Video Tile */
    .animation-overlay {
        position: absolute;
        /* Relative to the video tile container */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 2147483647;
        /* Still high to be on top of video/labels */
        overflow: hidden;
    }

    /* Floating Emojis */
    .floating-emoji {
        position: absolute;
        bottom: 0;
        font-size: 30px;
        /* Base size, will be scaled in JS if needed */
        pointer-events: none;
        animation: floatUpFade 3s ease-out forwards;
        will-change: transform, opacity;
    }

    @keyframes floatUpFade {
        0% {
            transform: translateY(10%) scale(0.5) rotate(0deg);
            opacity: 0;
        }

        10% {
            opacity: 1;
            transform: translateY(-20%) scale(1.2) rotate(var(--rot));
        }

        80% {
            opacity: 0.8;
        }

        100% {
            transform: translateY(-120%) scale(1) rotate(var(--rot-end));
            opacity: 0;
        }
    }

    /* Confetti */
    .confetti-particle {
        position: absolute;
        top: -10%;
        width: 6px;
        height: 6px;
        background-color: #ffd300;
        z-index: 2147483647;
        pointer-events: none;
        will-change: transform;
    }


}

/*  */

/* Coming Lessons Section */
.coming-lessons-section .section-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* Finished Lessons Section */
.finished-lessons-section .section-icon {
    background: linear-gradient(135deg, #27ae60, #229954);
}

/* Lesson Cards - Now using kpi-modern-card structure */
.lesson-card {
    margin-bottom: 15px;
}

/* Room participants display (fallback if needed) */
.room-participants {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    color: #2c3e50;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin: 10px 0;
    border: 1px solid rgba(52, 152, 219, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-participants span {
    font-weight: 600;
    color: #3498db;
}

.room-participants.empty {
    background: rgba(149, 165, 166, 0.1);
    border-color: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
    font-style: italic;
}

/* Meeting Room Styles */
.meeting-room {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.meeting-header-bar {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.meeting-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

.back-icon {
    font-size: 1.2rem;
}

.meeting-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.meeting-details p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.meeting-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(39, 174, 96, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #27ae60;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.meeting-timer {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Video Container */
.video-container {
    background: #1a1a1a;
    position: relative;
    height: 600px;
    overflow: hidden;
}

.video-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.default-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #8b0628, #a91b47);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.avatar-icon {
    font-size: 3rem;
    color: white;
}

.default-avatar h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.default-avatar p {
    margin: 0;
    opacity: 0.7;
    font-size: 1rem;
}

/* Meeting Controls */
.meeting-controls {
    position: absolute;
    bottom: 25px;
    bottom: calc(25px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 15px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    border-radius: 35px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.control-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.control-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mic-btn {
    background: #4CAF50;
}

.camera-btn {
    background: #2196F3;
}

.screen-btn {
    background: #FF9800;
}

.whiteboard-btn {
    background: #820c22;
}

.celebration-btn {
    background: #E91E63;
    position: relative;
}

.leave-btn {
    background: #f44336;
}

/* Control button hover states */
.control-btn:hover {
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .teacher-meeting-container {
        padding: 15px;
    }

    .meeting-header {
        padding: 20px;
        margin-bottom: 25px;
    }

    .teacher-greeting h1 {
        font-size: 2rem;
    }

    .main-title h2 {
        font-size: 1.5rem;
    }

    .lessons-sections {
        gap: 20px;
    }

    .lesson-section {
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .meeting-controls {
        gap: 10px;
        padding: 15px 20px;
        padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    }

    .control-btn {
        width: 50px;
        height: 50px;
        padding: 15px;
    }

    .control-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .teacher-greeting h1 {
        font-size: 1.8rem;
    }

    .main-title {
        flex-direction: column;
        gap: 15px;
    }

    .lesson-card {
        padding: 0;
        /* Let kpi-modern-card handle internal padding */
    }
}

.zuwad-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.kpi-evaluation-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 25px;
    border: none;
    width: 95%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
}

.zuwad-close-modal {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.zuwad-close-modal:hover {
    color: #000;
}

.kpi-evaluation-content h3 {
    text-align: center;
    color: var(--zuwad-primary);
    margin: 0 0 20px 0;
    font-size: 1.6rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Compact Section Styles */
.form-section.compact-section {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.form-section h4 {
    margin: 0 0 15px 0;
    color: var(--zuwad-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}

.section-icon {
    font-size: 1.2rem;
}

/* Grid Layouts */
.rating-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Rating Card */
.rating-card {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.rating-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.rating-icon {
    font-size: 1.2rem;
}

.rating-header label {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
}

.rating-desc {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 8px;
    line-height: 1.3;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin-top: auto;
    /* Push to bottom */
}

.rating-stars span {
    font-size: 1.5rem;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
}

.rating-stars span:hover,
.rating-stars span:hover~span,
.rating-stars span.active {
    color: #f1c40f;
}

/* Text Grid */
.text-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.form-group.small-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: span 2;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    /* Fixed height to keep grid uniform */
    font-family: inherit;
    font-size: 0.9rem;
    height: 60px;
    transition: all 0.2s;
}

.form-group textarea:focus {
    border-color: var(--zuwad-secondary);
    height: 80px;
    /* Expand on focus */
    position: relative;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Rank Radio Grid */
.radio-group-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.rank-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    position: relative;
}

.rank-option:hover {
    background: #fef9e7;
    border-color: var(--zuwad-secondary);
    transform: translateY(-2px);
}

.rank-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Selected states for ranks */
.rank-option:has(input:checked) {
    border-color: var(--zuwad-primary);
    background: #fff5f7;
    box-shadow: 0 2px 8px rgba(130, 12, 34, 0.15);
}

.rank-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--zuwad-dark);
    margin-bottom: 4px;
}

.rank-desc {
    font-size: 0.7rem;
    color: #888;
    line-height: 1.2;
}

/* Footer */
.form-actions {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.submit-btn {
    background: linear-gradient(135deg, var(--zuwad-primary) 0%, #a01533 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(130, 12, 34, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(130, 12, 34, 0.4);
}

/* Responsive */
@media (max-width: 768px) {

    .rating-grid,
    .text-grid,
    .radio-group-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .kpi-evaluation-content {
        padding: 15px;
        width: 100%;
        margin: 0;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .rating-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .rating-stars {
        margin-top: 0;
    }

    .rating-desc {
        display: none;
    }

    /* Hide descriptions on mobile to save space */

    .rating-header {
        margin-bottom: 0;
    }

    .rank-option {
        flex-direction: row;
        text-align: right;
        gap: 10px;
        align-items: center;
    }

    .rank-title {
        margin-bottom: 0;
        min-width: 80px;
    }
}

/* Picture-in-Picture Video Mode */
.video-container {
    position: relative;
    /* Ensure stacking context */
}

.video-content.minimized-video {
    position: absolute;
    top: 20px;
    left: 20px;
    /* Adjust for RTL if needed, but 'left' puts it in top-left */
    width: 240px;
    height: auto;
    aspect-ratio: 16/9;
    z-index: 20;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #000;
    /* Fallback */
    overflow: hidden;
    /* Reset flex behavior */
    flex: none;
}

/* Ensure controls stay on top if there is overlap */
.meeting-controls {
    /* position: relative; */
    z-index: 30;
    /* background: rgba(255, 255, 255, 0.9); Slight background to ensure visibility */
    backdrop-filter: blur(5px);
    border-radius: 16px;
    margin: 10px 20px;
    /* Add some spacing */
}

/* Whiteboard Container Styles */
.whiteboard-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10;
    display: none;
}

.whiteboard-header {
    height: 60px;
    background: linear-gradient(135deg, #820c22, #820c22);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.whiteboard-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whiteboard-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.whiteboard-close-btn:active {
    transform: scale(0.95);
}

.whiteboard-close-btn span {
    font-size: 20px;
}

.whiteboard-frame {
    width: 100%;
    height: calc(100% - 60px);
    border: none;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whiteboard-header {
        height: 50px;
        padding: 0 15px;
    }

    .whiteboard-close-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .whiteboard-frame {
        height: calc(100% - 50px);
    }
}

.card-attendance-info {
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.att-abs-header {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #721c24;
    background: #f8d7da;
    padding: 6px 14px;
    border-radius: 10px;
}
.att-sec-row {
    display: flex;
    align-items: center;
    padding: 5px 2px;
    border-bottom: 1px solid #f0f0f0;
    gap: 0;
}
.att-sec-row:last-of-type { border-bottom: none; }
.att-sec-icon { font-size: 12px; width: 18px; text-align: center; flex-shrink: 0; }
.att-sec-lbl { color: #888; font-size: 11px; width: 58px; text-align: right; padding-right: 2px; flex-shrink: 0; }
.att-sec-val { font-size: 13px; font-weight: 600; flex: 1; text-align: center; }
.att-sec-empty { color: #ccc; font-weight: 400; }
.att-sec-div { width: 1px; height: 14px; background: #e5e5e5; margin: 0 5px; flex-shrink: 0; }
.att-dur-val { color: #2980b9; }
.att-delta-pos { color: #27ae60; }
.att-delta-neg { color: #e74c3c; }
.att-delta-zero { color: #888; }

.att-sts-row { display: flex; justify-content: center; margin-top: 6px; }
.att-sts-badge {
    font-size: 13px;
    padding: 5px 16px;
    border-radius: 14px;
    font-weight: bold;
}
.att-sts-present { background: #d4edda; color: #155724; }
.att-sts-late { background: #fff3cd; color: #856404; }
.att-sts-absent { background: #f8d7da; color: #721c24; }

.att-stu-row { background: transparent; border-radius: 0; margin: 0; }
.att-stu-row .att-sec-lbl { color: #2980b9; }

.att-sec-box {
    border-radius: 8px;
    padding: 4px 6px;
    margin: 3px 0;
    border: 1px solid rgba(0,0,0,0.04);
}
.att-sec-box-time { background: #f8f9fa; }
.att-sec-box-teacher { background: #f0f9f0; }
.att-sec-box-student { background: #f0f7ff; }
.att-sec-box-stats { background: #faf5ff; }

.att-stu-stats {
    text-align: center;
    font-size: 11px;
    color: #2980b9;
    padding: 4px 0 2px;
    border-top: 1px dashed rgba(52,152,219,0.15);
    margin-top: 2px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.att-sessions-info {
    text-align: center;
    font-size: 11px;
    color: #e67e22;
    font-weight: bold;
    margin-top: 4px;
}
.att-sibling-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    color: #8e44ad;
    font-weight: bold;
    background: rgba(142,68,173,0.08);
    padding: 4px 10px;
    border-radius: 8px;
    margin-top: 4px;
    text-align: center;
}

.att-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 13px;
    color: #444;
}
.att-info-row span:first-child { color: #777; font-size: 12px; }
.att-info-row span:last-child { font-weight: 600; }
.att-info-status {
    justify-content: center;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.att-info-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}
.att-badge-present { background: #d4edda; color: #155724; }
.att-badge-late { background: #fff3cd; color: #856404; }
.att-badge-absent { background: #f8d7da; color: #721c24; }
.att-delta-positive { color: #27ae60; font-weight: 700; }
.att-delta-negative { color: #e74c3c; font-weight: 700; }
.att-delta-zero { color: #27ae60; font-weight: 700; }
.att-duration-val { font-weight: 700; }
.att-sessions-val { color: #e67e22; font-weight: 700; }
.att-student-time-row { background: rgba(52,152,219,0.06); }
.att-student-time-row span:first-child { color: #2980b9; }

@media (max-width: 768px) {
    .card-attendance-info {
        padding: 8px 10px;
    }
    .att-info-row {
        font-size: 12px;
    }
}

/* Whiteboard Container Styles */
.whiteboard-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10;
    display: none;
}

.whiteboard-header {
    height: 60px;
    background: linear-gradient(135deg, #820c22, #820c22);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.whiteboard-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whiteboard-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.whiteboard-close-btn:active {
    transform: scale(0.95);
}

.whiteboard-close-btn span {
    font-size: 20px;
}

.whiteboard-frame {
    width: 100%;
    height: calc(100% - 60px);
    border: none;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whiteboard-header {
        height: 50px;
        padding: 0 15px;
    }

    .whiteboard-close-btn {
        padding: 4px 10px;
        font-size: 14px;
    }

    .whiteboard-frame {
        height: calc(100% - 50px);
    }
}