* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #2d3748;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    background: #ffffff;
    padding: 24px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

header h1 {
    color: #2d3748;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-buttons button {
    background: #4299e1;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.nav-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
    background: #3182ce;
}

.nav-buttons button:active {
    transform: translateY(0);
}

#currentMonth {
    font-size: 1.4rem;
    font-weight: 600;
    min-width: 220px;
    text-align: center;
    color: #2d3748;
}

.calendar {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #4a5568;
    color: white;
}

.weekdays div {
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #f7fafc;
    padding: 1px;
}

.day {
    background: white;
    padding: 16px;
    min-height: 90px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.day:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #f8fafc;
}

.day.other-month {
    color: #a0aec0;
    background: #f7fafc;
    opacity: 0.6;
}

.day.today {
    background: #4299e1;
    color: white;
    font-weight: 900;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow:
        0 4px 12px rgba(66, 153, 225, 0.3),
        0 0 0 2px #4299e1;
    transform: scale(1.1);
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day.today:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow:
        0 6px 16px rgba(66, 153, 225, 0.4),
        0 0 0 2px #4299e1;
    background: #3182ce;
}

.day.today .day-number {
    font-size: 1.4rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 900;
}

.day.today .day-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.day.today .special-label {
    display: none;
}

.day.mwf {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.day.mwf:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.day.tth {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
}

.day.tth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

.day.saturday {
    background: linear-gradient(135deg, #fbb6ce 0%, #f687b3 100%);
    color: white;
}

.day.saturday:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 182, 206, 0.4);
}

.day.sunday {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.day.sunday:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4);
}

.day-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    z-index: 1;
}

.day-number {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.special-label {
    font-size: 9px;
    text-align: center;
    line-height: 1.2;
    font-weight: 600;
    margin-top: auto;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    word-wrap: break-word;
    hyphens: auto;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.day.saturday .special-label {
    background: rgba(255, 255, 255, 0.95);
    color: #d53f8c;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.day.sunday .special-label {
    background: rgba(255, 255, 255, 0.95);
    color: #2b6cb0;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    margin: 2% auto;
    padding: 0;
    border-radius: 24px;
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 24px 24px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.close {
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
}

.upload-section {
    margin-bottom: 24px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px dashed rgba(240, 147, 251, 0.3);
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: rgba(240, 147, 251, 0.5);
    background: rgba(255, 255, 255, 0.8);
}

.upload-section label {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

.upload-section input[type="file"] {
    margin-bottom: 16px;
    padding: 12px 16px;
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.upload-section input[type="file"]:focus {
    outline: none;
    border-color: #f093fb;
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.1);
}

.upload-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upload-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.upload-section button {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.upload-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.6);
}

.clear-upload-btn {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%) !important;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4) !important;
}

.clear-upload-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(245, 101, 101, 0.6) !important;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.time-slot {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    background: #f8f9fa;
}

.time-slot h4 {
    margin-bottom: 15px;
    color: #495057;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.student-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.student-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 16px 20px;
    margin: 16px 0 8px 0;
    border-radius: 12px;
    border-left: 4px solid #f093fb;
    font-weight: 600;
    color: #2d3748;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.student-attendance-row {
    display: grid;
    grid-template-columns: 100px 150px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%);
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    margin-bottom: 12px;
    margin-left: 24px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.1);
}

.absent-comment {
    padding: 10px 12px;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.absent-comment:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.student-grade-row {
    display: grid;
    grid-template-columns: 150px 120px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
    margin-left: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.student-grade-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.previous-grade-badge {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    z-index: 1;
}

.row-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.row-label-input {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    color: #4a5568;
    font-weight: 600;
    background: #f8fafc;
    width: 100%;
    transition: all 0.3s ease;
}

.row-label-input:focus {
    outline: none;
    border-color: #f093fb;
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.1);
    background: white;
}

.student-grade-row input {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.grade-input {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    width: 100%;
}

.grade-input:focus {
    outline: none;
    border-color: #f093fb;
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.1);
}

.notes-textarea {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    resize: none;
    overflow: hidden;
    min-height: 38px;
    width: 100%;
    transition: all 0.3s ease;
}

.notes-textarea:focus {
    outline: none;
    border-color: #f093fb;
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.1);
}

