/* =====================================================
   WEEKLY PLAN V2 - Matching Mockup Design
   ===================================================== */

/* Base Container */
.olama-weekly-plan-v2 {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
    background: #f8fafc;
    min-height: 100vh;
}

/* RTL Helpers */
.olama-weekly-plan-v2.is-rtl,
.olama-weekly-plan-v2 .is-rtl {
    direction: rtl !important;
    text-align: right !important;
}

.olama-weekly-plan-v2.is-rtl .stacked-value,
.olama-weekly-plan-v2.is-rtl .stacked-label,
.olama-weekly-plan-v2.is-rtl .detail-value,
.olama-weekly-plan-v2.is-rtl .unit-group-header,
.olama-weekly-plan-v2.is-rtl .lesson-info div,
.olama-weekly-plan-v2.is-rtl .detail-item-stacked {
    text-align: right !important;
    direction: rtl !important;
}

/* Detail Item Stacked base styles */
.detail-item-stacked {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.stacked-label {
    display: flex;
    align-items: center;
    width: 100%;
}

.stacked-value {
    width: 100%;
}

/* =====================================================
   ILLUSTRATED HEADER
   ===================================================== */
.plan-header-v2 {
    background: linear-gradient(145deg, #f8b4b4 0%, #f9a8a8 25%, #fca5a5 50%, #fdba74 75%, #fde68a 100%);
    border-radius: 30px;
    padding: 50px 30px 30px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.plan-header-v2::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="15" fill="rgba(255,255,255,0.2)"/><circle cx="20" cy="70" r="20" fill="rgba(255,255,255,0.15)"/><rect x="10" y="10" width="8" height="12" rx="2" fill="rgba(255,255,255,0.2)"/></svg>');
    background-size: 200px;
    opacity: 0.6;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: right;
    color: #fff;
}

.header-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-subtitle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* =====================================================
   SEMESTER SUB-HEADER (Academic Year & Week Info)
   ===================================================== */
.semester-bar {
    background: linear-gradient(135deg, rgba(248, 180, 180, 0.4) 0%, rgba(253, 186, 116, 0.35) 100%);
    margin: 0 -30px -20px -30px;
    padding: 18px 25px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.semester-left,
.semester-right {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1f2937;
}

.semester-bar .dashicons {
    display: none;
}

.week-label,
.academic-year-label {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 700;
}

.week-dates {
    color: #dc2626;
    font-weight: 800;
    font-size: 0.9rem;
}

.academic-year {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.85rem;
}

/* =====================================================
   DAYS ACCORDION
   ===================================================== */
.days-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.day-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.day-item.active {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #e5e7eb;
    overflow: visible !important;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.day-item.active .day-header {
    background: transparent;
}

.day-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-chevron {
    color: #94a3b8;
    transition: transform 0.3s ease;
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
}

.day-item.active .toggle-chevron {
    transform: rotate(180deg);
    color: #6b7280;
}

.day-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
    align-items: flex-start;
}

.day-name-ar {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
}

.day-count {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.day-count .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #9ca3af;
}

/* Date Badge - Gradient Colors per Day */
.day-date-badge {
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    text-align: center;
    min-width: 55px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Day-specific gradient colors */
.day-item:nth-child(1) .day-date-badge {
    background: linear-gradient(145deg, #f472b6 0%, #ec4899 100%);
}

.day-item:nth-child(2) .day-date-badge {
    background: linear-gradient(145deg, #fb7185 0%, #f43f5e 100%);
}

.day-item:nth-child(3) .day-date-badge {
    background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 100%);
}

.day-item:nth-child(4) .day-date-badge {
    background: linear-gradient(145deg, #fb923c 0%, #f97316 100%);
}

.day-item:nth-child(5) .day-date-badge {
    background: linear-gradient(145deg, #a3e635 0%, #84cc16 100%);
}

.date-month {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.date-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

/* Day Content (Accordion Panel) */
.day-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
}

.day-item.active .day-content {
    max-height: 20000px !important;
    padding: 0 20px 25px !important;
    overflow: visible !important;
    height: auto !important;
}

/* Empty Day Message */
.empty-day {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-day .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    opacity: 0.3;
    display: block;
    margin: 0 auto 10px;
}

.empty-day p {
    margin: 0;
    font-size: 0.95rem;
}

/* =====================================================
   SUBJECT CARDS
   ===================================================== */
.subject-card {
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.subject-card:last-child {
    margin-bottom: 0;
}

.subject-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.subject-icon {
    font-size: 22px !important;
    width: 22px !important;
    height: 22px !important;
    color: #475569;
}

.subject-name {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
}

/* Section Blocks (Classwork/Homework) */
.section-block {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.section-label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.section-label .label-en {
    font-weight: 400;
    font-size: 0.8rem;
    color: #94a3b8;
}

.classwork .section-label {
    color: #059669;
}

.homework .section-label {
    color: #0284c7;
}

.teacher-notes .section-label {
    color: #d97706;
}

/* Detail List (Unit/Lesson) */
.detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
}

.detail-icon {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    color: #94a3b8;
    margin-top: 2px;
}

.detail-label {
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.detail-value {
    font-weight: 500;
    text-align: right !important;
}

/* Homework List with Icons */
.homework-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.homework-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: #334155;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.homework-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hw-icon {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    color: #0284c7;
}

.hw-label {
    font-weight: 700;
    color: #475569;
}

.hw-value {
    padding-right: 24px;
    line-height: 1.6;
    color: #1e293b;
    text-align: right !important;
}

/* Teacher Notes Section */
.teacher-notes {
    background: rgba(254, 243, 199, 0.5) !important;
    border-color: rgba(217, 119, 6, 0.2) !important;
}

.notes-content {
    font-size: 0.9rem;
    color: #78350f;
    line-height: 1.6;
    font-style: italic;
    padding: 5px 0;
    text-align: right !important;
}

/* Legacy section list (for backwards compatibility) */
.section-list {
    margin: 0;
    padding: 0 20px 0 0;
    list-style: disc;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.8;
}

.section-list li {
    margin-bottom: 4px;
}


/* =====================================================
   FOOTER
   ===================================================== */
.plan-footer {
    text-align: center;
    padding: 30px 20px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.plan-footer p {
    margin: 0 0 5px 0;
}

.plan-footer small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 600px) {
    .olama-weekly-plan-v2 {
        padding: 15px;
    }

    .plan-header-v2 {
        padding: 30px 20px 20px;
        margin: 0;
        border-radius: 20px;
    }

    .header-title {
        font-size: 1.9rem;
    }

    .semester-bar {
        margin: 0;
        padding: 12px 15px;
        border-radius: 15px;
    }

    .semester-left,
    .semester-right {
        width: 100%;
        justify-content: center;
    }

    .day-header {
        padding: 15px;
    }

    .day-name-ar {
        font-size: 1.1rem;
    }

    .day-date-badge {
        padding: 6px 10px;
        min-width: 45px;
    }

    .date-day {
        font-size: 1.1rem;
    }

    .subject-card {
        padding: 15px;
    }

    /* Stack detail-item label/value vertically on mobile */
    .detail-item {
        flex-direction: column;
        gap: 2px;
    }

    .detail-label {
        white-space: normal;
        font-size: 0.8rem;
    }

    .detail-value {
        display: block;
        width: 100%;
        padding-right: 24px;
        font-size: 0.95rem;
        line-height: 1.6;
        word-break: break-word;
    }

    /* Homework items: ensure value is on its own line */
    .homework-item {
        padding: 10px 12px;
    }

    .hw-label {
        font-size: 0.82rem;
    }

    .hw-value {
        font-size: 0.95rem;
        padding-right: 24px;
        line-height: 1.7;
        word-break: break-word;
    }

    .section-block {
        padding: 10px 12px;
    }

    .section-label {
        font-size: 0.82rem;
    }
}

/* Weekly Schedule Shortcode Styles */
.olama-shortcode-schedule-container {
    font-family: 'Outfit', sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.olama-schedule-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    padding: 25px;
    border-radius: 15px;
    color: #fff;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.olama-schedule-header h2 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.olama-schedule-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

.olama-schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.olama-schedule-table th {
    background: #f8fafc;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.olama-schedule-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.olama-schedule-table .day-label {
    font-weight: 700;
    background: #f8fafc;
    color: #64748b;
    width: 150px;
    border-right: 1px solid #e2e8f0;
}

.schedule-cell {
    background: #fff;
    min-height: 80px;
}

.schedule-cell.has-subject {
    background: #fafafa;
}

.subject-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
}

.olama-schedule-mobile {
    display: none;
}

@media (max-width: 900px) {
    .olama-schedule-desktop {
        display: none;
    }

    .olama-schedule-mobile {
        display: block;
    }

    .olama-mobile-day {
        background: #fff;
        border-radius: 15px;
        margin-bottom: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border: 1px solid #f1f5f9;
        overflow: hidden;
    }

    .olama-mobile-day h3 {
        background: #f8fafc;
        margin: 0;
        padding: 12px 20px;
        font-size: 1.1rem;
        color: #1e293b;
        border-bottom: 1px solid #f1f5f9;
    }

    .olama-mobile-periods {
        padding: 15px;
    }

    .olama-mobile-period-item {
        margin-bottom: 10px;
        padding: 10px 15px;
        background: #f9fafb;
        border-radius: 8px;
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .olama-mobile-period-item:last-child {
        margin-bottom: 0;
    }

    .period-label {
        font-weight: 600;
        color: #64748b;
        font-size: 0.85rem;
        min-width: 70px;
    }

    .subject-label {
        font-weight: 700;
        font-size: 1rem;
    }
}

/* Premium Teacher Office Hours */
.olama-premium-oh-container {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-slate-800: #1e293b;
    --text-slate-200: #e2e8f0;
    --card-bg-light: #ffffff;
    --card-bg-dark: #1e293b;
    --border-light: #f1f5f9;
    --border-dark: #334155;

    max-width: 1280px;
    margin: 40px auto;
    padding: 0 1rem;
    font-family: "Tajawal", "Inter", sans-serif;
    color: var(--text-slate-800);
    transition: all 0.3s ease;
}

.olama-premium-oh-container.dark-mode {
    color: var(--text-slate-200);
}

.english-font {
    font-family: "Inter", sans-serif !important;
}

.oh-premium-hero {
    background-color: var(--primary-dark);
    background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuAvTWMEl_oUhxaNllMB8AmTL1CYiuu7VOVOIWiBaqKE7kenvyb3XEbOy7siVrVNo3dmVFFwRUxw_e0Tvroo8wbh5psl6tzFqpAMA7EHgXWCS6teIB4AMSYq7uZgoJfBZn8NAWWG8q3EgzaDtftSekRfxBtkaqf_gUjQt5VCRV--fqhBgNFCVmfmHwVvM_lrkeXU65_Yq6wL7c8w69I4ZYGMwNy1oxwqcL2YCwuqPGHFQEmqCHbtOSj4Up84upfmIZGNgLvw7iq2O7U');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(30, 64, 175, 0.1), 0 10px 10px -5px rgba(30, 64, 175, 0.04);
}

@media (min-width: 1024px) {
    .oh-premium-hero {
        padding: 3rem;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 768px) {
    .hero-text {
        text-align: right;
    }
}

.portal-badge {
    background-color: rgba(96, 165, 250, 0.2);
    color: #dbeafe;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(219, 234, 254, 0.9);
    margin: 0 0 1rem 0;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-info-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
    .hero-info-card {
        text-align: right;
    }
}

.info-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.info-semester {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.25rem 0.75rem;
    display: inline-block;
}

.hero-blob {
    position: absolute;
    width: 12rem;
    height: 12rem;
    background-color: rgba(96, 165, 250, 0.1);
    border-radius: 9999px;
    filter: blur(64px);
}

.blob-1 {
    bottom: -3rem;
    right: -3rem;
}

.blob-2 {
    top: -3rem;
    left: -3rem;
}

.oh-premium-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .oh-premium-controls {
        grid-template-columns: repeat(2, 1fr);
    }
}

.search-wrapper {
    position: relative;
}

.search-wrapper input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background-color: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-wrapper input::placeholder {
    color: #64748b;
}

.dark-mode .search-wrapper input {
    border-color: #334155;
}

.search-wrapper input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

.oh-premium-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .oh-premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .oh-premium-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.oh-premium-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 1.5rem;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.dark-mode .oh-premium-card {
    background-color: #1e293b;
    border-color: #334155;
}

.oh-premium-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar-container {
    position: relative;
}

.avatar-container img {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    object-fit: cover;
    background-color: #f1f5f9;
}

.status-indicator {
    position: absolute;
    bottom: -0.25rem;
    left: -0.25rem;
    width: 1rem;
    height: 1rem;
    background-color: #22c55e;
    border: 2px solid white;
    border-radius: 9999px;
}

.dark-mode .status-indicator {
    border-color: #1e293b;
}

.teacher-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.dark-mode .teacher-name {
    color: white;
}

.teacher-dept {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.assignment-tag {
    background-color: #334155 !important;
    color: #ffffff !important;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.slots-section {
    margin-bottom: 1rem;
}

.slots-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slots-header .material-icons {
    font-size: 0.875rem;
}

.slots-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.03);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.dark-mode .slot-item {
    background-color: rgba(15, 23, 42, 0.5);
}

.slot-item .day-name {
    font-weight: 500;
}

.slot-item .time-value {
    color: #475569;
}

.dark-mode .slot-item .time-value {
    color: #94a3b8;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
}

.no-results .material-icons {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.oh-theme-toggle {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 1000;
}

.dark-mode .oh-theme-toggle {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.oh-theme-toggle:hover {
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .hero-info-card {
        width: 100%;
    }
}

/* Attendance Summary Cards */
.olama-attendance-summary-cards {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    direction: rtl;
}

.olama-summary-card {
    flex: 1;
    padding: 15px 20px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.olama-summary-card.olama-present {
    background: #e6fffa;
    border-color: #b2f5ea;
}

.olama-summary-card.olama-absent {
    background: #fff5f5;
    border-color: #fed7d7;
}

.olama-summary-card .olama-card-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.olama-summary-card .olama-label-ar {
    font-size: 1.1rem;
    font-weight: 800;
}

.olama-summary-card.olama-present .olama-label-ar {
    color: #2c7a7b;
}

.olama-summary-card.olama-absent .olama-label-ar {
    color: #c53030;
}

.olama-summary-card .olama-label-en {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
}

.olama-summary-card.olama-present .olama-label-en {
    color: #319795;
}

.olama-summary-card.olama-absent .olama-label-en {
    color: #e53e3e;
}

.olama-summary-card .olama-card-value {
    font-size: 2.2rem;
    font-weight: 900;
}

.olama-summary-card.olama-present .olama-card-value {
    color: #234e52;
}

.olama-summary-card.olama-absent .olama-card-value {
    color: #742a2a;
}

@media (max-width: 480px) {
    .olama-attendance-summary-cards {
        flex-direction: column;
    }
}

/* =====================================================
   FAMILY PERFORMANCE DASHBOARD
   ===================================================== */

/* Container */
.olama-family-perf {
    font-family: 'Tajawal', 'Inter', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
    direction: rtl;
    background: #f0f4f8;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* === HERO HEADER === */
.fp-hero {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 30%, #14b8a6 60%, #2dd4bf 100%);
    border-radius: 24px;
    padding: 36px 28px 28px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.25);
}

.fp-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.fp-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.fp-hero-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.fp-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fp-hero-icon .material-icons {
    font-size: 30px;
    color: #fff;
}

.fp-hero-title {
    font-size: 1.9rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fp-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 4px 0 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.fp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.fp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.fp-meta-item .material-icons {
    font-size: 16px;
    opacity: 0.8;
}

/* === STUDENTS LIST === */
.fp-students-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* === STUDENT CARD === */
.fp-student-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e9ef;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.fp-student-card.active {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* Student Header */
.fp-student-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.fp-student-header:hover {
    background: #f9fafb;
}

/* Avatar */
.fp-student-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
}

.fp-student-avatar.fp-excellent {
    background: linear-gradient(135deg, #059669, #10b981);
}

.fp-student-avatar.fp-good {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
}

.fp-student-avatar.fp-fair {
    background: linear-gradient(135deg, #d97706, #fbbf24);
}

.fp-student-avatar.fp-weak {
    background: linear-gradient(135deg, #dc2626, #f87171);
}

/* Student Info */
.fp-student-info {
    flex: 1;
    min-width: 0;
}

.fp-student-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-student-detail {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.fp-age-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Summary (ring + badge) */
.fp-student-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Circular Progress Ring */
.fp-mastery-ring {
    width: 46px;
    height: 46px;
    position: relative;
}

.fp-mastery-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.fp-ring-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 3;
}

.fp-ring-fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

.fp-mastery-ring.fp-excellent .fp-ring-fill {
    stroke: #10b981;
}

.fp-mastery-ring.fp-good .fp-ring-fill {
    stroke: #38bdf8;
}

.fp-mastery-ring.fp-fair .fp-ring-fill {
    stroke: #fbbf24;
}

.fp-mastery-ring.fp-weak .fp-ring-fill {
    stroke: #f87171;
}

.fp-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 800;
    color: #334155;
    font-family: 'Inter', sans-serif;
}

/* Mastery Badge */
.fp-mastery-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.fp-mastery-badge.fp-excellent {
    background: #d1fae5;
    color: #065f46;
}

.fp-mastery-badge.fp-good {
    background: #dbeafe;
    color: #1e40af;
}

.fp-mastery-badge.fp-fair {
    background: #fef3c7;
    color: #92400e;
}

.fp-mastery-badge.fp-weak {
    background: #fee2e2;
    color: #991b1b;
}

/* Chevron */
.fp-chevron {
    color: #94a3b8;
    font-size: 24px !important;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.fp-student-card.active .fp-chevron {
    transform: rotate(180deg);
    color: #0d9488;
}

/* === STUDENT BODY (expanded) === */
.fp-student-body {
    display: none !important;
    padding: 0 18px;
}

.fp-student-card.active .fp-student-body {
    display: block !important;
    padding: 0 18px 20px;
}

/* Evaluation Pills (mini summary row) */
.fp-eval-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-top: 4px;
}

.fp-eval-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fp-eval-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.fp-eval-pill.fp-excellent {
    background: #d1fae5;
    color: #065f46;
}

.fp-eval-pill.fp-good {
    background: #dbeafe;
    color: #1e40af;
}

.fp-eval-pill.fp-fair {
    background: #fef3c7;
    color: #92400e;
}

.fp-eval-pill.fp-weak {
    background: #fee2e2;
    color: #991b1b;
}

.fp-pill-name {
    white-space: nowrap;
}

.fp-pill-pct {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
}

/* === EVALUATION TABS === */
.fp-eval-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
}

.fp-eval-tabs::-webkit-scrollbar {
    display: none;
}

.fp-eval-tab {
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.fp-eval-tab:hover {
    color: #0d9488;
    background: #f0fdfa;
    border-radius: 8px 8px 0 0;
}

.fp-eval-tab.active {
    color: #0f766e;
    border-bottom-color: #0d9488;
    background: #f0fdfa;
    border-radius: 8px 8px 0 0;
}

/* === EVAL PANELS === */
.fp-eval-panel {
    display: none;
}

.fp-eval-panel.active {
    display: block;
    animation: fpFadeIn 0.3s ease;
}

@keyframes fpFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* Evaluation Meta chips */
.fp-eval-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.fp-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.fp-meta-chip .material-icons {
    font-size: 15px;
    opacity: 0.7;
}

.fp-meta-chip.fp-excellent {
    background: #d1fae5;
    color: #065f46;
}

.fp-meta-chip.fp-good {
    background: #dbeafe;
    color: #1e40af;
}

.fp-meta-chip.fp-fair {
    background: #fef3c7;
    color: #92400e;
}

.fp-meta-chip.fp-weak {
    background: #fee2e2;
    color: #991b1b;
}

/* === DOMAIN BLOCK === */
.fp-domain-block {
    margin-bottom: 16px;
    background: #f8fafb;
    border-radius: 16px;
    border: 1px solid #e8ecf0;
    overflow: hidden;
}

.fp-domain-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
}

.fp-domain-title .material-icons {
    font-size: 18px;
    opacity: 0.85;
}

/* === CATEGORY BLOCK === */
.fp-category-block {
    border-bottom: 1px solid #e8ecf0;
    padding: 0;
}

.fp-category-block:last-child {
    border-bottom: none;
}

.fp-category-title {
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f766e;
    background: #eef7f6;
    border-bottom: 1px dashed #d1e3e0;
}

/* === INDICATOR ROW === */
.fp-indicators {
    padding: 0;
}

.fp-indicator-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f4f6;
    transition: background 0.15s ease;
}

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

.fp-indicator-row:hover {
    background: #f0fdfa;
}

.fp-indicator-text {
    flex: 1;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.5;
    text-align: right;
}

.fp-indicator-score {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    min-width: 60px;
}

.fp-indicator-score.fp-score-high {
    background: #d1fae5;
    color: #065f46;
}

.fp-indicator-score.fp-score-mid {
    background: #fef3c7;
    color: #92400e;
}

.fp-indicator-score.fp-score-low {
    background: #fee2e2;
    color: #991b1b;
}

.fp-indicator-score.fp-score-na {
    background: #f1f5f9;
    color: #94a3b8;
}

/* === FOOTER === */
.fp-footer {
    text-align: center;
    padding: 24px 16px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fp-footer .material-icons {
    font-size: 16px;
    color: #0d9488;
}

/* =====================================================
   FAMILY PERFORMANCE — MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 600px) {
    .olama-family-perf {
        padding: 10px;
    }

    .fp-hero {
        padding: 24px 18px 20px;
        border-radius: 18px;
    }

    .fp-hero-title {
        font-size: 1.5rem;
    }

    .fp-hero-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .fp-hero-icon .material-icons {
        font-size: 24px;
    }

    .fp-student-header {
        padding: 12px 14px;
        gap: 10px;
    }

    .fp-student-avatar {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 1.1rem;
    }

    .fp-student-name {
        font-size: 0.95rem;
    }

    .fp-mastery-ring {
        width: 40px;
        height: 40px;
    }

    .fp-ring-text {
        font-size: 0.62rem;
    }

    .fp-mastery-badge {
        font-size: 0.6rem;
        padding: 1px 6px;
    }

    .fp-student-body {
        padding: 0 14px;
    }

    .fp-student-card.active .fp-student-body {
        display: block !important;
        padding: 0 14px 16px;
    }

    .fp-eval-pills {
        gap: 6px;
    }

    .fp-eval-pill {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    .fp-eval-tab {
        padding: 8px 12px;
        font-size: 0.76rem;
    }

    .fp-domain-title {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .fp-category-title {
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    .fp-indicator-row {
        padding: 8px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .fp-indicator-text {
        font-size: 0.78rem;
    }

    .fp-indicator-score {
        align-self: flex-start;
        min-width: auto;
        font-size: 0.7rem;
    }

    .fp-eval-meta {
        gap: 6px;
    }

    .fp-meta-chip {
        font-size: 0.72rem;
        padding: 4px 10px;
    }
}