/* 2026-2027 school year page */

.year-page-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 30px;
}

.year-page-header {
    text-align: center;
    margin-bottom: 25px;
}

.year-page-header h1 {
    font-family: 'Schoolbell', cursive;
    color: var(--navy);
    font-size: 2.4rem;
    font-weight: normal;
    margin-bottom: 6px;
}

.year-page-header p {
    color: var(--green);
    font-weight: 700;
    font-size: 1rem;
}

.year-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.year-tab {
    background: var(--chalkboard);
    color: #a5d6a7;
    border: 4px solid var(--wood);
    border-radius: 8px;
    padding: 12px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.1s, filter 0.2s;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.year-tab:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.year-tab.active {
    background: var(--navy);
    color: #b4eeb4;
    border-color: var(--navy);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.newsletter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px dashed rgba(0, 51, 102, 0.2);
    border-radius: 12px;
    flex-wrap: wrap;
}

.newsletter-item h3 {
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 700;
}

.newsletter-item span {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.newsletter-badge {
    background: var(--green);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.newsletter-pdf-link {
    background: var(--navy);
    color: #b4eeb4;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 20px;
    flex-shrink: 0;
    transition: filter 0.2s;
}

.newsletter-pdf-link:hover {
    filter: brightness(1.15);
}

.newsletter-empty,
.newsletter-editor-empty {
    text-align: center;
    color: #666;
    font-weight: 600;
    font-style: italic;
    padding: 10px 0;
}

.modal-divider {
    border: none;
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
    margin: 24px 0 18px;
}

.modal-section-title {
    color: var(--navy);
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.newsletter-panel-header {
    position: relative;
    margin-bottom: 15px;
}

.newsletter-panel-header h2 {
    margin-bottom: 0;
}

.admin-edit-btn {
    background: var(--navy);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.admin-edit-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content.chalkboard-variant {
    background: var(--cream);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 35px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 8px solid var(--navy);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--navy);
    cursor: pointer;
    line-height: 1;
}

.modal-title {
    color: var(--navy);
    margin-bottom: 8px;
}

.modal-subtitle {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-editor-item {
    background: white;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.newsletter-editor-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.newsletter-editor-status {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
    font-weight: 600;
}

.newsletter-upload-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-upload-form input[type="text"],
.newsletter-upload-form input[type="file"] {
    padding: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

.newsletter-save-btn {
    padding: 12px;
    font-size: 0.95rem;
    min-width: auto;
}

.btn-icon {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-icon.btn-danger {
    background: #e74c3c;
    color: white;
}

.calendar-image-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.calendar-thumb-btn {
    display: block;
    padding: 0;
    border: 3px solid var(--navy);
    border-radius: 12px;
    background: white;
    cursor: zoom-in;
    overflow: hidden;
    max-width: 100%;
    transition: transform 0.15s, box-shadow 0.15s;
}

.calendar-thumb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.calendar-thumb {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
}

.calendar-hint {
    color: var(--navy);
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0.8;
}

.calendar-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    padding: 24px;
    cursor: zoom-out;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;
}

.calendar-lightbox.visible {
    display: block;
}

.calendar-full {
    display: inline-block;
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    height: auto;
    border: 4px solid white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    vertical-align: top;
}

.calendar-empty {
    text-align: center;
    color: var(--navy);
    font-weight: 600;
    padding: 30px 0;
}
