.neoo-bb-page-wrap {
    width: 100%;
    max-width: 1800px;
    margin: 20px auto 40px;
    padding: 0 10px 40px;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

.neoo-bb-header {
    text-align: center;
    margin-bottom: 26px;
}

.neoo-bb-header h1 {
    margin: 0 0 8px;
    color: #224a9a;
    font-size: 28px;
    font-weight: 700;
}

.neoo-bb-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.neoo-bb-save-notice {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.neoo-bb-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.neoo-edit-btn {
    background: #224a9a;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.neoo-edit-btn:hover {
    background: #1b3d80;
}

.neoo-bb-edit-wrap {
    background: #ffffff;
    border: 1px solid #dce3f0;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(21, 46, 96, 0.08);
}

.neoo-bb-edit-form {
    display: grid;
    gap: 16px;
}

.neoo-bb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #224a9a;
}

.neoo-bb-form-group textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px;
    border: 1px solid #d3dbea;
    border-radius: 10px;
    resize: vertical;
    font-size: 14px;
    box-sizing: border-box;
    background: #fbfdff;
}

.neoo-bb-form-group small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}

.neoo-bb-form-actions {
    display: flex;
    justify-content: flex-end;
}

.neoo-bb-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2.1fr;
    gap: 18px;
    align-items: start;
}

.neoo-bb-left-col,
.neoo-bb-middle-col,
.neoo-bb-right-col {
    display: grid;
    gap: 18px;
}

.neoo-bb-card {
    background: #ffffff;
    border: 1px solid #d7dfea;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.neoo-bb-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e6ebf4;
}

.neoo-bb-card-head h3 {
    margin: 0;
    color: #224a9a;
    font-size: 20px;
    font-weight: 700;
}

.neoo-bb-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f2f6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: inset 0 0 0 1px #d9e4fb;
}

.neoo-bb-list {
    margin: 0;
    padding-left: 20px;
}

.neoo-bb-list li {
    margin-bottom: 12px;
    color: #334155;
    line-height: 1.6;
}

.neoo-bb-homework-list {
    display: grid;
    gap: 14px;
}

.neoo-bb-homework-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fbfdff;
    border: 1px solid #d8e1ef;
    border-radius: 14px;
    padding: 12px;
}

.neoo-bb-badge {
    background: #e8f0ff;
    color: #224a9a;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    min-width: fit-content;
}

.neoo-bb-homework-text {
    color: #334155;
    line-height: 1.55;
}

.neoo-bb-support-wrap p {
    margin: 0 0 12px;
    color: #334155;
    line-height: 1.6;
}

.neoo-bb-subsection-title {
    margin: 0 0 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #edf4ff;
    color: #224a9a;
    font-weight: 700;
    font-size: 14px;
}

.neoo-bb-mt20 {
    margin-top: 20px;
}

.neoo-bb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.neoo-bb-table th {
    background: #224a9a;
    color: #fff;
    padding: 10px 8px;
    border: 1px solid #dbe3f2;
    font-size: 12px;
    letter-spacing: 1px;
}

.neoo-bb-table td {
    border: 1px solid #dbe3f2;
    padding: 8px;
    color: #334155;
    background: #fff;
}

.neoo-bb-row-break td {
    background: #e7f4ff;
    font-weight: 600;
}

.neoo-bb-row-lunch td {
    background: #f8f0c8;
    font-weight: 600;
}

.neoo-bb-row-dismissal td {
    background: #f8dddd;
    font-weight: 600;
}

.neoo-bb-spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.neoo-bb-spotlight-item {
    border: 1px solid #dbe3f2;
    border-radius: 14px;
    padding: 14px;
    background: #fbfdff;
}

.neoo-bb-spotlight-item strong {
    color: #224a9a;
    display: block;
    margin-bottom: 6px;
}

.neoo-bb-spotlight-item p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.neoo-bb-calendar-wrap {
    margin-top: 22px;
}

.neoo-bb-calendar-title {
    text-align: center;
    margin: 0 0 24px;
    color: #0f2f69;
    font-size: 34px;
    font-weight: 800;
}

.neoo-bb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 36px;
}

.neoo-bb-month-block h4 {
    margin: 0 0 12px;
    color: #143d7a;
    font-size: 20px;
    font-weight: 700;
}

.neoo-bb-month-block ul {
    margin: 0;
    padding-left: 20px;
}

.neoo-bb-month-block li {
    margin-bottom: 12px;
    color: #334155;
    line-height: 1.6;
}

@media (max-width: 1300px) {
    .neoo-bb-main-grid {
        grid-template-columns: 1fr;
    }

    .neoo-bb-spotlight-grid {
        grid-template-columns: 1fr;
    }

    .neoo-bb-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .neoo-bb-page-wrap {
        padding: 0 8px 30px;
    }

    .neoo-bb-header h1 {
        font-size: 24px;
    }

    .neoo-bb-calendar-title {
        font-size: 26px;
    }

    .neoo-bb-calendar-grid {
        grid-template-columns: 1fr;
    }
}

.neoo-bb-timetable-grid-wrap {
    overflow-x: auto;
}

.neoo-bb-week-grid {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

.neoo-bb-week-grid th,
.neoo-bb-week-grid td {
    border: 2px solid #4b5563;
    text-align: center;
    padding: 14px 8px;
    font-weight: 600;
}

.neoo-bb-week-grid th {
    background: #f8fafc;
    color: #111827;
    font-size: 15px;
}

.neoo-time-cell {
    background: #f3f4f6;
    color: #111827;
    font-weight: 700;
}

.neoo-subject-maths {
    background: #a9c8e8;
    color: #111827;
}

.neoo-subject-writing {
    background: #f3df94;
    color: #111827;
}

.neoo-subject-reading {
    background: #bfdcab;
    color: #111827;
}

.neoo-subject-arabic {
    background: #f3a8ab;
    color: #111827;
}

.neoo-subject-science {
    background: #efcfb2;
    color: #111827;
}

.neoo-subject-social {
    background: #ef8f8f;
    color: #111827;
}

.neoo-subject-islamic {
    background: #ff5f5f;
    color: #111827;
}

.neoo-subject-topic {
    background: #d8a8d8;
    color: #111827;
}

.neoo-subject-default {
    background: #ffffff;
    color: #111827;
}

.neoo-subject-break {
    background: #e7f4ff;
    color: #111827;
}

.neoo-subject-lunch {
    background: #f8f0c8;
    color: #111827;
}

.neoo-subject-dismissal {
    background: #f8dddd;
    color: #111827;
}