.student-grade-row select {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.student-attendance-row select {
    padding: 10px 12px;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.student-attendance-row select:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.student-grade-row input:focus,
.student-grade-row select:focus {
    outline: none;
    border-color: #f093fb;
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.1);
}

/* Legacy support for old student-row class */
.student-row {
    display: grid;
    grid-template-columns: 1fr 1fr 100px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

.student-row input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 14px;
}

.student-row select {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 14px;
    background: white;
}

.student-row input:focus,
.student-row select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Time Selection Styles */
.time-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.time-slot-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(240, 147, 251, 0.2);
    padding: 24px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.time-slot-btn:hover {
    background: rgba(240, 147, 251, 0.1);
    border-color: #f093fb;
    color: #f093fb;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(240, 147, 251, 0.2);
}

.time-slot-btn:active {
    transform: translateY(-2px);
}

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

.back-btn {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(113, 128, 150, 0.4);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(113, 128, 150, 0.6);
}

#selectedTimeTitle {
    margin: 0;
    color: #3498db;
    font-size: 1.5rem;
}

/* Class Information Section */
.class-info-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 28px;
    margin: 24px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.class-info-section:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.class-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: #2d3748;
    min-width: 120px;
    font-size: 0.95rem;
}

.info-item span {
    color: #4a5568;
    flex: 1;
    font-size: 0.95rem;
}

.link-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.6);
    text-decoration: none;
}

/* Class Info Header */
.class-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid transparent;
    background: linear-gradient(90deg, #f093fb, #f5576c);
    background-size: 100% 3px;
    background-repeat: no-repeat;
    background-position: bottom;
}

.class-info-header h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
}

.edit-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.6);
}

/* Class Info Edit Mode */
.class-info-edit {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.edit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.edit-item:last-child {
    border-bottom: none;
}

.edit-item label {
    font-weight: 600;
    color: #2d3748;
    min-width: 140px;
    font-size: 0.95rem;
}

.edit-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.edit-input:focus {
    outline: none;
    border-color: #f093fb;
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.1);
}

.edit-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid rgba(226, 232, 240, 0.5);
}

.save-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.6);
}

.cancel-btn {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(113, 128, 150, 0.4);
}

.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(113, 128, 150, 0.6);
}

.clear-btn {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 101, 101, 0.6);
}

.grades-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border-left: 4px solid #f093fb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.grades-header-controls {
    display: flex;
    align-items: center;
}

.student-search-input {
    padding: 8px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    width: 220px;
    background: white;
    transition: all 0.3s ease;
}

.student-search-input:focus {
    outline: none;
    border-color: #f093fb;
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.1);
}

.grades-header h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
}

.clear-options {
    display: flex;
    gap: 15px;
    align-items: center;
}

.grade-filter-group {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
}

.grade-filter-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    transition: all 0.2s ease;
}

.grade-filter-btn:hover {
    color: #2d3748;
    background: rgba(255, 255, 255, 0.5);
}

.grade-filter-btn.active {
    background: white;
    color: #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.clear-selected-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.student-select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    min-width: 200px;
}

.student-select:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.clear-all {
    background: #dc3545;
    color: white;
}

.clear-all:hover {
    background: #c82333;
}

.clear-selected {
    background: #ffc107;
    color: #212529;
}

.clear-selected:hover {
    background: #e0a800;
}

#studentGradesContainer {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Export Button Styles */
.export-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 15px;
    transition: background 0.3s;
}

.export-btn:hover {
    background: #218838;
}

/* Export Modal Styles */
.export-section {
    padding: 20px 0;
}

.export-section h3 {
    margin-bottom: 20px;
    color: #495057;
}

#exportSelections {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.export-date-group {
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background: white;
}

.export-date-header {
    background: #e9ecef;
    padding: 10px 15px;
    font-weight: bold;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

.export-time-slots {
    padding: 15px;
}

.export-time-slot {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.export-time-slot:last-child {
    border-bottom: none;
}

.export-time-slot input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.export-time-slot label {
    flex: 1;
    cursor: pointer;
    font-size: 14px;
}

.export-student-count {
    color: #6c757d;
    font-size: 12px;
    margin-left: 10px;
}

.export-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.action-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.action-btn:hover {
    background: #5a6268;
}

.export-data-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

.export-data-btn:hover {
    background: #0056b3;
}

.export-data-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-buttons {
        gap: 10px;
    }
    
    .day {
        min-height: 60px;
        padding: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .student-attendance-row {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-left: 10px;
    }
    
    .student-grade-row {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-left: 10px;
    }
    
    .student-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .class-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-item label {
        min-width: auto;
    }
}

/* Weekend Special Section */
#weekendSpecialSection {
    text-align: center;
    padding: 20px;
}

.weekend-special-content {
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.weekend-icon {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
    margin-bottom: 5px;
}

#weekendSpecialTitle {
    color: #333;
    font-size: 1.6rem;
    margin: 0;
    font-weight: 600;
    margin-bottom: 10px;
}

#weekendSpecialImage {
    max-width: 200px !important;
    max-height: 150px !important;
    width: auto !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 12px !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    margin: 10px 0 !important;
    display: block;
}

#weekendSpecialMessage {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    text-align: center;
    max-width: 350px;
    margin-top: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Christmas Theme for "Ber" Months */
.christmas-theme {
    background: linear-gradient(135deg, #0f4c3a 0%, #1a5f4a 50%, #0f4c3a 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.christmas-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: snowfall 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes snowfall {
    0% {
        background-position: 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px;
    }
    100% {
        background-position: 500px 1000px, 400px 400px, 300px 300px, 200px 200px, 100px 100px;
    }
}

.christmas-theme header {
    background: linear-gradient(135deg, #c41e3a 0%, #228b22 100%);
    color: white;
    border: 2px solid #ffd700;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.3);
    position: relative;
    z-index: 10;
}

.christmas-theme header h1 {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.christmas-theme #currentMonth {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.christmas-theme .nav-buttons button {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #0f4c3a;
    border: 2px solid #228b22;
    font-weight: 700;
}

.christmas-theme .nav-buttons button:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.christmas-theme .calendar {
    background: #ffffff;
    border: 3px solid #c41e3a;
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.2);
    position: relative;
    z-index: 10;
}

.christmas-theme .weekdays {
    background: linear-gradient(135deg, #c41e3a 0%, #228b22 100%);
    color: #ffd700;
    font-weight: 700;
}

.christmas-theme .day {
    position: relative;
    background: #ffffff;
}

.christmas-theme .day:hover {
    background: #f0f8f0;
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.2);
}

.christmas-theme .day.mwf {
    background: linear-gradient(135deg, #228b22 0%, #32cd32 100%);
    color: white;
}

.christmas-theme .day.tth {
    background: linear-gradient(135deg, #c41e3a 0%, #dc143c 100%);
    color: white;
}

.christmas-theme .day.saturday {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #0f4c3a;
    font-weight: 600;
}

.christmas-theme .day.sunday {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #0f4c3a;
    font-weight: 600;
}

.christmas-theme .day.today {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #c41e3a;
    border: 3px solid #c41e3a;
    box-shadow:
        0 4px 12px rgba(255, 215, 0, 0.4),
        0 0 0 2px #ffd700,
        0 0 20px rgba(196, 30, 58, 0.3);
    animation: christmasGlow 2s ease-in-out infinite;
}

.christmas-theme .day.today:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    box-shadow:
        0 6px 16px rgba(255, 215, 0, 0.5),
        0 0 0 2px #ffd700,
        0 0 25px rgba(196, 30, 58, 0.4);
}

.christmas-theme .day.today .day-number {
    color: #c41e3a;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 900;
}

/* Christmas decorations */
.christmas-theme .day::before {
    content: "❄️";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 8px;
    opacity: 0.3;
    z-index: 1;
}

.christmas-theme .day:nth-child(7n)::before {
    content: "🎄";
}

.christmas-theme .day:nth-child(7n+1)::before {
    content: "⭐";
}

.christmas-theme .day:nth-child(7n+3)::before {
    content: "🎁";
}

.christmas-theme .day:nth-child(7n+5)::before {
    content: "🔔";
}

@keyframes christmasGlow {
    0%, 100% {
        box-shadow:
            0 4px 12px rgba(255, 215, 0, 0.4),
            0 0 0 2px #ffd700,
            0 0 20px rgba(196, 30, 58, 0.3);
    }
    50% {
        box-shadow:
            0 4px 12px rgba(255, 215, 0, 0.6),
            0 0 0 2px #ffd700,
            0 0 30px rgba(196, 30, 58, 0.5);
    }
}

/* Christmas modal styling */
.christmas-theme .modal-header {
    background: linear-gradient(135deg, #c41e3a 0%, #228b22 100%);
    border: 2px solid #ffd700;
}

.christmas-theme .modal-content {
    border: 3px solid #c41e3a;
    box-shadow: 0 25px 50px rgba(196, 30, 58, 0.3);
    position: relative;
    z-index: 1001;
}

.christmas-theme .container {
    position: relative;
    z-index: 10;
}

/* December Special Theme - Christmas Trees */
.december-theme::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Large Christmas trees */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='80' viewBox='0 0 60 80'%3E%3Cg fill='%23228b22' fill-opacity='0.1'%3E%3Cpolygon points='30,10 45,35 15,35'/%3E%3Cpolygon points='30,20 40,40 20,40'/%3E%3Cpolygon points='30,30 35,45 25,45'/%3E%3Crect x='27' y='45' width='6' height='15' fill='%238b4513'/%3E%3C/g%3E%3C/svg%3E"),
        /* Medium Christmas trees */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='60' viewBox='0 0 40 60'%3E%3Cg fill='%23228b22' fill-opacity='0.08'%3E%3Cpolygon points='20,8 30,25 10,25'/%3E%3Cpolygon points='20,15 27,30 13,30'/%3E%3Cpolygon points='20,22 24,35 16,35'/%3E%3Crect x='18' y='35' width='4' height='10' fill='%238b4513'/%3E%3C/g%3E%3C/svg%3E"),
        /* Small Christmas trees */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='35' viewBox='0 0 25 35'%3E%3Cg fill='%23228b22' fill-opacity='0.06'%3E%3Cpolygon points='12.5,5 18,18 7,18'/%3E%3Cpolygon points='12.5,10 16,20 9,20'/%3E%3Cpolygon points='12.5,15 14,25 11,25'/%3E%3Crect x='11' y='25' width='3' height='7' fill='%238b4513'/%3E%3C/g%3E%3C/svg%3E");
    background-position:
        0 0,
        100px 150px,
        250px 50px;
    background-repeat: repeat;
    background-size:
        200px 250px,
        150px 180px,
        100px 120px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.7;
}

/* Enhanced December styling */
.december-theme.christmas-theme {
    background: linear-gradient(135deg, #0a3d2e 0%, #1a5f4a 30%, #0f4c3a 70%, #0a3d2e 100%);
}

.december-theme .christmas-theme .calendar {
    box-shadow:
        0 8px 24px rgba(196, 30, 58, 0.3),
        0 0 0 1px rgba(255, 215, 0, 0.3);
}

.december-theme .day.today {
    box-shadow:
        0 4px 12px rgba(255, 215, 0, 0.6),
        0 0 0 3px #ffd700,
        0 0 25px rgba(196, 30, 58, 0.4),
        0 0 40px rgba(34, 139, 34, 0.2) !important;
    animation: decemberGlow 3s ease-in-out infinite;
}

@keyframes decemberGlow {
    0%, 100% {
        box-shadow:
            0 4px 12px rgba(255, 215, 0, 0.6),
            0 0 0 3px #ffd700,
            0 0 25px rgba(196, 30, 58, 0.4),
            0 0 40px rgba(34, 139, 34, 0.2);
    }
    50% {
        box-shadow:
            0 4px 12px rgba(255, 215, 0, 0.8),
            0 0 0 3px #ffd700,
            0 0 30px rgba(196, 30, 58, 0.6),
            0 0 50px rgba(34, 139, 34, 0.3);
    }
}

/* Monthly Themes */

/* January - Winter/New Year Theme */
.january-theme {
    background: linear-gradient(135deg, #e6f3ff 0%, #b3d9ff 50%, #cce7ff 100%);
}

.january-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 30px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 80px 20px, rgba(255,255,255,0.8), transparent),
        radial-gradient(3px 3px at 150px 60px, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 180px 120px;
    animation: snowfall 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.january-theme .day.today {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4), 0 0 0 2px #4a90e2;
}

/* February - Valentine's Theme */
.february-theme {
    background: linear-gradient(135deg, #ffe0e6 0%, #ffb3c1 50%, #ffc0cb 100%);
}

.february-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M15,25 C15,25 5,18 5,11 C5,7 8,5 12,7 C13,8 15,10 15,10 C15,10 17,8 18,7 C22,5 25,7 25,11 C25,18 15,25 15,25 Z' fill='%23ff69b4' fill-opacity='0.1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 1;
}

.february-theme .day.today {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4), 0 0 0 2px #ff69b4;
}

/* March - Spring Theme */
.march-theme {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 50%, #a5d6a7 100%);
}

.march-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%2366bb6a' fill-opacity='0.08'%3E%3Ccircle cx='20' cy='15' r='3'/%3E%3Cpath d='M20,18 Q15,25 10,30 Q20,28 20,18 Q25,25 30,30 Q20,28 20,18'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 120px 120px;
    pointer-events: none;
    z-index: 1;
}

.march-theme .day.today {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(102, 187, 106, 0.4), 0 0 0 2px #66bb6a;
}

/* April - Cherry Blossom Theme */
.april-theme {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 50%, #f48fb1 100%);
}

.april-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cg fill='%23e91e63' fill-opacity='0.1'%3E%3Ccircle cx='25' cy='25' r='2'/%3E%3Cpath d='M25,23 Q20,18 15,20 Q20,25 25,23 Q30,18 35,20 Q30,25 25,23 Q20,30 15,28 Q20,25 25,27 Q30,30 35,28 Q30,25 25,27'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 150px 150px;
    pointer-events: none;
    z-index: 1;
}

.april-theme .day.today {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4), 0 0 0 2px #e91e63;
}

/* May - Flower Theme */
.may-theme {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 50%, #ffb74d 100%);
}

.may-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23ff9800' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3Cpath d='M30,26 Q25,21 20,23 Q25,28 30,26 Q35,21 40,23 Q35,28 30,26 Q25,35 20,33 Q25,30 30,34 Q35,35 40,33 Q35,30 30,34 Q21,30 23,25 Q28,30 26,30 Q39,30 37,25 Q32,30 34,30'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    pointer-events: none;
    z-index: 1;
}

.may-theme .day.today {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4), 0 0 0 2px #ff9800;
}

/* June - Summer Theme */
.june-theme {
    background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 50%, #42a5f5 100%);
}

.june-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%232196f3' fill-opacity='0.08'%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3Cpath d='M40,20 L40,32 M40,48 L40,60 M20,40 L32,40 M48,40 L60,40 M28,28 L36,36 M44,44 L52,52 M52,28 L44,36 M36,44 L28,52'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 1;
}

.june-theme .day.today {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4), 0 0 0 2px #2196f3;
}

/* July - Beach/Ocean Theme */
.july-theme {
    background: linear-gradient(135deg, #e0f2f1 0%, #80cbc4 50%, #26a69a 100%);
}

.july-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='60' viewBox='0 0 100 60'%3E%3Cpath d='M0,30 Q25,20 50,30 T100,30 L100,60 L0,60 Z' fill='%23009688' fill-opacity='0.1'/%3E%3Cpath d='M0,40 Q25,30 50,40 T100,40 L100,60 L0,60 Z' fill='%23009688' fill-opacity='0.05'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 300px 180px;
    animation: waves 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes waves {
    0%, 100% { background-position-x: 0; }
    50% { background-position-x: 100px; }
}

.july-theme .day.today {
    background: linear-gradient(135deg, #009688 0%, #00695c 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.4), 0 0 0 2px #009688;
}

/* August - Sunset Theme */
.august-theme {
    background: linear-gradient(135deg, #fff8e1 0%, #ffcc02 30%, #ff8f00 70%, #e65100 100%);
}

.august-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='20' fill='%23ff9800' fill-opacity='0.1'/%3E%3Cpath d='M60,20 L60,40 M60,80 L60,100 M20,60 L40,60 M80,60 L100,60 M35,35 L45,45 M75,75 L85,85 M85,35 L75,45 M45,75 L35,85' stroke='%23ff9800' stroke-opacity='0.1' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 240px 240px;
    pointer-events: none;
    z-index: 1;
}

.august-theme .day.today {
    background: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4), 0 0 0 2px #ff9800;
}

/* September - Autumn Theme */
.september-theme {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 30%, #ff8f00 70%, #e65100 100%);
}

.september-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpath d='M25,5 Q30,15 35,25 Q30,35 25,45 Q20,35 15,25 Q20,15 25,5 Z' fill='%23ff6f00' fill-opacity='0.1'/%3E%3Cpath d='M25,10 Q28,18 30,25 Q28,32 25,40 Q22,32 20,25 Q22,18 25,10 Z' fill='%23ff8f00' fill-opacity='0.08'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 150px 150px;
    pointer-events: none;
    z-index: 1;
}

.september-theme .day.today {
    background: linear-gradient(135deg, #ff6f00 0%, #e65100 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4), 0 0 0 2px #ff6f00;
}

/* October - Halloween Theme */
.october-theme {
    background: linear-gradient(135deg, #2e1065 0%, #4c1d95 30%, #7c2d12 70%, #ea580c 100%);
}

.october-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='25' r='15' fill='%23ea580c' fill-opacity='0.1'/%3E%3Cpath d='M20,20 Q25,15 30,20 Q35,15 40,20 Q35,25 30,20 Q25,25 20,20 Z' fill='%23ea580c' fill-opacity='0.08'/%3E%3Cpath d='M25,35 Q30,30 35,35 Q30,40 25,35 Z' fill='%23ea580c' fill-opacity='0.06'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    pointer-events: none;
    z-index: 1;
}

.october-theme .day.today {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4), 0 0 0 2px #ea580c;
}

/* November - Thanksgiving Theme */
.november-theme {
    background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 30%, #d97706 70%, #92400e 100%);
}

.november-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70' viewBox='0 0 70 70'%3E%3Cpath d='M35,10 Q40,20 45,35 Q40,50 35,60 Q30,50 25,35 Q30,20 35,10 Z' fill='%23d97706' fill-opacity='0.1'/%3E%3Cpath d='M35,15 Q38,25 40,35 Q38,45 35,55 Q32,45 30,35 Q32,25 35,15 Z' fill='%23f59e0b' fill-opacity='0.08'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 1;
}

.november-theme .day.today {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4), 0 0 0 2px #f59e0b;
}

/* Coverage Dates Button */
.coverage-dates-btn {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.coverage-dates-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

/* Coverage Dates Badge */
.coverage-badge {
    font-size: 8px;
    text-align: center;
    line-height: 1.2;
    font-weight: 700;
    margin-top: 4px;
    padding: 3px 5px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    border-radius: 6px;
    word-wrap: break-word;
    hyphens: auto;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Coverage Dates Form */
.coverage-dates-form {
    padding: 20px 0;
}

.coverage-date-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.coverage-date-item:last-child {
    border-bottom: none;
}

.coverage-date-item label {
    font-weight: 600;
    color: #2d3748;
    min-width: 120px;
    font-size: 1rem;
}

.coverage-date-item input[type="date"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.coverage-date-item input[type="date"]:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.coverage-dates-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid rgba(226, 232, 240, 0.5);
}