:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#213547;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;padding:0;font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;min-width:320px;min-height:100vh;background-color:#f8fafc}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eacd66,#764ba2);padding:20px}.form-group input{padding:12px 16px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;transition:border-color .2s,box-shadow .2s}.form-group input:disabled{background:#f9fafb;cursor:not-allowed}.auth-submit-button:disabled{background:#9ca3af;cursor:not-allowed;opacity:.7;transform:scale(.98);transition:all .2s ease}.auth-submit-button:disabled .loading-spinner{animation:spin 1s linear infinite}.auth-switch-button:hover:not(:disabled){color:#2563eb}@media (max-width: 480px){.auth-form{padding:24px}.auth-header h2{font-size:20px}}.role-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:12px;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.05em}.role-badge.admin{background:#dbeafe;color:#1d4ed8}.role-badge.teacher{background:#fef3c7;color:#d97706}@media (max-width: 768px){.navigation-header{margin-bottom:16px}.nav-container{padding:12px 16px;flex-direction:column;gap:12px;align-items:stretch}.nav-brand{display:flex;justify-content:center}.nav-brand h1{font-size:18px}.nav-user{justify-content:space-between;gap:12px}.user-info{font-size:13px;gap:6px}.user-info svg{width:14px;height:14px}.role-badge{font-size:10px;padding:1px 6px}.logout-button{padding:10px 14px;font-size:13px;min-height:40px;gap:4px}.logout-button svg{width:14px;height:14px}}@media (max-width: 480px){.nav-container{padding:10px 12px;gap:10px}.nav-brand h1{font-size:16px}.nav-user{flex-direction:column;gap:8px;align-items:stretch}.user-info{justify-content:center;font-size:12px}.user-info svg{width:12px;height:12px}.role-badge{font-size:9px;padding:1px 5px}.logout-button{width:100%;justify-content:center;padding:12px 16px;font-size:14px;min-height:44px}.logout-button svg{width:16px;height:16px}}.calendar-container button:not(.view-button){all:unset;box-sizing:border-box}.calendar-container{max-width:1200px;margin:0 auto;padding:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.calendar-header-section{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;flex-wrap:wrap;gap:20px}.calendar-title{display:flex;align-items:center;gap:12px;color:#1f2937}.calendar-title h1{margin:0;font-size:1.8rem;font-weight:600}.calendar-navigation{display:flex;align-items:center;gap:16px}.nav-button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#6b7280;cursor:pointer;transition:all .2s}.nav-button:hover{background:#f85c27!important;border-color:#6b7280;color:#fff!important;border-radius:8px!important;padding:4px!important;transform:translateY(-1px);box-shadow:0 4px 8px #0000001f}.current-month{margin:0;font-size:1.25rem;font-weight:600;color:#1f2937;min-width:200px;text-align:center}.calendar-grid{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;overflow:hidden}.calendar-header{display:grid;grid-template-columns:repeat(7,1fr);background:#f8fafc;border-bottom:1px solid #e5e7eb}.week-day-header{padding:16px 8px;text-align:center;font-weight:600;font-size:.875rem;color:#6b7280;text-transform:uppercase;letter-spacing:.05em}.calendar-body{display:grid;grid-template-columns:repeat(7,1fr)}.calendar-day{min-height:120px;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;padding:8px;cursor:pointer;position:relative;display:flex;flex-direction:column}.calendar-day.other-month{background:#f9fafb;color:#9ca3af}.calendar-day.today{background:#fef3c7;border-radius:8px;border:2px solid #f85C27}.calendar-day.selected:not(.today){background:#f3f4f6;border-radius:8px;border:2px solid #9ca3af}.day-number{font-weight:600;font-size:.875rem;margin-bottom:4px;align-self:flex-start;position:relative;display:inline-block}.calendar-day.today .day-number{color:#f85c27}.class-indicator{position:absolute;top:-2px;right:-2px;width:6px;height:6px;background-color:#f85c27;border-radius:50%;border:1px solid white}.add-slot-button{position:absolute;top:8px;right:8px;width:20px;height:20px;border:1px solid #d1d5db;border-radius:4px!important;background:#fff;color:#6b7280;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;transition:all .2s;font-size:12px}.calendar-day:hover .add-slot-button{opacity:1}.add-slot-button:hover{background:#f85c27!important;border-color:#f85c27!important;color:#fff!important;transform:scale(1.15);box-shadow:0 3px 6px #f7903b66;opacity:1!important}.time-slots{flex:1;display:flex;flex-direction:column;gap:2px;margin-top:4px}.time-slot{background:#f8fafc;border:1px solid #e5e7eb;border-left:3px solid;border-radius:6px;padding:6px 8px;cursor:pointer;transition:all .2s;position:relative;overflow:hidden}.time-slot:hover{background:#f1f5f9;transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.time-slot-content{display:flex;flex-direction:column;gap:2px}.time-slot-title{font-weight:600;font-size:.75rem;color:#1f2937;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.time-slot-subtitle{font-size:.7rem;color:#6b7280;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.time-slot-time{font-size:.65rem;color:#9ca3af;font-weight:500}.time-slot-actions{position:absolute;top:4px;right:4px;display:flex;gap:2px;opacity:0;transition:opacity .2s}.time-slot:hover .time-slot-actions{opacity:1}.edit-button,.delete-button{width:16px;height:16px;border:none;border-radius:3px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:8px;transition:all .2s}.edit-button{background:#f85c27;color:#fff}.edit-button:hover{background:#ea580c;transform:scale(1.1)}.delete-button{background:#ef4444;color:#fff}.delete-button:hover{background:#dc2626;transform:scale(1.1)}.overflow-indicator{background:#6b7280;color:#fff;font-size:.65rem;font-weight:600;padding:2px 6px;border-radius:10px;text-align:center;margin-top:2px}.modal-content{background:#fff;border-radius:12px;max-width:500px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 25px -5px #0000001a}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 0;border-bottom:1px solid #e5e7eb;margin-bottom:24px}.modal-header h2{margin:0;font-size:1.5rem;font-weight:600;color:#1f2937}.close-button{width:32px;height:32px;border:none;border-radius:8px;background:#f3f4f6;color:#6b7280;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.close-button:hover{background:#f85c27!important;color:#fff!important;border-radius:10px!important;padding:4px!important;border-color:#9ca3af}.modal-form{padding:0 24px 24px}.form-group label{display:block;margin-bottom:8px;font-weight:500;color:#374151;font-size:.875rem}.form-group input,.form-group textarea{width:100%;padding:12px;border:1px solid #d1d5db;border-radius:8px;font-size:.875rem;transition:all .2s;box-sizing:border-box}.form-group input.error,.form-group textarea.error{border-color:#ef4444}.form-row .form-group{margin-bottom:0}.form-hint{font-size:.75rem;color:#6b7280;margin-top:4px}.error-message{color:#ef4444;font-size:.875rem;margin-top:8px;padding:8px 12px;background:#fef2f2;border-radius:6px;border:1px solid #fecaca}.modal-form select{width:100%;padding:12px 40px 12px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:.875rem;background:#fff;cursor:pointer;transition:all .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");background-position:right 12px center;background-repeat:no-repeat;background-size:16px}.modal-form select.error{border-color:#ef4444}.color-option{width:32px;height:32px;border-radius:50%;cursor:pointer;border:2px solid transparent;transition:all .2s}.color-option.selected{border-color:#1f2937;transform:scale(1.1)}.form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px;padding-top:20px;border-top:1px solid #e5e7eb}.cancel-button,.save-button{padding:12px 24px;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s;border:none}.save-button{background:#f85c27;color:#fff}.save-button:hover{background:#ea580c;transform:translateY(-1px);box-shadow:0 4px 6px -1px #f7903b4d}.modal-overlay .modal-content .modal-tabs{display:flex!important;gap:16px!important;margin:-20px -20px 20px!important;padding:16px 30px 0!important;background:#fff!important;border-bottom:1px solid #f1f5f9!important}.modal-overlay .modal-content .modal-tabs .tab-button{display:flex!important;align-items:center!important;gap:8px!important;padding:8px 16px!important;background:#f1f5f9!important;border:1px solid #e2e8f0!important;border-radius:18px!important;cursor:pointer!important;font-size:13px!important;font-weight:500!important;color:#64748b!important;transition:all .2s ease!important;flex:1!important;justify-content:center!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important;max-width:180px!important}.modal-overlay .modal-content .modal-tabs .tab-button:hover{background:#e2e8f0!important;border-color:#cbd5e1!important;color:#475569!important;transform:none!important;box-shadow:0 1px 3px #0000001a!important}.modal-overlay .modal-content .modal-tabs .tab-button.active{background:#f85c27!important;border-color:#f85c27!important;color:#fff!important;box-shadow:0 2px 4px #f7903b33!important;transform:none!important}.modal-overlay .modal-content .modal-tabs .tab-button.active:hover{background:#ea580c!important;border-color:#ea580c!important;transform:none!important;box-shadow:0 2px 6px #f7903b4d!important}.modal-overlay .modal-content .modal-tabs .tab-button svg{flex-shrink:0!important;width:16px!important;height:16px!important}.tab-content{min-height:320px;background:#fff;padding-top:8px}.students-tab{padding:0;background:#fff}.students-management{display:flex;flex-direction:column;gap:0}.enrolled-students,.available-students{padding:24px;position:relative}.enrolled-students{background:linear-gradient(135deg,#f0fdf4,#ecfdf5);border-bottom:1px solid rgba(187,247,208,.3)}.available-students{background:linear-gradient(135deg,#fafbff,#f8fafc)}.enrolled-students h4,.available-students h4{margin:0 0 20px;font-size:1.1rem;font-weight:600;color:#1f2937;display:flex;align-items:center;gap:12px;letter-spacing:.025em}.enrolled-students h4:before{content:"✓";display:flex;align-items:center;justify-content:center;width:24px;height:24px;background:linear-gradient(135deg,#10b981,#059669);color:#fff;border-radius:50%;font-size:12px;font-weight:700;box-shadow:0 2px 8px #10b9814d}.available-students h4:before{content:"+";display:flex;align-items:center;justify-content:center;width:24px;height:24px;background:linear-gradient(135deg,#f85c27,#ea580c);color:#fff;border-radius:50%;font-size:16px;font-weight:700;box-shadow:0 2px 8px #f7903b4d}.student-list{display:flex;flex-direction:column;gap:12px;max-height:240px;overflow-y:auto;padding-right:4px}.student-list::-webkit-scrollbar{width:6px}.student-list::-webkit-scrollbar-track{background:#0000000d;border-radius:3px}.student-list::-webkit-scrollbar-thumb{background:#0003;border-radius:3px}.student-list::-webkit-scrollbar-thumb:hover{background:#0000004d}.student-name{font-weight:600;color:#1f2937;font-size:.9rem;letter-spacing:.025em}.student-email{font-size:.8rem;color:#6b7280;font-weight:400}.add-student-btn,.remove-student-btn{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 16px;border:1px solid;border-radius:8px;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);min-width:90px;position:relative;overflow:hidden}.add-student-btn:before,.remove-student-btn:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.add-student-btn:hover:before,.remove-student-btn:hover:before{left:100%}.add-student-btn{background:linear-gradient(135deg,#f85c27,#ea580c);color:#fff;border-color:#f85c27;box-shadow:0 2px 4px #f7903b33}.add-student-btn:hover{background:linear-gradient(135deg,#ea580c,#dc2626);transform:translateY(-1px);box-shadow:0 4px 8px #f7903b4d}.remove-student-btn{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border-color:#ef4444;box-shadow:0 2px 4px #ef444433}.remove-student-btn:hover{background:linear-gradient(135deg,#dc2626,#b91c1c);transform:translateY(-1px);box-shadow:0 4px 8px #ef44444d}.empty-text{color:#9ca3af;font-style:italic;text-align:center;padding:24px;font-size:.9rem;background:linear-gradient(135deg,#f9fafb,#f3f4f6);border-radius:8px;border:1px dashed #d1d5db}.students-tab .loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;gap:16px}.students-tab .loading-spinner{width:32px;height:32px;border:3px solid #e5e7eb;border-top:3px solid #f85C27;border-radius:50%;animation:spin 1s linear infinite}.students-tab .loading-state p{margin:0;color:#6b7280;font-size:.875rem}@media (max-width: 768px){.students-management{gap:16px}.enrolled-students,.available-students{padding:16px}.student-item{padding:10px 12px}.student-name{font-size:.8rem}.student-email{font-size:.7rem}.add-student-btn,.remove-student-btn{padding:4px 8px;font-size:.7rem}.management-header{flex-direction:column;align-items:stretch;gap:16px}.header-actions{flex-direction:column;gap:12px}.search-container,.search-box{margin-bottom:0;padding:10px 14px}.search-container input,.search-box input,.search-input{font-size:.85rem}.add-btn{width:100%;justify-content:center;padding:12px 16px}}.view-selector{display:flex;gap:12px}.view-button{padding:10px 20px;border:1px solid #d1d5db;background:#fff;color:#6b7280;font-weight:500;font-size:.875rem;cursor:pointer;transition:all .2s ease;border-radius:50px;min-width:80px;text-align:center;box-shadow:0 1px 2px #0000000d}.view-button:hover{background:#f8fafc;color:#374151;border-color:#9ca3af;transform:translateY(-1px);box-shadow:0 4px 6px #0000001a}.view-button.active{background:#f85c27;color:#fff;border-color:#f85c27;box-shadow:0 4px 6px #f7903b40;transform:translateY(-1px)}.view-button.active:hover{transform:translateY(-2px);box-shadow:0 4px 8px #0000001f,0 2px 4px #00000014}.week-header{display:grid;grid-template-columns:80px repeat(7,1fr);border-bottom:1px solid #e5e7eb;background:#f8fafc}.time-column-header{border-right:1px solid #e5e7eb}.week-day-header{padding:16px 8px;text-align:center;border-right:1px solid #e5e7eb;cursor:pointer;transition:background-color .2s;position:relative}.week-day-header.today{background:#fef3c7;border-radius:8px;border:2px solid #f85C27}.week-day-header.selected{background:#dbeafe;border-radius:8px;border:2px solid #2563eb}.day-name{font-weight:600;font-size:.875rem;color:#374151;margin-bottom:4px}.day-date{font-size:1.25rem;font-weight:500;color:#1f2937}.add-day-slot-button{position:absolute;top:8px;right:8px;width:24px;height:24px;border:1px solid #d1d5db;border-radius:4px;background:#fff;color:#6b7280;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;transition:all .2s}.add-day-slot-button:hover{background:#f85c27!important;border-color:#f85c27!important;color:#fff!important;transform:scale(1.15);box-shadow:0 3px 6px #f7903b66;opacity:1!important}.week-grid{display:grid;grid-template-columns:80px repeat(7,1fr);max-height:600px;overflow-y:auto}.time-column{border-right:1px solid #e5e7eb;background:#f8fafc}.time-slot-hour{height:60px;display:flex;align-items:flex-start;justify-content:center;padding-top:4px;font-size:.75rem;color:#6b7280;border-bottom:1px solid #f1f5f9}.week-day-column{position:relative;border-right:1px solid #e5e7eb}.hour-slot{height:60px;border-bottom:1px solid #f1f5f9}.time-slots-container{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}.time-slots-container>*{pointer-events:auto}.week-time-slot{position:absolute;left:4px;right:4px;background:#f8fafc;border:1px solid #e5e7eb;border-left:3px solid;border-radius:4px;padding:4px 6px;font-size:.75rem;pointer-events:all;cursor:pointer;transition:all .2s;min-height:30px;display:flex;justify-content:space-between;align-items:flex-start;overflow:hidden;box-sizing:border-box;box-shadow:0 1px 3px #0000001a}.week-time-slot:hover{background:#f1f5f9;box-shadow:0 2px 4px #0000001a}.week-time-slot .time-slot-content{flex:1;min-width:0;margin-right:4px}.week-time-slot .time-slot-actions{display:flex;gap:2px;opacity:0;transition:opacity .2s;flex-shrink:0}.week-time-slot .time-slot-title{font-weight:600;color:#1f2937;margin-bottom:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}.week-time-slot .time-slot-subtitle{font-size:.6875rem;color:#6b7280;margin-bottom:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}.week-time-slot .time-slot-time{font-size:.6875rem;color:#4b5563;font-weight:500;line-height:1.2}.time-slot-room{font-size:11px;color:#6b7280;margin-top:2px;display:flex;align-items:center;gap:4px}.time-slot-room:before{content:"📍";font-size:10px}.day-view{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;overflow:hidden}.day-header{display:flex;justify-content:space-between;align-items:center;padding:24px;border-bottom:1px solid #e5e7eb;background:#f8fafc}.day-info{flex:1}.day-title{margin:0;font-size:1.5rem;font-weight:600;color:#1f2937}.day-year{font-size:.875rem;color:#6b7280;margin-top:4px}.add-day-appointment{display:flex;align-items:center;gap:8px;padding:8px 16px!important;background:#f85c27;color:#fff;border:none;border-radius:8px!important;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;background:#fff}.action-button.edit:hover{background:#f85c27!important;color:#fff!important;border-color:#f85c27!important;transform:scale(1.05)!important}.day-view .add-day-appointment:hover{background:#f85c27!important;color:#fff!important;border-color:#f85c27!important;transform:translateY(-2px);box-shadow:0 6px 12px #f7903b66;scale:1.02}.day-grid{display:grid;grid-template-columns:80px 1fr;max-height:600px;overflow-y:auto}.schedule-column{position:relative;border-left:1px solid #e5e7eb}.day-time-slot{position:absolute;left:8px;right:8px;background:#f8fafc;border:1px solid #e5e7eb;border-left:4px solid;border-radius:6px;padding:8px 12px;font-size:.875rem;cursor:pointer;transition:all .2s;min-height:40px;display:flex;justify-content:space-between;align-items:flex-start;overflow:hidden;box-sizing:border-box;box-shadow:0 2px 4px #0000001a}.day-time-slot:hover{background:#f1f5f9;box-shadow:0 2px 8px #0000001a}.day-time-slot .time-slot-content{flex:1;min-width:0;margin-right:8px}.day-time-slot .time-slot-actions{display:flex;gap:4px;opacity:0;transition:opacity .2s;flex-shrink:0}.day-time-slot:hover .time-slot-actions{opacity:1}.time-slot-description{font-size:.75rem;color:#6b7280;margin-top:4px;line-height:1.3}.empty-day{display:flex;align-items:center;justify-content:center;height:400px}.empty-message{text-align:center;color:#6b7280}.empty-message p{margin:0 0 16px;font-size:1.125rem}.add-first-appointment{display:flex;align-items:center;gap:8px;padding:12px 20px!important;background:#f85c27;color:#fff;border:none;border-radius:8px!important;font-weight:500;cursor:pointer;transition:all .2s ease}.day-view .add-first-appointment:hover{background:#ea580c!important;color:#fff!important;transform:translateY(-2px);box-shadow:0 6px 12px #f7903b66;scale:1.02}.day-time-slot .edit-button,.day-time-slot .delete-button{width:20px;height:20px;border-radius:4px;font-size:.75rem}.day-time-slot .edit-button:hover,.day-time-slot .delete-button:hover{transform:scale(1.05)}.delete-modal-content{background:#fff;border-radius:20px;box-shadow:0 25px 50px -12px #00000040,0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;width:90%;max-width:500px;max-height:90vh;overflow:hidden;position:relative;border:1px solid rgba(0,0,0,.05)}.delete-modal-header{display:flex;align-items:center;gap:16px;padding:28px 28px 20px;border-bottom:1px solid #f1f3f4;background:linear-gradient(135deg,#fef7f7,#fef2f2)}.delete-modal-icon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;background:linear-gradient(135deg,#fee2e2,#fecaca);border-radius:16px;border:2px solid #f87171;box-shadow:0 4px 8px #f8717133}.delete-modal-header h2{margin:0;font-size:1.375rem;font-weight:700;color:#1f2937;flex:1;letter-spacing:-.025em}.delete-modal-body{padding:28px;background:#fafbfc}.class-details{margin-bottom:24px;padding:20px;background:#fff;border-radius:12px;border:1px solid #e5e7eb;box-shadow:0 1px 3px #0000001a}.class-details h3{margin:0 0 16px;font-size:1.25rem;font-weight:700;color:#1f2937;letter-spacing:-.025em}.class-details p{margin:0;line-height:1.7;color:#4b5563;font-size:.95rem}.recurring-info{display:flex;gap:16px;padding:20px;background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border:2px solid #0ea5e9;border-radius:12px;margin-top:20px;box-shadow:0 2px 4px #0ea5e91a}.recurring-icon{flex-shrink:0;margin-top:2px;color:#0ea5e9}.recurring-info p{margin:0;color:#0c4a6e;line-height:1.6;font-weight:500}.delete-modal-actions{display:flex;gap:16px;padding:20px 24px 24px;border-top:1px solid #f3f4f6;background:#fafbfc}.delete-modal-actions button{flex:1;padding:14px 20px;border:2px solid transparent;border-radius:10px;font-weight:600;cursor:pointer;transition:all .3s ease;font-size:.875rem;position:relative;overflow:hidden;box-shadow:0 2px 4px #0000001a}.delete-modal-actions button:focus{outline:none;box-shadow:0 0 0 2px #f85c27,0 0 0 4px #f7903b33}.delete-modal-actions button:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.cancel-button{background:#fff;color:#374151;border:2px solid #d1d5db;box-shadow:0 2px 4px #0000000d}.cancel-button:hover{background:#f85c27!important;border-color:#6b7280;color:#fff!important;border-radius:8px!important;padding:4px 10px!important;transform:translateY(-1px);box-shadow:0 4px 8px #0000001f}.cancel-button:active{transform:translateY(0);box-shadow:0 2px 4px #0000001a}.delete-one-button{background:linear-gradient(135deg,#f59e0b,#d97706)!important;color:#fff!important;border:2px solid #f59e0b!important;padding:2px 8px!important;border-radius:8px!important}.delete-one-button:hover{background:linear-gradient(135deg,#d97706,#b45309);border-color:#d97706;transform:translateY(-1px);box-shadow:0 6px 12px #f59e0b66}.delete-one-button:active{transform:translateY(0);box-shadow:0 2px 4px #f59e0b4d}.delete-all-button{background:linear-gradient(135deg,#ef4444c8,#dc2626)!important;color:#fff!important;border:2px solid #ef4444!important;padding:2px 8px!important;border-radius:8px!important}.delete-all-button:hover{background:linear-gradient(135deg,#dc2626,#b91c1c)!important;border-color:#dc2626!important;transform:translateY(-1px)!important;box-shadow:0 6px 12px #ef444466!important}.delete-all-button:active{transform:translateY(0);box-shadow:0 2px 4px #ef44444d}.checkbox-label{display:flex;align-items:center;gap:12px;cursor:pointer;padding:8px 0}.checkbox-label input[type=checkbox]{width:18px;height:18px;border:2px solid #d1d5db;border-radius:4px;background:#fff;cursor:pointer;position:relative;appearance:none;-webkit-appearance:none;-moz-appearance:none;transition:all .2s ease}.checkbox-label input[type=checkbox]:checked:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:12px;font-weight:700}.checkbox-text{font-weight:500;color:#374151;-webkit-user-select:none;user-select:none}.calendar-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;text-align:center}.loading-spinner{width:40px;height:40px;border:4px solid #f3f4f6;border-top:4px solid #f85C27;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}.calendar-error{background-color:#fef2f2;border:1px solid #fecaca;border-radius:.5rem;padding:1rem;margin-bottom:1rem;color:#dc2626;text-align:center}.calendar-error p{margin:0 0 1rem}.retry-button{background-color:#dc2626;color:#fff;border:none;border-radius:.375rem;padding:.5rem 1rem;font-size:.875rem;cursor:pointer;transition:background-color .2s}.retry-button:hover{background-color:#b91c1c}.retry-button:focus{outline:2px solid #dc2626;outline-offset:2px}.calendar-app{min-height:100vh;background-color:#f8fafc}.app-header{background:#f85c27;color:#fff;padding:2rem;text-align:center}.app-header h1{margin:0 0 .5rem;font-size:2rem;font-weight:700}.app-header p{margin:0;font-size:1.125rem;opacity:.9}.app-layout{display:grid;grid-template-columns:1fr 400px;gap:2rem;padding:2rem;max-width:1600px;margin:0 auto}.calendar-section{min-height:600px}.management-section{position:sticky;top:2rem;height:fit-content}.app-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background-color:#f8fafc}.app-loading p{margin-top:1rem;font-size:1.125rem;color:#6b7280}.app-error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background-color:#f8fafc;text-align:center;padding:2rem}.app-error h2{color:#dc2626;margin-bottom:1rem}.app-error p{color:#6b7280;margin-bottom:1.5rem;max-width:500px}.error-help{margin-top:2rem;padding:1rem;background-color:#f3f4f6;border-radius:.5rem;max-width:500px}.error-help p{margin:0 0 .5rem;font-size:.875rem;color:#374151}.error-help code{background-color:#1f2937;color:#f9fafb;padding:.5rem;border-radius:.25rem;font-family:Monaco,Menlo,monospace;font-size:.875rem;display:block}.loading-spinner-small{width:16px;height:16px;border:2px solid #f3f4f6;border-top:2px solid #f85C27;border-radius:50%;animation:spin 1s linear infinite;flex-shrink:0}.search-container,.search-box{display:flex;align-items:center;gap:12px;position:relative;margin-bottom:16px;padding:12px 16px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 1px 3px #0000001a;transition:all .2s ease}.search-container:focus-within,.search-box:focus-within{border-color:#f85c27}.search-container svg,.search-box svg{color:#6b7280;flex-shrink:0}.search-container input,.search-box input,.search-input{flex:1;border:none;outline:none;background:transparent;font-size:.9rem;color:#1f2937;font-family:inherit}.search-container input::placeholder,.search-box input::placeholder,.search-input::placeholder{color:#9ca3af}.preview-added{background:#d1fae5!important;border-left:6px solid #22c55e!important;color:#166534!important;font-weight:700!important;box-shadow:0 2px 8px #22c55e55!important;z-index:10!important}.preview-removed{background:#fee2e2!important;border-left:6px solid #ef4444!important;color:#b91c1c!important;font-weight:700!important;box-shadow:0 2px 8px #ef444455!important;z-index:10!important}@media (max-width: 768px){.calendar-container{padding:10px;max-width:100%}.calendar-header-section{flex-direction:column;align-items:stretch;gap:16px;margin-bottom:20px}.calendar-title h1{font-size:1.5rem}.calendar-navigation{justify-content:center;gap:12px}.nav-button{width:44px;height:44px;min-width:44px}.current-month{font-size:1.1rem;min-width:auto}.week-day-header{padding:12px 4px;font-size:.75rem}.calendar-day{min-height:80px;padding:6px}.day-number{font-size:.8rem}.time-slot{padding:4px 6px;margin-bottom:2px}.time-slot-title{font-size:.7rem}.time-slot-subtitle{font-size:.65rem}.time-slot-time{font-size:.6rem}.add-slot-button{width:24px;height:24px;top:4px;right:4px;opacity:1}.modal-overlay{padding:10px}.modal-content{max-width:100%;max-height:95vh}.modal-header{padding:20px 20px 0}.modal-header h2{font-size:1.25rem}.modal-form{padding:0 20px 20px}.form-row{grid-template-columns:1fr;gap:12px}.form-actions{flex-direction:column;gap:8px}.cancel-button,.save-button{width:100%;padding:14px 24px;font-size:16px}.view-selector{display:flex;gap:4px;margin-bottom:20px}.view-button{flex:1;padding:10px 8px;font-size:.8rem}}@media (max-width: 480px){.calendar-container{padding:8px}.calendar-title h1{font-size:1.3rem}.calendar-day{min-height:70px;padding:4px}.day-number{font-size:.75rem}.time-slot{padding:3px 4px;margin-bottom:1px}.time-slot-title{font-size:.65rem}.time-slot-subtitle{font-size:.6rem}.time-slot-time{font-size:.55rem}.nav-button{width:40px;height:40px}.current-month{font-size:1rem}.modal-header{padding:16px 16px 0}.modal-form{padding:0 16px 16px}}@media (hover: none) and (pointer: coarse){.calendar-day:hover .add-slot-button,.time-slot:hover .time-slot-actions,.time-slot-actions{opacity:1}.nav-button:active{transform:scale(.95)}.time-slot:active{transform:scale(.98)}.week-day-header:hover .add-day-slot-button,.week-time-slot:hover .time-slot-actions,.week-time-slot .time-slot-actions{opacity:1}.week-time-slot:active{transform:scale(.98)}.day-time-slot:hover .time-slot-actions,.day-time-slot .time-slot-actions{opacity:1}.day-time-slot:active{transform:scale(.98)}}@media (max-width: 768px){.week-view{overflow-x:auto;border-radius:8px}.week-header{grid-template-columns:60px repeat(7,120px);min-width:900px}.week-grid{grid-template-columns:60px repeat(7,120px);min-width:900px;max-height:500px}.week-day-header{padding:12px 6px}.day-name{font-size:.75rem}.day-date{font-size:1rem}.add-day-slot-button{width:20px;height:20px;top:6px;right:6px;opacity:1}.time-slot-hour{height:50px;font-size:.7rem;padding-top:2px}.hour-slot{height:50px}.week-time-slot{left:2px;right:2px;padding:3px 4px;font-size:.7rem;min-height:25px}.week-time-slot .time-slot-title{font-size:.7rem}.week-time-slot .time-slot-subtitle,.week-time-slot .time-slot-time{font-size:.65rem}.time-slot-room{font-size:10px}}@media (max-width: 480px){.week-header{grid-template-columns:50px repeat(7,100px);min-width:750px}.week-grid{grid-template-columns:50px repeat(7,100px);min-width:750px;max-height:400px}.week-day-header{padding:10px 4px}.day-name{font-size:.7rem}.day-date{font-size:.9rem}.add-day-slot-button{width:18px;height:18px;top:4px;right:4px}.time-slot-hour{height:45px;font-size:.65rem}.hour-slot{height:45px}.week-time-slot{padding:2px 3px;font-size:.65rem;min-height:22px}.week-time-slot .time-slot-title{font-size:.65rem}.week-time-slot .time-slot-subtitle,.week-time-slot .time-slot-time{font-size:.6rem}.time-slot-room{font-size:9px}}@media (max-width: 768px){.day-view{border-radius:8px}.day-header{padding:16px 20px;flex-direction:column;align-items:stretch;gap:12px}.day-info{text-align:center}.day-title{font-size:1.5rem}.day-year{font-size:1rem}.add-day-appointment{width:100%;padding:12px 16px;font-size:14px}.day-grid{max-height:500px}.schedule-column{min-width:80px}.day-time-slot{padding:12px 16px;margin:8px 12px;border-radius:8px}.day-time-slot .time-slot-content{gap:6px}.day-time-slot .time-slot-title{font-size:1rem}.day-time-slot .time-slot-subtitle,.day-time-slot .time-slot-time{font-size:.875rem}.time-slot-description{font-size:.875rem;margin-top:8px}.empty-day{padding:40px 20px}.empty-message p{font-size:1rem}.add-first-appointment{padding:12px 20px;font-size:14px}}@media (max-width: 480px){.day-header{padding:12px 16px}.day-title{font-size:1.25rem}.day-year{font-size:.9rem}.add-day-appointment{padding:10px 14px;font-size:13px}.day-grid{max-height:400px}.schedule-column{min-width:70px}.day-time-slot{padding:10px 12px;margin:6px 8px}.day-time-slot .time-slot-title{font-size:.9rem}.day-time-slot .time-slot-subtitle,.day-time-slot .time-slot-time{font-size:.8rem}.time-slot-description{font-size:.8rem;margin-top:6px}.empty-day{padding:32px 16px}.empty-message p{font-size:.9rem}.add-first-appointment{padding:10px 16px;font-size:13px}}.week-view{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;overflow:hidden}.week-header{display:grid;grid-template-columns:60px repeat(7,1fr);background:#f8fafc;border-bottom:1px solid #e5e7eb}.time-column-header{padding:16px 8px;text-align:center;font-weight:600;font-size:14px;color:#6b7280}.week-day-header{padding:16px 8px;text-align:center;font-weight:600;font-size:14px;color:#6b7280;border-left:1px solid #e5e7eb;cursor:pointer;transition:all .2s;position:relative}.week-day-header:hover{background:#f1f5f9}.week-day-header.today{background:#fef3c7;color:#f85c27}.week-day-header.selected{background:#dbeafe;color:#2563eb}.day-name{display:block;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}.day-date{display:block;font-size:16px;font-weight:600}.week-day-header.today .day-date{color:#f85c27}.add-day-slot-button{position:absolute;top:8px;right:8px;width:20px;height:20px;border:1px solid #d1d5db;border-radius:4px!important;background:#fff;color:#6b7280;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;transition:all .2s;font-size:12px}.week-day-header:hover .add-day-slot-button{opacity:1}.add-day-slot-button:hover{background:#f85c27;border-color:#f85c27;color:#fff;transform:scale(1.15);box-shadow:0 3px 6px #f7903b66;opacity:1}.week-grid{display:grid;grid-template-columns:60px repeat(7,1fr);min-height:600px}.time-column{background:#f8fafc;border-right:1px solid #e5e7eb}.time-slot-hour{height:60px;padding:8px;text-align:center;font-size:12px;color:#6b7280;font-weight:500;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:center}.week-day-column{border-right:1px solid #e5e7eb}.hour-slot{height:60px;border-bottom:1px solid #e5e7eb;position:relative}.time-slots-container{position:absolute;top:0;left:0;right:0;bottom:0;padding:2px;display:flex;flex-direction:column;gap:2px;overflow:hidden}.time-slots-container>*{flex-shrink:0}.week-time-slot{position:absolute!important;background:#f8fafc;border:1px solid #e5e7eb;border-left:3px solid;border-radius:4px;padding:4px 6px;font-size:11px;display:flex;justify-content:space-between;align-items:flex-start;transition:all .2s;position:relative;cursor:pointer;min-height:20px}.week-time-slot:hover{background:#f1f5f9;border-color:#cbd5e1;transform:scale(1.02);z-index:10}.week-time-slot:hover .time-slot-actions{opacity:1}.week-time-slot .time-slot-content{flex:1;min-width:0;overflow:hidden}.week-time-slot .time-slot-actions{display:flex;gap:2px;opacity:0;transition:opacity .2s;margin-left:4px;position:relative;z-index:10;pointer-events:auto}.week-time-slot .time-slot-title{font-weight:500;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2;font-size:11px}.week-time-slot .time-slot-subtitle{font-size:10px;color:#6b7280;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.week-time-slot .time-slot-time{color:#6b7280;font-size:10px;margin-top:1px}.preview-added{background-color:#e6ffed!important;border-left:4px solid #34d058!important;color:#24292e!important;font-weight:700!important;box-shadow:0 2px 8px #22c55e55!important;z-index:10!important}.preview-removed{background-color:#ffeef0!important;border-left:4px solid #d73a49!important;color:#24292e!important;font-weight:700!important;box-shadow:0 2px 8px #ef444455!important;z-index:10!important}@media (max-width: 768px){.week-header,.week-grid{grid-template-columns:50px repeat(7,1fr)}.time-column-header,.week-day-header{padding:12px 4px;font-size:12px}.day-name{font-size:10px}.day-date{font-size:14px}.time-slot-hour{height:50px;font-size:11px}.hour-slot{height:50px}.week-time-slot{font-size:10px;padding:3px 4px}.week-time-slot .time-slot-title{font-size:10px}.week-time-slot .time-slot-subtitle,.week-time-slot .time-slot-time{font-size:9px}}.form-group label svg{vertical-align:middle;margin-right:6px;position:relative;top:-2px;display:inline-block}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;overflow:hidden;overscroll-behavior:contain}.modal-overlay:before{content:"";position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}body:has(.modal-overlay){overflow:hidden}.modal-content{background:#fff;border-radius:12px;box-shadow:0 25px 50px -12px #00000040;width:100%;max-width:600px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:24px 24px 0;margin-bottom:20px}.modal-header h2{font-size:1.5rem;font-weight:600;color:#1f2937;margin:0}.close-button{background:none;border:none;color:#6b7280;cursor:pointer;padding:8px;border-radius:6px;transition:all .2s;display:flex;align-items:center;justify-content:center}.close-button:hover{background:#f3f4f6;color:#374151}.modal-form{padding:0 24px 24px;flex:1;overflow:hidden;display:flex;flex-direction:column;min-height:0}.form-group input,.form-group textarea{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;transition:border-color .2s,box-shadow .2s}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#f85c27;box-shadow:0 0 0 3px #f7903b1a}.form-group input.error,.form-group textarea.error{border-color:#dc2626}.form-group textarea{resize:vertical;min-height:80px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-row .form-group{margin-bottom:10px}.checkbox-label{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:500;color:#374151;cursor:pointer;margin:18px 0 10px}.checkbox-label input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:36px;height:36px;border-radius:10px;border:none;background:#e0e7ff;display:flex;align-items:center;justify-content:center;margin-right:0;position:relative;transition:background .2s,box-shadow .2s;box-shadow:0 2px 8px #3b82f614}.checkbox-label input[type=checkbox]:checked{background:#f85c27}.checkbox-label input[type=checkbox]:checked:after{content:"";display:block;position:absolute;left:10px;top:8px;width:12px;height:7px;border-left:3px solid #fff;border-bottom:3px solid #fff;transform:rotate(-45deg)}.form-hint{color:#6b7280;font-size:12px;margin-top:4px}.error-message{background:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:14px}.modal-form select{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;background:#fff;cursor:pointer;transition:border-color .2s,box-shadow .2s}.modal-form select:focus{outline:none;border-color:#f85c27;box-shadow:0 0 0 3px #f7903b1a}.modal-form select.error{border-color:#dc2626}.modal-form select option{padding:8px}.color-picker{display:flex;gap:8px;flex-wrap:wrap}.color-option{width:32px;height:32px;border-radius:6px;border:2px solid transparent;cursor:pointer;transition:all .2s}.color-option:hover{transform:scale(1.1)}.color-option.selected{border-color:#1f2937;box-shadow:0 2px 8px #0003}.form-actions{display:flex;justify-content:flex-end;gap:12px;padding:20px 24px;border-top:1px solid #e5e7eb;margin-top:0;flex-shrink:0;background:#fff}.cancel-button,.save-button{padding:10px 20px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.cancel-button{background:#f3f4f6;color:#6b7280;border:1px solid #d1d5db}.cancel-button:hover{background:#e5e7eb;color:#374151}.save-button{background:#f85c27;color:#fff;border:none}.save-button:hover{background:#f85c27!important;border-color:#6b7280;color:#fff!important;border-radius:8px!important;padding:4px 10px!important;transform:translateY(-1px);box-shadow:0 4px 8px #0000001f}.modal-overlay .modal-content .modal-tabs{display:flex;gap:1px;background:#e5e7eb;border-radius:8px;padding:4px;margin-bottom:20px}.modal-overlay .modal-content .modal-tabs .tab-button{flex:1;padding:10px 16px;background:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;color:#6b7280;transition:all .2s;text-align:center;display:flex;align-items:center;justify-content:center;gap:6px}.modal-overlay .modal-content .modal-tabs .tab-button:hover{background:#f9fafb;color:#374151}.modal-overlay .modal-content .modal-tabs .tab-button.active{background:#f85c27;color:#fff;box-shadow:0 2px 4px #f7903b33}.modal-overlay .modal-content .modal-tabs .tab-button.active:hover{background:#ea580c}.modal-overlay .modal-content .modal-tabs .tab-button svg{width:16px;height:16px}.tab-content{padding:0 24px;margin-bottom:20px;flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;min-height:0}.tab-content::-webkit-scrollbar{width:8px}.tab-content::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.tab-content::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.tab-content::-webkit-scrollbar-thumb:hover{background:#94a3b8}.students-tab{padding:0;flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;min-height:0}.students-management{display:flex;flex-direction:column;gap:20px;flex:1;overflow-y:auto;overflow-x:hidden;min-height:0;padding:0 24px}.students-management::-webkit-scrollbar{width:8px}.students-management::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.students-management::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.students-management::-webkit-scrollbar-thumb:hover{background:#94a3b8}.enrolled-students,.available-students{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:20px;display:flex;flex-direction:column;min-height:0;flex-shrink:0}.enrolled-students{border-color:#dcfce7;background:#f0fdf4}.available-students{border-color:#e5e7eb;background:#f9fafb}.enrolled-students h4,.available-students h4{font-size:1rem;font-weight:600;color:#1f2937;margin:0 0 16px;display:flex;align-items:center;gap:8px}.enrolled-students h4:before{content:"✓";display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;background:#16a34a;color:#fff;border-radius:50%;font-size:12px;font-weight:700}.available-students h4:before{content:"+";display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;background:#f85c27;color:#fff;border-radius:50%;font-size:14px;font-weight:700}.search-container{position:relative;display:flex;align-items:center;margin-bottom:12px;flex-shrink:0}.search-container svg{position:absolute;left:12px;color:#9ca3af;pointer-events:none}.search-container .search-input{width:100%;padding:10px 12px 10px 40px!important;border-radius:6px;font-size:14px;transition:border-color .2s,box-shadow .2s}.search-container .search-input:focus{outline:none;border-color:#f85c27;box-shadow:0 0 0 3px #f85c271a}.search-container .search-input::placeholder{color:#9ca3af}.timeslot-modal-overlay .timeslot-modal-content .students-tab .student-list{display:flex!important;flex-direction:column!important;gap:16px!important;max-height:340px!important;overflow-y:auto!important;overflow-x:hidden!important;border:none!important;background:transparent!important;padding:4px 0!important;scroll-behavior:smooth!important;flex:1!important;position:relative!important;overscroll-behavior:contain!important;pointer-events:auto!important;touch-action:pan-y!important;z-index:10001!important}.timeslot-modal-overlay .timeslot-modal-content .students-tab .student-list::-webkit-scrollbar{width:6px!important}.timeslot-modal-overlay .timeslot-modal-content .students-tab .student-list::-webkit-scrollbar-track{background:#f1f5f9!important;border-radius:3px!important}.timeslot-modal-overlay .timeslot-modal-content .students-tab .student-list::-webkit-scrollbar-thumb{background:#cbd5e1!important;border-radius:3px!important}.timeslot-modal-overlay .timeslot-modal-content .students-tab .student-list::-webkit-scrollbar-thumb:hover{background:#94a3b8!important}.student-item{display:flex;justify-content:space-between;align-items:stretch;padding:12px 16px;border-bottom:1px solid #e5e7eb;transition:background-color .2s;position:relative}.student-item:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#e5e7eb;transition:background-color .2s}.student-item:hover{background:#f8fafc}.student-item:hover:before{background:#f85c27}.student-item.enrolled{background:#f0fdf4}.student-item.enrolled:before{background:#16a34a}.student-item.enrolled:hover{background:#dcfce7}.student-item.available{background:#fff}.student-item.available:hover{background:#f8fafc}.student-info{flex-direction:column}.student-name{font-weight:500;color:#1f2937;font-size:14px}.student-email{color:#6b7280;font-size:12px}.modal-overlay .modal-content .add-student-btn,.modal-overlay .modal-content .remove-student-btn{padding:4px 8px;border:none;border-radius:4px;font-size:12px;cursor:pointer;transition:all .2s;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:4px;min-width:auto;box-shadow:none}.modal-overlay .modal-content .add-student-btn:before,.modal-overlay .modal-content .remove-student-btn:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .3s}.modal-overlay .modal-content .add-student-btn:hover:before,.modal-overlay .modal-content .remove-student-btn:hover:before{left:100%}.modal-overlay .modal-content .add-student-btn{background:#f85c27!important;color:#fff!important;border-color:transparent!important}.modal-overlay .modal-content .add-student-btn:hover{background:#ea580c!important;transform:none!important;box-shadow:none!important}.modal-overlay .modal-content .remove-student-btn{background:#dc2626!important;color:#fff!important;border-color:transparent!important}.modal-overlay .modal-content .remove-student-btn:hover{background:#b91c1c!important;transform:none!important;box-shadow:none!important}.empty-text{text-align:center;padding:20px;color:#6b7280;font-style:italic}.students-tab .loading-state{text-align:center;padding:40px 20px}.students-tab .loading-spinner{display:inline-block;width:32px;height:32px;border:3px solid #e5e7eb;border-top:3px solid #f85C27;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:16px}.students-tab .loading-state p{color:#6b7280;font-size:14px;margin:0}@media (max-width: 768px){.students-management{flex-direction:column}.enrolled-students,.available-students{margin-bottom:16px}.student-item{flex-direction:column;align-items:flex-start;gap:8px}.student-name{font-size:13px}.student-email{font-size:11px}.modal-overlay .modal-content .add-student-btn,.modal-overlay .modal-content .remove-student-btn{align-self:flex-end;padding:6px 10px;font-size:11px}.management-header{flex-direction:column;align-items:flex-start}.header-actions{width:100%;justify-content:flex-start}.search-container,.search-box{max-width:none}.add-btn{flex-shrink:0}}.delete-modal-content{background:#fff;border-radius:12px;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 25px 50px -12px #00000040}.delete-modal-header{display:flex;align-items:center;justify-content:center;padding:32px 24px 16px;border-bottom:1px solid #e5e7eb;text-align:center}.delete-modal-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:#fef2f2;color:#ef4444;border-radius:50%;margin-bottom:16px}.delete-modal-header h2{color:#1f2937;font-size:20px;font-weight:600;margin:0}.delete-modal-body{padding:24px}.class-details{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:16px;margin-bottom:20px}.class-details h3{color:#1f2937;font-size:16px;font-weight:600;margin:0 0 8px}.class-details p{color:#6b7280;font-size:14px;margin:0;line-height:1.5}.recurring-info{display:flex;align-items:center;gap:8px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;padding:12px;margin-bottom:20px}.recurring-icon{color:#f85c27;width:20px;height:20px}.recurring-info p{color:#1e40af;font-size:14px;font-weight:500;margin:0}.delete-modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px;padding-top:20px;border-top:1px solid #e5e7eb}.delete-modal-actions button{display:flex;align-items:center;gap:6px;padding:10px 16px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;position:relative;overflow:hidden}.delete-modal-actions button:focus{outline:none;box-shadow:0 0 0 3px #3b82f61a}.delete-modal-actions button:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .3s}.delete-modal-actions button:hover:before{left:100%}.cancel-button{background:#f3f4f6;color:#374151;border:1px solid #d1d5db}.cancel-button:hover{background:#e5e7eb;border-color:#9ca3af}.cancel-button:active{transform:translateY(1px)}.delete-one-button{background:#ef4444;color:#fff;border:none}.delete-one-button:hover{background:#dc2626;transform:translateY(-1px);box-shadow:0 4px 6px -1px #ef44444d}.delete-one-button:active{transform:translateY(0)}.delete-all-button{background:#dc2626;color:#fff;border:none}.delete-all-button:hover{background:#b91c1c;transform:translateY(-1px);box-shadow:0 4px 6px -1px #dc26264d}.delete-all-button:active{transform:translateY(0)}.checkbox-label{display:flex;align-items:center;gap:8px;margin-bottom:16px;cursor:pointer}.checkbox-label input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:18px;height:18px;border:2px solid #d1d5db;border-radius:4px;background:#fff;cursor:pointer;position:relative;transition:all .2s;flex-shrink:0}.checkbox-label input[type=checkbox]:checked{background:#f85c27;border-color:#f85c27}.checkbox-label input[type=checkbox]:checked:after{content:"";position:absolute;left:5px;top:2px;width:6px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.checkbox-label input[type=checkbox]:hover{border-color:#9ca3af}.checkbox-label input[type=checkbox]:checked:hover{background:#ea580c;border-color:#ea580c}.checkbox-text{color:#374151;font-size:14px;font-weight:500;line-height:1.4}@media (max-width: 768px){.delete-modal-content{margin:16px}.delete-modal-header{padding:24px 20px 12px}.delete-modal-body{padding:20px}.delete-modal-actions{flex-direction:column}.cancel-button,.delete-one-button,.delete-all-button{width:100%;justify-content:center}}.class-console{margin-top:40px;padding:24px;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a}.class-console-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;padding-bottom:16px;border-bottom:2px solid #e5e7eb}.class-console .header-title h2{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:1.5rem;font-weight:600;color:#1f2937}.class-console .header-title p{margin:0;color:#6b7280;font-size:.9rem}.class-console .header-actions{display:flex;gap:12px}.class-console .filter-toggle{display:flex!important;align-items:center!important;gap:6px!important;background:#f3f4f6!important;color:#374151!important;border:1px solid #d1d5db!important;padding:8px 12px!important;border-radius:8px!important;font-size:14px!important;font-weight:500!important;cursor:pointer!important;transition:all .2s!important;box-sizing:border-box!important}.class-console .filter-toggle:hover{background:#e5e7eb!important;border-color:#9ca3af!important}.class-console .filter-toggle.active{background:#f85c27!important;color:#fff!important;border-color:#f85c27!important}.class-console-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;gap:16px}.class-console-loading .loading-spinner{width:40px;height:40px;border:4px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin 1s linear infinite}.class-console-error{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;margin-bottom:20px;background-color:#fee2e2;border:1px solid #fecaca;border-radius:6px;color:#991b1b}.class-console-error p{margin:0}.class-console-error .close-error{background:none;border:none;cursor:pointer;color:#991b1b;padding:4px;display:flex;align-items:center;justify-content:center}.class-console-error .close-error:hover{opacity:.7}.class-console .filters-panel{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px;margin-bottom:24px;box-shadow:0 1px 3px #0000001a}.class-console .filters-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:16px}.class-console .filter-group{display:flex;flex-direction:column;gap:8px}.class-console .filter-group label{font-weight:500;color:#374151;font-size:14px}.class-console .filter-group input[type=date],.class-console .filter-group select{padding:8px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background-color:#fff;transition:all .2s}.class-console .filter-group input[type=date]:focus,.class-console .filter-group select:focus{outline:none;border-color:#f85c27;box-shadow:0 0 0 3px #f7903b1a}.class-console .filter-group select{cursor:pointer}.class-console .filters-actions{display:flex;gap:12px;justify-content:flex-end}.class-console .submit-filters,.class-console .clear-filters{display:flex!important;align-items:center!important;gap:6px!important;padding:8px 12px!important;border-radius:8px!important;font-size:14px!important;font-weight:500!important;cursor:pointer!important;transition:all .2s!important;border:none!important;box-sizing:border-box!important;-webkit-border-radius:8px!important;-moz-border-radius:8px!important}.class-console .submit-filters{background:#f85c27!important;color:#fff!important}.class-console .submit-filters:hover{background:#fff!important;color:#f85c27!important;border:1px solid #f85C27!important;transform:translateY(-1px);box-shadow:0 4px 6px -1px #f85c274d}.class-console .submit-filters:active{transform:translateY(0);box-shadow:0 2px 4px -1px #f85c2733}.class-console .clear-filters{background:#fff!important;color:#1f2937!important;border:1px solid #d1d5db!important}.class-console .clear-filters:hover{background:#f3f4f6!important;color:#1f2937!important;border-color:#9ca3af!important}.class-console .class-console-table-container{overflow-x:auto}.class-console .class-console-table{width:100%;border-collapse:collapse;background-color:#fff}.class-console .class-console-table thead{background-color:#f8fafc}.class-console .class-console-table th{padding:12px 24px;text-align:left;font-weight:600;font-size:12px;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid #e5e7eb}.class-console .class-console-table td{padding:16px 24px;border-bottom:1px solid #e5e7eb;font-size:14px;color:#1f2937}.class-console .class-console-table tbody tr:hover{background-color:#f9fafb}.class-console .class-console-table tbody tr:last-child td{border-bottom:none}.class-console .date-cell,.class-console .time-cell{display:flex;align-items:center;gap:6px}.class-console .date-cell svg,.class-console .time-cell svg{color:#6b7280;flex-shrink:0}.class-console .subject-badge{display:inline-block;padding:4px 12px;border-radius:12px;color:#fff;font-size:.85rem;font-weight:500}.class-console .action-buttons{display:flex;gap:8px}.class-console .edit-btn,.class-console .delete-btn{display:flex!important;align-items:center!important;justify-content:center!important;width:32px!important;height:32px!important;border:none!important;border-radius:8px!important;cursor:pointer!important;transition:all .2s!important;box-sizing:border-box!important;-webkit-border-radius:8px!important;-moz-border-radius:8px!important}.class-console .edit-btn{background-color:#f85c27!important;color:#fff!important}.class-console .edit-btn:hover{background-color:#fff!important;color:#f85c27!important;border:1px solid #f85C27!important;transform:translateY(-2px) scale(1.05);box-shadow:0 2px 4px #f85c274d}.class-console .edit-btn:active{transform:translateY(0) scale(1);box-shadow:0 1px 2px #f85c2733}.class-console .delete-btn{background-color:#dc2626!important;color:#fff!important}.class-console .delete-btn:hover{background-color:#fff!important;color:#dc2626!important;border:1px solid #dc2626!important;transform:translateY(-2px) scale(1.05);box-shadow:0 2px 4px #dc26264d}.class-console .delete-btn:active{transform:translateY(0) scale(1);box-shadow:0 1px 2px #dc262633}.class-console .records-section{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0000001a}.class-console .section-header{padding:20px 24px;border-bottom:1px solid #e5e7eb;background:#f8fafc}.class-console .section-header h3{color:#1f2937;font-size:18px;font-weight:600;margin:0}.class-console .empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center;color:#6b7280}.class-console .empty-state svg{margin-bottom:16px;color:#9ca3af}.class-console .empty-state p{margin:0;font-size:1rem;max-width:500px}@media (max-width: 768px){.class-console{padding:16px}.class-console .filter-row{flex-direction:column}.class-console .filter-group{width:100%;min-width:unset}.class-console .class-console-table-container{overflow-x:scroll}.class-console .class-console-table{min-width:800px}.class-console .action-buttons{flex-direction:column}}.attendance-console{max-width:1200px;margin:0 auto;padding:20px}.attendance-console .stat-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;margin-bottom:12px}.attendance-console .stat-icon.total{background:#f3e8ff;color:#7c3aed}.attendance-console .stat-icon.present{background:#f0fdf4;color:#16a34a}.attendance-console .stat-icon.absent{background:#fef2f2;color:#dc2626}.attendance-console .stat-icon.justified{background:#fefce8;color:#ca8a04}.filter-group input{width:100%}.records-section{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0000001a}.records-table th{background:#f9fafb;padding:12px 16px;text-align:left;font-weight:600;color:#374151;font-size:14px;border-bottom:1px solid #e5e7eb}.records-table td{padding:12px 16px;border-bottom:1px solid #e5e7eb;font-size:14px}.status-badge.present{background:#f0fdf4;color:#16a34a}.status-badge.absent{background:#fef2f2;color:#dc2626}.status-badge.justified_absence{background:#fefce8;color:#ca8a04}.status-icon.present{color:#16a34a}.status-icon.absent{color:#dc2626}.status-icon.unknown{color:#6b7280}.notes-cell{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6b7280;font-size:12px}@media (max-width: 768px){.attendance-console{padding:16px}.console-header{flex-direction:column;align-items:flex-start}.header-actions{width:100%;justify-content:space-between}.stats-overview{grid-template-columns:repeat(2,1fr);gap:16px}.filters-grid{grid-template-columns:1fr}.records-table{font-size:12px}.records-table th,.records-table td{padding:8px 12px}}.search-container{display:flex;align-items:center;background:#f8fafc;border:1.5px solid #e5e7eb;border-radius:16px;padding:4px 16px 4px 10px;margin-bottom:14px;max-width:420px;width:100%;box-shadow:0 2px 8px #3b82f60a}.search-container svg{color:#94a3b8;width:24px;height:24px;flex-shrink:0;margin-right:8px;left:10px}.search-input{border:none;background:transparent;outline:none;font-size:1.08rem;color:#64748b;width:100%;padding:8px 0;font-weight:500}.search-input::placeholder{color:#94a3b8;opacity:1;font-weight:400}.submit-filters{background:#f85c27;color:#fff;border:none;padding:8px 12px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer}.student-payment-timeline{max-width:1000px;margin:0 auto;padding:20px}.timeline-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:32px;padding-bottom:20px;border-bottom:2px solid #e5e7eb}.back-btn{display:flex;align-items:center;gap:8px;background:#f3f4f6;color:#374151;border:1px solid #d1d5db;padding:8px 16px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.back-btn:hover{background:#e5e7eb;border-color:#9ca3af}.student-info h2{color:#1f2937;font-size:24px;font-weight:600;margin:0 0 4px}.student-info p{color:#6b7280;font-size:14px;margin:0}.timeline-content{display:flex;flex-direction:column;gap:32px}.timeline-section{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0000001a;transition:all .2s}.timeline-section.payment-cycle{border-width:2px;box-shadow:0 2px 6px #0000001a}.timeline-section.payment-cycle.due{border-color:#f59e0b;background:linear-gradient(to right,#fff,#fef3c7 1%,#fff)}.timeline-section.payment-cycle.paid{border-color:#10b981;background:linear-gradient(to right,#fff,#d1fae5 1%,#fff)}.section-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:#f8fafc;border-bottom:1px solid #e5e7eb}.cycle-title-group{display:flex;align-items:center;gap:12px}.payment-status-badge{padding:4px 10px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.payment-status-badge.due{background:#fef3c7;color:#92400e;border:1px solid #f59e0b}.payment-status-badge.paid{background:#d1fae5;color:#065f46;border:1px solid #10b981}.recalculate-btn{display:flex;align-items:center;gap:8px;background:#3b82f6;color:#fff;border:none;padding:10px 20px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.recalculate-btn:hover:not(:disabled){background:#2563eb}.recalculate-btn:disabled{opacity:.5;cursor:not-allowed}.mark-paid-btn{display:flex;align-items:center;gap:6px;background:#10b981;color:#fff;border:none;padding:6px 12px;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap}.mark-paid-btn:hover:not(:disabled){background:#059669}.mark-paid-btn:disabled{opacity:.5;cursor:not-allowed}.payment-status-buttons{display:flex;align-items:center;gap:8px}.mark-due-btn{display:flex;align-items:center;gap:6px;background:#f59e0b;color:#fff;border:none;padding:6px 12px;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap}.mark-due-btn:hover:not(:disabled){background:#d97706}.mark-due-btn:disabled{opacity:.5;cursor:not-allowed}.section-header h3{color:#1f2937;font-size:16px;font-weight:600;margin:0}.section-badge{background:#eff6ff;color:#3b82f6;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:500}.timeline-items{padding:20px;position:relative}.timeline-item{position:relative;margin-bottom:16px}.timeline-item:last-child{margin-bottom:0}.cycle-separator{height:4px;background:linear-gradient(to right,#9ca3af,#6b7280,#9ca3af);margin:40px 0;border-radius:2px;width:100%;box-shadow:0 1px 3px #0000001a}.timeline-content-item{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px;transition:all .2s}.timeline-content-item:hover{box-shadow:0 2px 8px #0000001a;border-color:#d1d5db}.timeline-date{display:flex;align-items:center;gap:8px;color:#6b7280;font-size:12px;font-weight:500;margin-bottom:12px}.timeline-class-info{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.class-main-info h4{color:#1f2937;font-size:16px;font-weight:600;margin:0 0 8px}.class-details{display:flex;flex-wrap:wrap;gap:16px;margin-top:8px}.class-detail-item{display:flex;align-items:center;gap:6px;color:#6b7280;font-size:13px}.class-detail-item svg{width:14px;height:14px;opacity:.7}.timeline-status{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.status-indicator{padding:6px 12px;border-radius:12px;color:#fff;font-size:12px;font-weight:500;white-space:nowrap}.skip-actions{display:flex;gap:8px}.skip-btn{display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;border:none;transition:all .2s}.skip-btn.skip{background:#fbbf24;color:#fff}.skip-btn.skip:hover:not(:disabled){background:#f59e0b}.skip-btn.unskip{background:#10b981;color:#fff}.skip-btn.unskip:hover:not(:disabled){background:#059669}.skip-btn:disabled{opacity:.5;cursor:not-allowed}.error-message{display:flex;flex-direction:column;align-items:center;gap:16px;padding:40px 20px;color:#dc2626;text-align:center}@media (max-width: 768px){.student-payment-timeline{padding:16px}.timeline-header{flex-direction:column;align-items:flex-start}.timeline-class-info{flex-direction:column}.timeline-status{align-items:flex-start;width:100%}.class-details{flex-direction:column;gap:8px}}.student-management{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;overflow:hidden}.management-header{display:flex;align-items:center;justify-content:space-between;padding:24px;border-bottom:1px solid #e5e7eb;background:#f8fafc}.header-buttons{display:flex;align-items:center;gap:12px}.header-title{display:flex;flex-direction:column;gap:4px}.header-title h2{color:#1f2937;font-size:20px;font-weight:600;margin:0}.header-actions{display:flex;align-items:center;gap:16px}.search-box{position:relative;display:flex;align-items:center;max-width:300px}.search-box svg{position:absolute;left:12px;color:#9ca3af;width:16px;height:16px}.search-box input{width:100%;padding:10px 12px 10px 40px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background:#fff;transition:all .2s}.search-box input:focus{outline:none;border-color:#f85c27;box-shadow:0 0 0 3px #f7903b1a}.search-box input::placeholder{color:#9ca3af}.search-hint{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 6px -1px #0000001a;padding:8px 12px;font-size:12px;color:#6b7280;z-index:10;margin-top:4px}.add-btn{display:flex;align-items:center;gap:8px;background:#f85c27;color:#fff;border:none;padding:10px 16px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.add-btn:hover{background:#ea580c;transform:translateY(-1px);box-shadow:0 4px 6px -1px #f7903b4d}.student-form{background:#fff;border-radius:12px;box-shadow:0 25px 50px -12px #00000040;width:100%;max-width:500px;max-height:90vh;overflow-y:auto}.form-header{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 16px;border-bottom:1px solid #e5e7eb}.close-btn{width:32px;height:32px;border:none;border-radius:6px;background:#f3f4f6;color:#6b7280;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.close-btn:hover{background:#e5e7eb;color:#374151}.form-error{background:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:14px}.form-group input{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;transition:all .2s}.form-footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid #e5e7eb;background:#f9fafb}.students-section{padding:24px}.students-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.student-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px;transition:all .2s}.student-card:hover{border-color:#d1d5db;box-shadow:0 2px 4px #0000001a;transform:translateY(-1px)}.student-info{margin-bottom:12px}.student-name{font-weight:500;color:#1f2937;font-size:14px;margin-bottom:4px}.student-email{color:#6b7280;font-size:12px;margin-bottom:4px}.student-grade{color:#6b7280;font-size:12px}.action-btn{display:flex;align-items:center;gap:4px;padding:6px 12px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#6b7280;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s}.action-btn:hover{background:#f9fafb;border-color:#9ca3af}.action-btn.enrollment:hover{background:#fef3c7;color:#ea580c}.action-btn.payment{border-color:#10b981;color:#10b981}.action-btn.payment:hover{background:#ecfdf5;color:#059669}.action-btn.edit:hover{background:#fffbeb;color:#d97706}.action-btn.delete{border-color:#ef4444;color:#ef4444}.action-btn.delete:hover{background:#fef2f2;color:#dc2626}.enrollment-modal{background:#fff;border-radius:12px;box-shadow:0 25px 50px -12px #00000040;width:100%;max-width:600px;max-height:80vh;overflow:hidden;display:flex;flex-direction:column}.enrollment-section{padding:24px;border-bottom:1px solid #e5e7eb}.enrollment-section h4{color:#1f2937;font-size:16px;font-weight:600;margin:0 0 16px}.empty-text{color:#6b7280;font-size:14px;text-align:center;padding:20px}.class-list{display:flex;flex-direction:column;gap:8px}.class-item{display:flex;align-items:center;justify-content:space-between;padding:12px;border:1px solid #e5e7eb;border-radius:6px;background:#f9fafb;transition:all .2s}.class-item.enrolled{background:#eff6ff;border-color:#bfdbfe}.class-item.available{background:#f9fafb;border-color:#e5e7eb}.class-name{font-weight:500;color:#1f2937;font-size:14px}.class-details{color:#6b7280;font-size:12px}.remove-btn{display:flex;align-items:center;gap:4px;background:#ef4444;color:#fff;border:none;padding:6px 12px;border-radius:6px;font-size:12px;cursor:pointer;transition:all .2s}.remove-btn:hover{background:#dc2626}.enroll-btn{display:flex;align-items:center;gap:4px;background:#f85c27;color:#fff;border:none;padding:6px 12px;border-radius:6px;font-size:12px;cursor:pointer;transition:all .2s}.enroll-btn:hover{background:#ea580c}.loading-state{display:flex;align-items:center;justify-content:center;padding:32px;color:#6b7280}.loading-spinner{width:24px;height:24px;border:3px solid #e5e7eb;border-top:3px solid #f85C27;border-radius:50%;animation:spin 1s linear infinite;margin-right:12px}.error-message{background:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:12px 16px;border-radius:8px;margin:16px 0;font-size:14px;display:flex;align-items:center;justify-content:space-between}.error-message p{margin:0}.close-error{background:none;border:none;color:#dc2626;cursor:pointer;padding:4px;border-radius:4px;transition:background-color .2s}.close-error:hover{background:#fecaca}@media (max-width: 768px){.management-header{flex-direction:column;align-items:flex-start;gap:16px}.header-actions{width:100%;justify-content:space-between}.search-box{flex:1;max-width:none}.students-grid{grid-template-columns:1fr}.student-actions{flex-direction:column}.action-btn{justify-content:center}}.header-actions .search-box{min-width:240px;margin-bottom:0}.student-management{padding:0}.management-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:24px;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border-bottom:1px solid #e5e7eb}.header-title{flex:1}.header-title h2{margin:0 0 4px;font-size:1.25rem;font-weight:700;color:#1f2937;letter-spacing:-.025em}.header-title p{margin:0;color:#6b7280;font-size:.9rem}.header-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}.add-btn{display:flex;align-items:center;gap:8px;padding:10px 16px;background:linear-gradient(135deg,#f85c27,#ea580c);color:#fff;border:none;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px #f7903b33}.add-btn:hover{background:linear-gradient(135deg,#ea580c,#dc2626);box-shadow:0 4px 8px #f7903b4d;transform:translateY(-1px)}.loading-state{display:flex;flex-direction:column;align-items:center;gap:16px;padding:60px 20px;color:#6b7280}.loading-spinner{width:32px;height:32px;border:3px solid #f3f4f6;border-top:3px solid #f85C27;border-radius:50%;animation:spin 1s linear infinite}.error-message{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin:16px 24px;color:#991b1b}.error-message p{margin:0;font-size:.9rem}.close-error{background:none;border:none;color:#991b1b;font-size:18px;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center}.close-error:hover{background:#b91c1c1a;border-radius:4px}.bulk-students-form{width:100%}.bulk-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e5e7eb}.bulk-description{color:#6b7280;font-size:14px;margin:0 16px 0 0;flex:1}.btn-sm{padding:6px 12px;font-size:12px;border-radius:6px}.bulk-student-row{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px;padding:16px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;position:relative}.bulk-student-inputs{display:grid;grid-template-columns:1fr 1fr;gap:16px;flex:1}.remove-row-btn{width:32px;height:32px;border:none;border-radius:6px;background:#fef2f2;color:#dc2626;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;flex-shrink:0}.remove-row-btn:hover{background:#fee2e2;color:#b91c1c}@media (max-width: 768px){.header-buttons{flex-direction:column;gap:8px;align-items:stretch}.bulk-student-inputs{grid-template-columns:1fr;gap:12px}.bulk-header{flex-direction:column;align-items:stretch;gap:12px}.bulk-description{margin-right:0;margin-bottom:8px}.bulk-student-row{flex-direction:column;gap:12px}.remove-row-btn{align-self:flex-end}}.missing-attendance{padding:24px}.alert-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;flex-wrap:wrap;gap:16px}.title-with-icon{display:flex;align-items:center;gap:12px}.alert-icon{color:#f59e0b}.refresh-btn{display:flex;align-items:center;gap:8px;padding:8px 16px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#374151;cursor:pointer;transition:all .2s ease}.refresh-btn:hover{background:#f9fafb}.refresh-btn:disabled{opacity:.5;cursor:not-allowed}.spinning{animation:spin 1s linear infinite}.alert-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}.stat-card.urgent .stat-icon{background:#dc2626}.stat-card.recent .stat-icon{background:#f59e0b}.success-state{text-align:center;padding:60px 20px;color:#6b7280}.success-icon{color:#059669;margin-bottom:16px}.success-state h4{margin:0 0 8px;color:#1f2937;font-size:20px;font-weight:600}.missing-list-section{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;margin-bottom:24px}.missing-classes-list{padding:20px;display:flex;flex-direction:column;gap:16px}.missing-class-card{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;transition:all .2s ease}.missing-class-card:hover{border-color:#d1d5db;box-shadow:0 2px 4px #0000000d}.missing-class-card.priority-high{border-left:4px solid #dc2626}.missing-class-card.priority-medium{border-left:4px solid #f59e0b}.missing-class-card.priority-low{border-left:4px solid #6b7280}.priority-indicator{display:flex;align-items:center}.priority-dot{width:8px;height:8px;border-radius:50%;background:#dc2626}.priority-high .priority-dot{background:#dc2626}.priority-medium .priority-dot{background:#f59e0b}.priority-low .priority-dot{background:#6b7280}.class-main-info{flex:1}.class-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px;flex-wrap:wrap;gap:8px}.class-title{font-weight:600;color:#1f2937;font-size:16px}.priority-badge{background:#f3f4f6;color:#6b7280;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500}.class-details{display:flex;gap:16px;margin-bottom:8px;flex-wrap:wrap}.detail-item{display:flex;align-items:center;gap:4px;color:#6b7280;font-size:14px}.class-actions{display:flex;gap:8px;flex-wrap:wrap}.contact-teacher-btn{background:#f85c27;color:#fff;border:none;border-radius:6px;padding:8px 12px;font-size:13px;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:6px;transition:all .2s ease}.contact-teacher-btn:hover{background:#ea580c;box-shadow:0 2px 4px #f7903b26;transform:translateY(-1px)}.dismiss-btn{background:#6b7280;color:#fff;border:none;border-radius:6px;padding:8px 12px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease}.dismiss-btn:hover{background:#4b5563;transform:translateY(-1px);box-shadow:0 2px 4px #6b72804d}.reports-tabs{display:flex;border-bottom:1px solid #e5e7eb;background:#fff;margin-bottom:20px;border-radius:8px 8px 0 0;overflow-x:auto}.report-tab{display:flex;align-items:center;gap:8px;padding:12px 20px;background:none;border:none;color:#6b7280;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;border-bottom:2px solid transparent;white-space:nowrap}.report-tab:hover{color:#374151;background:#f9fafb}.report-tab.active{color:#f85c27;border-bottom-color:#f85c27;background:#fef3c7}.report-section{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;overflow:hidden;margin-bottom:20px}.report-description{background:#f8fafc;border-bottom:1px solid #e5e7eb;padding:20px 24px}.report-description h4{color:#1f2937;font-size:16px;font-weight:600;margin:0 0 8px}.report-description p{color:#6b7280;font-size:14px;margin:0;line-height:1.5}.teacher-search-form{padding:24px}.search-row{display:flex;gap:20px;align-items:flex-end;flex-wrap:wrap}.teacher-select label{display:block;margin-bottom:6px;font-weight:500;color:#374151;font-size:14px}.teacher-select select{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background:#fff;transition:all .2s}.date-inputs{display:flex;gap:16px;flex-wrap:wrap}.date-group{flex:1;min-width:150px}.date-group label{display:block;margin-bottom:6px;font-weight:500;color:#374151;font-size:14px}.date-group input{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;transition:all .2s}.search-button{display:flex;align-items:center;gap:6px;background:#f85c27;color:#fff;border:none;padding:10px 16px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap}.search-button:hover:not(:disabled){background:#ea580c;transform:translateY(-1px);box-shadow:0 4px 6px -1px #f7903b4d}.absence-results{padding:24px}.teacher-absence-summary{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:20px;margin-bottom:24px}.absence-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.absence-header h5{color:#1f2937;font-size:16px;font-weight:600;margin:0}.absence-count{display:flex;align-items:center;gap:8px;background:#ef4444;color:#fff;padding:4px 12px;border-radius:16px;font-size:13px;font-weight:500}.missed-classes-list{margin-top:12px;display:flex;flex-direction:column;gap:10px}.missed-class-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:12px 16px;display:flex;flex-direction:column;gap:4px}.class-info strong{color:#1f2937;font-size:14px}.class-datetime{color:#6b7280;font-size:13px}.no-absences{text-align:center;padding:40px 0;color:#6b7280}.no-absences svg{color:#f85c27;margin-bottom:12px}.no-absences h5{color:#1f2937;font-size:16px;font-weight:600;margin:0 0 8px}.no-absences p{color:#6b7280;font-size:14px;margin:0}.payment-console{max-width:1200px;margin:0 auto;padding:20px}.console-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;flex-wrap:wrap;gap:16px}.header-title h2{color:#1f2937;font-size:24px;font-weight:600;margin:0 0 4px}.header-title p{color:#6b7280;font-size:14px;margin:0}.header-actions{display:flex;align-items:center;gap:12px}.filter-toggle{display:flex;align-items:center;gap:6px;background:#f3f4f6;color:#374151;border:1px solid #d1d5db;padding:8px 12px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.filter-toggle:hover{background:#e5e7eb;border-color:#9ca3af}.filter-toggle.active{background:#f85c27;color:#fff;border-color:#f85c27}.export-btn{display:flex;align-items:center;gap:6px;background:#10b981;color:#fff;border:none;padding:8px 12px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.export-btn:hover{background:#059669;transform:translateY(-1px);box-shadow:0 4px 6px -1px #10b9814d}.stats-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-bottom:24px}.stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px;transition:all .2s;box-shadow:0 1px 3px #0000001a}.payment-console .stat-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;margin-bottom:12px}.payment-console .stat-icon.total{background:#f3e8ff;color:#7c3aed}.payment-console .stat-icon.due{background:#fef2f2;color:#dc2626}.payment-console .stat-icon.paid{background:#f0fdf4;color:#16a34a}.stat-number{font-size:24px;font-weight:700;color:#1f2937;line-height:1}.stat-label{color:#6b7280;font-size:12px;font-weight:500}.filters-panel{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px;margin-bottom:24px;box-shadow:0 1px 3px #0000001a}.filter-group input,.filter-group select{padding:8px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;transition:all .2s}.filters-actions{display:flex;justify-content:flex-end;gap:12px}.submit-filters{background:#f85c27;color:#fff;border:none;padding:8px 12px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.submit-filters:hover{background:#ea580c;transform:translateY(-1px);box-shadow:0 4px 6px -1px #f7903b4d}.clear-filters{display:flex;align-items:center;gap:6px;background:#f3f4f6;color:#374151;border:1px solid #d1d5db;padding:8px 12px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.clear-filters:hover{background:#e5e7eb;border-color:#9ca3af}.payments-section{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0000001a}.section-header{padding:20px 24px;border-bottom:1px solid #e5e7eb;background:#f8fafc}.section-header h3{color:#1f2937;font-size:18px;font-weight:600;margin:0}.payments-table-container{overflow-x:auto}.payments-table{width:100%;border-collapse:collapse}.payments-table th{background:#f9fafb;padding:12px 16px;text-align:left;font-weight:600;color:#374151;font-size:14px;border-bottom:1px solid #e5e7eb}.payments-table td{padding:12px 16px;border-bottom:1px solid #e5e7eb;font-size:14px}.payments-table tr:hover{background:#f9fafb}.student-name{font-weight:500;color:#1f2937}.status-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:12px;font-size:12px;font-weight:500}.status-badge.due{background:#fef2f2;color:#dc2626}.status-badge.paid{background:#f0fdf4;color:#16a34a}.status-icon{width:16px;height:16px}.classes-info{display:flex;align-items:center;gap:12px}.expand-btn{display:flex;align-items:center;gap:4px;background:#f3f4f6;color:#374151;border:1px solid #d1d5db;padding:4px 8px;border-radius:6px;font-size:12px;cursor:pointer;transition:all .2s}.expand-btn:hover{background:#e5e7eb;border-color:#9ca3af}.payment-actions{display:flex;gap:8px}.action-btn{padding:6px 12px;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;border:none;transition:all .2s}.action-btn.paid{background:#10b981;color:#fff}.action-btn.paid:hover{background:#059669}.action-btn.due{background:#f59e0b;color:#fff}.action-btn.due:hover{background:#d97706}.action-btn.manage{background:#3b82f6;color:#fff}.action-btn.manage:hover{background:#2563eb}.expanded-row{background:#f9fafc}.classes-details{padding:16px}.classes-details h4{margin:0 0 12px;color:#1f2937;font-size:14px;font-weight:600}.classes-list{display:flex;flex-direction:column;gap:12px}.class-detail-item{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:12px}.class-detail-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.class-detail-header strong{color:#1f2937;font-size:14px}.class-date{color:#6b7280;font-size:12px}.class-detail-info{display:flex;gap:16px;flex-wrap:wrap;color:#6b7280;font-size:12px}.class-detail-info span{display:flex;align-items:center;gap:4px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:#6b7280;text-align:center}.empty-state svg{margin-bottom:16px;opacity:.5}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px}.loading-spinner{width:40px;height:40px;border:4px solid #e5e7eb;border-top-color:#f85c27;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-message{display:flex;align-items:center;gap:12px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:16px;color:#dc2626;margin-bottom:24px}.retry-button{margin-left:auto;padding:6px 12px;background:#dc2626;color:#fff;border:none;border-radius:6px;cursor:pointer}@media (max-width: 768px){.payment-console{padding:16px}.console-header{flex-direction:column;align-items:flex-start}.header-actions{width:100%;justify-content:space-between}.stats-overview{grid-template-columns:repeat(2,1fr);gap:16px}.filters-grid{grid-template-columns:1fr}.payments-table{font-size:12px}.payments-table th,.payments-table td{padding:8px 12px}.payment-actions{flex-direction:column}}@media (max-width: 480px){.stats-overview{grid-template-columns:1fr}.header-actions{flex-direction:column;gap:8px}.filter-toggle,.export-btn{width:100%;justify-content:center}}.management-panel{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;overflow:hidden;margin-bottom:20px}.panel-tabs{display:flex;border-bottom:1px solid #e5e7eb;background:#f9fafb;border-radius:12px 12px 0 0;overflow-x:auto}.panel-content{padding:24px}.panel-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.panel-title{color:#1f2937;font-size:18px;font-weight:600;margin:0}.panel-actions{display:flex;gap:12px}.add-btn{background:#f85c27;color:#fff;border:none;border-radius:8px;padding:8px 16px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.edit-btn{background:#f59e0b;color:#fff;border:none;border-radius:8px;padding:8px 16px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.edit-btn:hover{background:#d97706}.delete-btn{background:#ef4444;color:#fff;border:none;border-radius:8px;padding:8px 16px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.delete-btn:hover{background:#dc2626}.student-list{margin-top:20px;border-radius:8px;overflow:hidden;border:1px solid #e5e7eb}.student-row{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e5e7eb;background:#fff}.student-row:last-child{border-bottom:none}.student-info{display:flex;align-items:center;gap:12px}.student-actions{display:flex;gap:8px}.student-form-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#0003;z-index:1000;display:flex;align-items:center;justify-content:center}.student-form{background:#fff;border-radius:12px;box-shadow:0 4px 24px #00000026;padding:32px 24px;min-width:320px;max-width:400px;width:100%}.form-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.form-header h3{color:#1f2937;font-size:18px;font-weight:600;margin:0}.close-btn{background:none;border:none;color:#6b7280;font-size:20px;cursor:pointer;padding:4px;border-radius:4px;transition:background .2s}.close-btn:hover{background:#f3f4f6}.form-body{display:flex;flex-direction:column;gap:16px}.form-footer{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.search-box{display:flex;align-items:center;gap:8px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:8px 12px;margin-bottom:16px}.search-box input{border:none;background:transparent;outline:none;font-size:14px;flex:1}.search-hint{color:#6b7280;font-size:12px;margin-left:8px}.room-management-panel{padding:24px}.room-management-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.room-management-header h2{color:#1f2937;font-size:20px;font-weight:600;margin:0}.add-room-btn{background:#f85c27;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;padding:10px 16px;cursor:pointer;transition:all .2s}.add-room-btn:hover{background:#ea580c;transform:translateY(-1px);box-shadow:0 4px 6px -1px #f7903b4d}.room-form-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.room-form{background:#fff;border-radius:12px;padding:24px;width:100%;max-width:400px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a}.room-form h3{color:#1f2937;font-size:18px;font-weight:600;margin:0 0 20px}.room-form label{display:block;margin-bottom:16px;color:#374151;font-size:14px;font-weight:500}.room-form input{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;transition:all .2s;box-sizing:border-box}.room-form input:focus{outline:none;border-color:#f85c27;box-shadow:0 0 0 3px #f7903b1a}.form-error{color:#dc2626;font-size:12px;margin-bottom:16px;padding:8px 12px;background:#fef2f2;border:1px solid #fecaca;border-radius:6px}.form-actions{display:flex;gap:12px;margin-top:24px}.save-btn,.cancel-btn{display:flex;align-items:center;gap:6px;padding:10px 16px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;flex:1}.save-btn{background:#f85c27;color:#fff}.save-btn:hover:not(:disabled){background:#ea580c;transform:translateY(-1px);box-shadow:0 4px 6px -1px #f7903b4d}.save-btn:disabled{background:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none}.cancel-btn{background:#f3f4f6;color:#374151;border:1px solid #d1d5db}.cancel-btn:hover{background:#e5e7eb;border-color:#9ca3af}.room-list{margin-top:24px}.room-item{display:flex;align-items:center;justify-content:space-between;padding:16px;background:#fff;border-radius:8px;border:1px solid #e5e7eb;margin-bottom:12px;transition:all .2s}.room-item:hover{background:#f3f4f6;border-color:#d1d5db;transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.room-info{display:flex;flex-direction:column;gap:4px}.room-name{font-weight:500;color:#1f2937;font-size:14px}.room-location{font-size:12px;color:#6b7280}.room-actions{display:flex;gap:8px}.action-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:6px;cursor:pointer;transition:all .2s;background:#f3f4f6}.action-button.edit{color:#f85c27}.action-button.edit:hover{background:#fef3c7;color:#ea580c;transform:scale(1.05)}.action-button.delete{color:#ef4444}.action-button.delete:hover{background:#fef2f2;color:#dc2626;transform:scale(1.05)}@media (max-width: 768px){.room-management-header{flex-direction:column;align-items:flex-start;gap:16px}.room-form{margin:16px;max-width:none}.form-actions{flex-direction:column}.room-item{flex-direction:column;align-items:flex-start;gap:12px}.room-actions{align-self:flex-end}}.management-panel{background:#fff;border-radius:16px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border:1px solid #e5e7eb;overflow:hidden;height:fit-content}.panel-header{padding:1.5rem 1.5rem 1rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border-bottom:1px solid #e5e7eb}.panel-header h2{margin:0;font-size:1.25rem;font-weight:700;color:#1f2937;letter-spacing:-.025em}.panel-tabs{display:flex;border-bottom:1px solid #e5e7eb;background:#f8fafc}.panel-tabs .tab{flex:1;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.875rem 1rem;background:transparent;border:none;color:#6b7280;font-weight:500;font-size:.875rem;cursor:pointer;transition:all .2s ease;border-bottom:2px solid transparent}.panel-tabs .tab:hover{background:#f1f5f9;color:#374151}.panel-tabs .tab.active{color:#f85c27;background:#fff;border-bottom-color:#f85c27}.panel-content{padding:1.5rem}.panel-actions{margin-bottom:1.5rem}.button{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1rem;border-radius:8px;font-weight:500;font-size:.875rem;cursor:pointer;transition:all .2s ease;border:1px solid;text-decoration:none}.button.primary{background:linear-gradient(135deg,#f85c27,#ea580c);color:#fff;border-color:#f85c27;box-shadow:0 2px 4px #f7903b33}.button.primary:hover{background:linear-gradient(135deg,#ea580c,#dc2626);border-color:#ea580c;transform:translateY(-1px);box-shadow:0 4px 8px #f7903b4d}.button.secondary{background:#fff;color:#6b7280;border-color:#d1d5db}.button.secondary:hover{background:#f9fafb;color:#374151;border-color:#9ca3af}.management-list{display:flex;flex-direction:column;gap:.75rem}.management-item{display:flex;align-items:center;justify-content:space-between;padding:1rem;background:#fafbfc;border:1px solid #e5e7eb;border-radius:12px;transition:all .2s ease;cursor:pointer}.management-item:hover{background:#f1f5f9;border-color:#d1d5db;transform:translateY(-1px);box-shadow:0 4px 6px #0000000d}.item-info{flex:1;min-width:0}.item-name{font-weight:600;color:#1f2937;font-size:.875rem;margin-bottom:.25rem;word-break:break-word}.item-detail{display:flex;align-items:center;gap:.5rem;color:#6b7280;font-size:.75rem;line-height:1.5}.color-indicator{display:inline-block;width:12px;height:12px;border-radius:50%;border:1px solid rgba(0,0,0,.1);flex-shrink:0}.item-actions{display:flex;gap:.5rem;margin-left:1rem}.action-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid;border-radius:8px;cursor:pointer;transition:all .2s ease;background:#fff}.action-button.edit{color:#f85c27;border-color:#fed7aa}.action-button.edit:hover{background:#f85c27;color:#fff;border-color:#f85c27;transform:scale(1.05)}.action-button.delete{color:#ef4444;border-color:#fecaca}.action-button.delete:hover{background:#ef4444;color:#fff;border-color:#ef4444;transform:scale(1.05)}.empty-state{text-align:center;padding:2rem 1rem;color:#6b7280}.empty-state p{margin:0;font-style:italic}.form-group input[type=color]{width:32px;height:32px;padding:0;border:2px solid #d1d5db;border-radius:6px;background:none;cursor:pointer;box-shadow:none;display:inline-block;vertical-align:middle}.form-group input[type=color]:focus{outline:none;border-color:#f85c27;box-shadow:0 0 0 3px #f7903b33}.panel-error{background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:12px;margin-bottom:16px}.close-error-button{background:none;border:none;color:#6b7280;font-size:20px;cursor:pointer;padding:4px;border-radius:4px;transition:background .2s}.attendance-modal{background:#fff;border-radius:12px;box-shadow:0 4px 24px #00000026;padding:32px 24px;min-width:320px;max-width:700px;width:100%;box-sizing:border-box;max-height:90vh;overflow-y:auto;display:flex;flex-direction:column}.attendance-modal::-webkit-scrollbar{width:8px}.attendance-modal::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.attendance-modal::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.attendance-modal::-webkit-scrollbar-thumb:hover{background:#94a3b8}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #e5e7eb;flex-shrink:0;background:#fff}.modal-title-section h2{color:#1f2937;font-size:18px;font-weight:600;margin:0}.modal-close-btn{background:none;border:none;color:#6b7280;font-size:20px;cursor:pointer;padding:4px;border-radius:4px;transition:background .2s}.modal-close-btn:hover{background:#f3f4f6}.modal-body{display:flex;flex-direction:column;gap:16px;flex:1;min-height:0;overflow-y:auto;align-items:center;width:100%}.info-banner{background:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:12px 16px;border-radius:8px;margin-bottom:16px;font-size:14px;flex-shrink:0;width:100%;max-width:800px;box-sizing:border-box}.attendance-summary{margin-bottom:16px;flex-shrink:0;width:100%;max-width:800px;box-sizing:border-box}.summary-stats{display:flex;gap:16px}.stat-item{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:12px 16px;flex:1;text-align:center}.stat-item.present{background:#d1fae5;color:#059669}.stat-item.absent{background:#fee2e2;color:#dc2626}.stat-item.unmarked{background:#fef9c3;color:#f59e0b}.stat-item.justified-absence{background:#fef3c7;color:#d97706}.students-list{margin-top:20px;border-radius:12px;overflow:visible;border:none;flex:1;min-height:0;width:100%;max-width:800px;box-sizing:border-box}.students-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:8px 0 0;justify-content:center;max-width:800px;margin:0 auto}.student-card{background:#fff;border:1.5px solid #e5e7eb;border-radius:10px;padding:18px 14px 14px;display:flex;flex-direction:column;align-items:center;gap:6px;transition:box-shadow .2s,border-color .2s;box-shadow:0 2px 8px #3b82f60a}.student-card:hover{border-color:#f85c27;box-shadow:0 4px 16px #f7903b1a}.student-info{display:flex;flex-direction:column;align-items:center;gap:4px}.student-name-wrapper{display:flex;align-items:center;justify-content:center;gap:6px}.student-name{color:#1f2937;font-size:16px;font-weight:600;text-align:center}.payment-warning-icon{color:#f59e0b;flex-shrink:0;animation:pulse-warning 2s ease-in-out infinite}@keyframes pulse-warning{0%,to{opacity:1}50%{opacity:.7}}.student-grade{color:#6b7280;font-size:13px;text-align:center}.attendance-controls{display:flex;gap:6px;margin-top:6px}.status-buttons{display:flex;gap:6px}.status-btn{background:#f3f4f6;color:#1f2937;border:none;border-radius:6px;padding:7px 10px;font-size:12px;font-weight:500;cursor:pointer;transition:background .2s}.status-btn.present{background:#d1fae5;color:#059669}.status-btn.present.active{background:#059669;color:#fff}.status-btn.absent{background:#fee2e2;color:#dc2626}.status-btn.absent.active{background:#dc2626;color:#fff}.status-btn.justified-absence{background:#fef3c7;color:#d97706}.status-btn.justified-absence.active{background:#d97706;color:#fff}.status-btn.justified-absence.disabled{background:#f3f4f6;color:#9ca3af;cursor:not-allowed;opacity:.6}.status-btn.justified-absence.disabled:hover{background:#f3f4f6;color:#9ca3af}.notes-input{width:100%;padding:7px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:12px;margin-top:6px}.modal-footer{display:flex;justify-content:flex-end;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid #e5e7eb;flex-shrink:0;background:#fff}@media (max-width: 768px){.attendance-modal{padding:16px 12px;max-width:100%;margin:8px;max-height:92vh;overflow-y:auto}.modal-header{flex-direction:row;align-items:center;gap:8px;margin-bottom:12px}.modal-title-section h2{font-size:14px;text-align:left}.modal-close-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;flex-shrink:0}.modal-body{gap:10px}.info-banner{padding:8px 10px;font-size:12px;margin-bottom:12px}.attendance-summary{margin-bottom:12px}.summary-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.stat-item{padding:8px 10px;font-size:12px}.students-list{margin-top:12px}.students-grid{grid-template-columns:1fr;gap:10px;padding:4px 0 0}.student-card{padding:12px 10px 10px;gap:8px}.student-name-wrapper{gap:4px}.student-name{font-size:14px}.payment-warning-icon{width:14px;height:14px}.student-grade{font-size:12px}.attendance-controls{width:100%;flex-direction:column;gap:8px;margin-top:8px}.status-buttons{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px}.status-btn{padding:8px 6px;font-size:11px;min-height:36px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.status-btn svg{width:14px;height:14px}.notes-input{padding:8px 10px;font-size:13px;margin-top:0}.modal-footer{flex-direction:row;gap:8px;margin-top:16px}.modal-footer button{width:100%;padding:10px 16px;font-size:14px;min-height:40px}}@media (max-width: 480px){.attendance-modal{padding:12px 10px;margin:6px;max-height:95vh}.modal-header{margin-bottom:10px}.modal-title-section h2{font-size:13px}.modal-close-btn{width:28px;height:28px}.info-banner{padding:6px 8px;font-size:11px;margin-bottom:10px}.attendance-summary{margin-bottom:10px}.stat-item{padding:6px 8px;font-size:11px}.students-grid{gap:8px}.student-card{padding:10px 8px 8px;gap:6px}.student-name-wrapper{gap:4px}.student-name{font-size:13px}.payment-warning-icon{width:13px;height:13px}.student-grade{font-size:11px}.attendance-controls{gap:6px;margin-top:6px}.status-buttons{gap:4px}.status-btn{padding:6px 4px;font-size:10px;min-height:32px;gap:1px}.status-btn svg{width:12px;height:12px}.notes-input{padding:8px;font-size:12px}.modal-footer{gap:6px;margin-top:12px}.modal-footer button{padding:10px 14px;font-size:13px;min-height:38px}}@media (hover: none) and (pointer: coarse){.student-card:hover{border-color:#e5e7eb;box-shadow:0 2px 8px #3b82f60a}.student-card:active{transform:scale(.98);border-color:#f85c27;box-shadow:0 4px 16px #f7903b1a}.status-btn:active{transform:scale(.95)}.modal-close-btn:active{background:#f3f4f6;transform:scale(.95)}.modal-footer button:active{transform:scale(.98)}}@media (max-width: 768px) and (orientation: landscape){.attendance-modal{max-height:88vh;padding:12px 14px}.modal-header{margin-bottom:8px}.modal-title-section h2{font-size:13px}.summary-stats{grid-template-columns:repeat(4,1fr);gap:6px}.stat-item{padding:6px 8px;font-size:11px}.students-grid{grid-template-columns:repeat(2,1fr);gap:8px}.student-card{padding:10px 8px 8px;gap:6px}.student-name{font-size:13px}.student-grade{font-size:11px}.attendance-controls{flex-direction:row;align-items:center;gap:6px;margin-top:6px}.status-buttons{flex:1;display:flex;gap:3px}.status-btn{flex:1;padding:6px 4px;font-size:10px;min-height:32px}.status-btn svg{width:12px;height:12px}.notes-input{flex:1;margin-top:0;padding:6px 8px;font-size:11px}.modal-footer{margin-top:12px}.modal-footer button{padding:8px 14px;font-size:13px;min-height:36px}}@media (max-width: 768px){.loading-state{padding:30px 16px;text-align:center}.loading-spinner{width:28px;height:28px;margin:0 auto 12px}.loading-state p{font-size:13px;color:#6b7280}.error-message{padding:16px 12px;text-align:center}.error-message p{font-size:13px;margin:6px 0 12px}.retry-button{padding:10px 16px;font-size:13px;min-height:38px}.empty-state{padding:30px 16px;text-align:center}.empty-state svg{width:36px;height:36px;margin-bottom:10px}.empty-state p{font-size:13px;color:#6b7280}}@media (max-width: 768px){.list-header h3{font-size:14px;margin:0 0 10px;text-align:center}}.teacher-dashboard{max-width:1200px;margin:0 auto;padding:20px}.header-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;flex-wrap:wrap;gap:16px}.dashboard-actions{display:flex;gap:12px}.dashboard-action-btn{display:flex;align-items:center;gap:8px;background:#f85c27;color:#fff;border:none;padding:10px 16px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.dashboard-action-btn:hover{background:#ea580c;transform:translateY(-1px);box-shadow:0 4px 6px -1px #f7903b4d}.welcome-section{margin-bottom:32px}.user-role{display:inline-flex;align-items:center;gap:6px;background:#fef3c7;color:#f85c27;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:500}.stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:24px;transition:all .2s;box-shadow:0 1px 3px #0000001a}.stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 6px -1px #0000001a}.stat-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;margin-bottom:16px;background:#fef3c7;color:#f85c27}.stat-icon.upcoming{background:#fef3c7;color:#f59e0b}.stat-icon.past{background:#f3f4f6;color:#6b7280}.stat-content{display:flex;flex-direction:column;gap:4px}.stat-number{font-size:32px;font-weight:700;color:#1f2937;line-height:1}.classes-sections{display:flex;flex-direction:column;gap:32px}.classes-section{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0000001a}.section-title{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;background:#f8fafc;border-bottom:1px solid #e5e7eb;color:#1f2937;font-size:18px;font-weight:600}.classes-list{padding:0;margin:0;list-style:none}.class-card{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e5e7eb;transition:all .2s;cursor:pointer}.class-card:hover{background:#f9fafb}.class-card.clickable:hover{background:#f3f4f6;transform:translate(4px)}.teacher-dashboard .class-actions{display:flex;align-items:center;gap:8px;opacity:0;transition:opacity .2s}.teacher-dashboard .class-card.clickable .class-actions{opacity:1}.attendance-indicator{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:500;padding:4px 8px;border-radius:12px}.attendance-indicator.upcoming{background:#fef3c7;color:#f59e0b}.attendance-indicator.taken{background:#dcfce7;color:#16a34a}.attendance-indicator.not-taken{background:#fee2e2;color:#dc2626}.class-main{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.class-subject{display:flex;align-items:center;gap:8px;color:#1f2937;font-weight:600}.class-subject svg{width:16px;height:16px;color:#6b7280}.subject-name{font-size:16px;font-weight:600;color:#1f2937}.level-badge{display:inline-flex;align-items:center;padding:2px 8px;background:#f3f4f6;color:#6b7280;border-radius:12px;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.05em}.class-card.past .level-badge{background:#e5e7eb;color:#9ca3af}.class-time{display:flex;align-items:center;gap:6px;color:#6b7280;font-size:14px}.class-time svg{width:14px;height:14px}.class-date{color:#9ca3af;font-size:13px}.class-notes{margin-top:4px}.class-notes p{color:#6b7280;font-size:13px;line-height:1.4;margin:0}.class-arrow{color:#9ca3af;transition:all .2s}.class-card:hover .class-arrow{color:#6b7280;transform:translate(2px)}.empty-state{display:flex;flex-direction:column;align-items:center;padding:40px 24px;text-align:center}.empty-state svg{width:48px;height:48px;color:#9ca3af;margin-bottom:16px}.empty-state p{color:#6b7280;font-size:14px;margin:0}.show-more{display:flex;align-items:center;justify-content:center;padding:16px 24px;background:#f9fafb;color:#6b7280;cursor:pointer;transition:all .2s;border:none;width:100%}.show-more:hover{background:#f3f4f6;color:#374151}.show-more p{margin:0;font-size:14px;font-weight:500}.loading-state{display:flex;flex-direction:column;align-items:center;padding:40px 24px}.loading-spinner{width:32px;height:32px;border:3px solid #e5e7eb;border-top:3px solid #f85C27;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:16px}.error-message{display:flex;flex-direction:column;align-items:center;padding:40px 24px;text-align:center;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin:20px 0}.retry-button{display:inline-flex;align-items:center;gap:8px;background:#f85c27;color:#fff;border:none;padding:10px 20px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;margin-top:16px}.retry-button:hover{background:#ea580c;transform:translateY(-1px)}@media (max-width: 768px){.teacher-dashboard{padding:16px;max-width:100%}.dashboard-header{margin-bottom:24px}.header-top{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:20px}.welcome-section{margin-bottom:24px}.welcome-section h1{font-size:24px}.stats-cards{grid-template-columns:1fr;gap:16px;margin-bottom:24px}.stat-card{padding:20px}.stat-number{font-size:28px}.classes-sections{gap:24px}.section-title{padding:16px 20px;font-size:16px}.class-card{padding:16px 20px;flex-direction:column;align-items:stretch;gap:12px}.class-main{order:1}.class-actions{order:2;justify-content:flex-end;opacity:1!important}.subject-name{font-size:15px}.class-time{font-size:13px}.class-date{font-size:12px}.class-arrow{display:none}.attendance-indicator{font-size:11px;padding:3px 6px}.empty-state{padding:32px 20px}.empty-state svg{width:40px;height:40px}.loading-state{padding:32px 20px}}@media (max-width: 480px){.teacher-dashboard{padding:12px}.welcome-section h1{font-size:20px}.user-role{font-size:11px;padding:3px 10px}.stat-card{padding:16px}.stat-icon{width:40px;height:40px;margin-bottom:12px}.stat-number{font-size:24px}.stat-label{font-size:13px}.section-title{padding:14px 16px;font-size:15px}.class-card{padding:14px 16px;gap:10px}.subject-name{font-size:14px}.level-badge{font-size:10px;padding:1px 6px}.class-time{font-size:12px}.class-date{font-size:11px}.class-notes p{font-size:12px}.attendance-indicator{font-size:10px;padding:2px 5px}.dashboard-action-btn{padding:12px 16px;font-size:14px}}@media (hover: none) and (pointer: coarse){.class-card.clickable:active{transform:scale(.98);background:#f3f4f6}.dashboard-action-btn:active{transform:scale(.95)}.stat-card:active{transform:scale(.98)}.show-more:active{background:#e5e7eb}.retry-button:active{transform:scale(.95)}.teacher-dashboard .class-actions{opacity:1!important}}@media (max-width: 768px) and (orientation: landscape){.teacher-dashboard{padding:12px}.stats-cards{grid-template-columns:repeat(2,1fr)}.class-card{flex-direction:row;align-items:center;gap:16px}.class-main{order:1}.class-actions{order:2}}.calendar-app{background:#f8fafc;min-height:100vh;padding:0}.app-header{background:#fff;border-bottom:1px solid #e5e7eb;padding:24px 0 0;margin-bottom:20px}.app-header h1{color:#1f2937;font-size:28px;font-weight:700;margin:0 0 8px}.app-header p{color:#6b7280;font-size:16px;margin:0}.app-tabs{display:flex;border-bottom:1px solid #e5e7eb;background:#f9fafb;border-radius:12px 12px 0 0;overflow-x:auto}.tab-button{display:flex;align-items:center;gap:8px;padding:12px 20px;background:none;border:none;color:#6b7280;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;border-bottom:2px solid transparent;white-space:nowrap}.tab-button:hover{color:#374151;background:#f9fafb}.tab-button svg{margin-right:6px}.app-content{padding:24px}.app-layout{display:grid;grid-template-columns:1fr 300px;gap:24px;align-items:start}.calendar-section,.management-section{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;overflow:hidden}.app-loading{display:flex;align-items:center;justify-content:center;min-height:200px;color:#6b7280}.app-loading p{font-size:14px;margin:0}.app-error{background:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:16px;border-radius:8px;margin:16px 0;text-align:center}.app-error h2{color:#dc2626;font-size:18px;font-weight:600;margin:0 0 8px}.app-error p{font-size:14px;margin:0}.error-help{margin-top:12px;padding-top:12px;border-top:1px solid #fecaca}.error-help p{font-size:12px;margin:0 0 8px}.error-help code{background:#f3f4f6;padding:2px 6px;border-radius:4px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:11px}@media (max-width: 768px){.calendar-app{padding:0}.app-header{padding:16px 20px 0;margin-bottom:16px}.app-header h1{font-size:22px;margin:0 0 6px}.app-header p{font-size:14px;line-height:1.4}.app-tabs{margin:0 16px;border-radius:8px 8px 0 0}.tab-button{flex:1;justify-content:center;padding:14px 12px;font-size:13px;min-height:48px;gap:6px}.tab-button svg{margin-right:0;width:18px;height:18px}.app-content{padding:16px}.app-loading{min-height:150px;padding:20px}.app-loading p{font-size:13px}.app-error{margin:12px 16px;padding:12px}.app-error h2{font-size:16px}.app-error p{font-size:13px}.error-help{margin-top:10px;padding-top:10px}.error-help p{font-size:11px}.error-help code{font-size:10px;padding:1px 4px}}@media (max-width: 480px){.app-header{padding:12px 16px 0;margin-bottom:12px}.app-header h1{font-size:20px;margin:0 0 4px}.app-header p{font-size:13px}.app-tabs{margin:0 12px}.tab-button{padding:12px 8px;font-size:12px;min-height:44px;gap:4px}.tab-button svg{width:16px;height:16px}.app-content{padding:12px}.app-loading{min-height:120px;padding:16px}.app-loading p{font-size:12px}.app-error{margin:8px 12px;padding:10px}.app-error h2{font-size:15px}.app-error p{font-size:12px}}@media (hover: none) and (pointer: coarse){.tab-button:hover{color:#6b7280;background:none}.tab-button:active,.tab-button.active:active{transform:scale(.98)}}@media (max-width: 768px) and (orientation: landscape){.app-header{padding:12px 20px 0}.app-header h1{font-size:20px}.app-tabs{margin:0 20px}.tab-button{padding:10px 16px;font-size:13px;min-height:40px}.app-content{padding:12px 20px}}@media (max-width: 1024px){.app-layout{grid-template-columns:1fr;gap:20px}.management-section{order:-1}}.app{min-height:100vh;background:#f8fafc;padding:0}*{box-sizing:border-box}.auth-container{width:100%;max-width:400px}.auth-card{background:#fff;border-radius:16px;box-shadow:0 25px 50px -12px #00000040;overflow:hidden}.auth-form{padding:32px}.auth-header{text-align:center;margin-bottom:32px}.auth-header h2{color:#1f2937;font-size:24px;font-weight:700;margin:0 0 8px}.auth-header p{color:#6b7280;font-size:14px;margin:0}.auth-error{background:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:14px}.auth-form-body{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{color:#374151;font-weight:500;font-size:14px}.recurring-note{margin-top:8px}.recurring-note small{color:#6b7280;font-size:12px;font-style:italic}.password-input-group{position:relative}.password-input-group input{padding-right:48px}.password-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;color:#6b7280;cursor:pointer;padding:4px;border-radius:4px;transition:color .2s}.password-toggle:hover{color:#374151}.password-toggle:disabled{cursor:not-allowed;opacity:.5}.auth-submit-button{display:flex;align-items:center;justify-content:center;gap:8px;background:#f85c27;color:#fff;border:none;padding:14px 24px;border-radius:8px;font-weight:500;font-size:14px;cursor:pointer;transition:background-color .2s;margin-top:8px}.auth-submit-button:hover:not(:disabled){background:#ea580c}.auth-submit-button:disabled{background:#9ca3af;cursor:not-allowed}.auth-switch{text-align:center;margin-top:24px;padding-top:24px;border-top:1px solid #e5e7eb}.auth-switch p{color:#6b7280;font-size:14px;margin:0}.auth-switch-button{color:#f85c27;background:none;border:none;font-weight:500;cursor:pointer;text-decoration:underline;font-size:14px}.auth-switch-button:hover:not(:disabled){color:#ea580c}.auth-switch-button:disabled{color:#9ca3af;cursor:not-allowed}.navigation-header{background:#fff;border-bottom:1px solid #e5e7eb;padding:0;margin-bottom:20px}.nav-container{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;max-width:1200px;margin:0 auto}.nav-brand h1{color:#1f2937;font-size:20px;font-weight:700;margin:0}.nav-user{display:flex;align-items:center;gap:16px}.user-info{display:flex;align-items:center;gap:8px;color:#6b7280;font-size:14px}.logout-button{display:flex;align-items:center;gap:6px;background:#ef4444;color:#fff;border:none;padding:8px 16px;border-radius:6px;font-size:14px;cursor:pointer;transition:all .2s}.logout-button:hover{background:#dc2626;transform:translateY(-1px);box-shadow:0 2px 4px #ef44444d}@media (max-width: 768px){.app{padding:0}.navigation-header{margin-bottom:16px}.nav-container{padding:12px 16px;flex-direction:column;gap:12px;align-items:stretch}.nav-brand{display:flex;justify-content:center}.nav-brand h1{font-size:18px}.nav-user{justify-content:space-between;gap:12px}.user-info{font-size:13px;gap:6px}.user-info svg{width:14px;height:14px}.logout-button{padding:10px 14px;font-size:13px;min-height:40px;gap:4px}.logout-button svg{width:14px;height:14px}}@media (max-width: 480px){.nav-container{padding:10px 12px;gap:10px}.nav-brand h1{font-size:16px}.nav-user{flex-direction:column;gap:8px;align-items:stretch}.user-info{justify-content:center;font-size:12px}.user-info svg{width:12px;height:12px}.logout-button{width:100%;justify-content:center;padding:12px 16px;font-size:14px;min-height:44px}.logout-button svg{width:16px;height:16px}}@media (hover: none) and (pointer: coarse){.logout-button:hover{background:#ef4444;transform:none;box-shadow:none}.logout-button:active{background:#dc2626;transform:scale(.95)}}@media (max-width: 768px) and (orientation: landscape){.nav-container{flex-direction:row;gap:16px}.nav-user{flex-direction:row;gap:12px}.logout-button{width:auto}}.loading-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f8fafc}.loading-spinner{text-align:center}.spinner{width:40px;height:40px;border:4px solid #e5e7eb;border-top:4px solid #f85C27;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 16px}.loading-spinner p{color:#6b7280;font-size:14px;margin:0}.app-loading{min-height:50vh;display:flex;align-items:center;justify-content:center;background:#f8fafc}.app-loading .loading-spinner{text-align:center}.app-loading .spinner{width:40px;height:40px;border:4px solid #e5e7eb;border-top:4px solid #f85C27;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 16px}.app-loading .loading-spinner p{color:#6b7280;font-size:14px;margin:0}.admin-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.admin-modal{background:#fff;border-radius:12px;box-shadow:0 25px 50px -12px #00000040;width:100%;max-width:600px;max-height:80vh;overflow:hidden;display:flex;flex-direction:column}.admin-modal-header{display:flex;align-items:center;justify-content:space-between;padding:24px;border-bottom:1px solid #e5e7eb}.admin-modal-header h2{color:#1f2937;font-size:20px;font-weight:600;margin:0}.admin-modal-content{padding:24px;overflow-y:auto;flex:1}.admin-error{background:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:12px 16px;border-radius:8px;margin:16px 24px;font-size:14px}.admin-actions{margin-bottom:24px}.add-user-form{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:20px;margin-bottom:24px}.add-user-form .form-group{margin-bottom:16px}.add-user-form .form-actions{display:flex;gap:12px;margin-top:20px}.users-list{display:flex;flex-direction:column;gap:12px}.user-item{display:flex;align-items:center;justify-content:space-between;padding:16px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px}.user-info{display:flex;align-items:center;gap:12px}.user-info svg{color:#6b7280}.user-email{font-weight:500;color:#1f2937;font-size:14px}.user-date{font-size:12px;color:#6b7280;margin-top:2px}.delete-user-button{background:#ef4444;color:#fff;border:none;padding:8px;border-radius:6px;cursor:pointer;transition:background-color .2s;display:flex;align-items:center;justify-content:center}.delete-user-button:hover:not(:disabled){background:#dc2626}.delete-user-button:disabled{background:#9ca3af;cursor:not-allowed}.loading-state,.empty-state{text-align:center;color:#6b7280;padding:32px;font-size:14px}.admin-button{display:flex;align-items:center;gap:6px;background:#f85c27;color:#fff;border:none;padding:8px 16px;border-radius:6px;font-size:14px;cursor:pointer;transition:background-color .2s}.admin-button:hover{background:#ea580c}.app-tabs{display:flex;border-bottom:1px solid #e5e7eb;background:#fff;margin-bottom:20px;border-radius:8px 8px 0 0;overflow-x:auto}.tab-button{display:flex;align-items:center;gap:8px;padding:12px 20px;border:none;background:none;color:#6b7280;font-weight:500;cursor:pointer;transition:all .2s ease;border-bottom:3px solid transparent;white-space:nowrap;min-width:fit-content}.tab-button:hover{background:#f9fafb;color:#374151}.tab-button.active{color:#f85c27;border-bottom-color:#f85c27;background:#fef3c7}.tab-button svg{flex-shrink:0}.app-content{background:#fff;border-radius:0 0 8px 8px;min-height:500px}.app-header{text-align:center;margin-bottom:20px;padding:20px;background:#f85c27;border-radius:8px;box-shadow:0 4px 6px #0000001a}.app-header h1{color:#fff;font-size:28px;font-weight:700;margin:0 0 8px;text-shadow:0 1px 2px rgba(0,0,0,.1)}.app-header p{color:#ffffffe6;font-size:16px;margin:0}.calendar-app{max-width:1400px;margin:0 auto;padding:20px}.app-loading{display:flex;align-items:center;justify-content:center;min-height:400px;background:#fff;border-radius:8px;margin:20px}.app-error{text-align:center;padding:40px;background:#fff;border-radius:8px;margin:20px;border:1px solid #fecaca}.app-error h2{color:#dc2626;margin-bottom:16px}.teacher-dashboard{padding:24px;max-width:1200px;margin:0 auto}.dashboard-header{margin-bottom:32px}.header-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;gap:20px}.dashboard-actions{display:flex;gap:12px;flex-shrink:0}.dashboard-action-btn{display:flex;align-items:center;gap:8px;white-space:nowrap}.welcome-section{text-align:left;flex:1}.welcome-section h1{color:#1f2937;font-size:28px;font-weight:700;margin:0 0 8px}.user-role{color:#6b7280;font-size:16px;margin:0;font-weight:500}.stats-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-bottom:32px}.stat-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px #0000000f;border:1px solid #f3f4f6;display:flex;align-items:center;gap:16px;transition:all .2s ease}.stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px #0000001a}.stat-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px}.stat-icon.upcoming{background:linear-gradient(135deg,#f85c27,#ea580c);color:#fff}.stat-icon.past{background:linear-gradient(135deg,#6b7280,#374151);color:#fff}.stat-number{font-size:24px;font-weight:700;color:#1f2937;margin-bottom:4px}.stat-label{color:#6b7280;font-size:14px;font-weight:500}.classes-sections{display:grid;gap:32px}.classes-section{background:#fff;border-radius:16px;padding:24px;box-shadow:0 2px 8px #0000000f;border:1px solid #f3f4f6}.section-title{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:600;color:#1f2937;margin:0 0 20px;padding-bottom:16px;border-bottom:2px solid #f3f4f6}.classes-list{display:grid;gap:16px}.class-card{background:#fff;border:2px solid #f3f4f6;border-left:4px solid #f85C27;border-radius:16px;padding:20px;display:flex;align-items:center;justify-content:space-between;transition:all .3s ease,border-color .3s ease;cursor:pointer;position:relative;overflow:hidden}.class-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px #0000001f;border-color:#e5e7eb}.class-card.clickable:hover{transform:translateY(-2px);box-shadow:0 8px 25px #0000001a;border-color:#f85c27}.attendance-indicator{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500;padding:4px 8px;border-radius:6px;transition:all .2s ease}.attendance-indicator.upcoming{background:#fef3c7;color:#ea580c;border:1px solid #fed7aa}.attendance-indicator.taken{background:#d1fae5;color:#059669;border:1px solid #a7f3d0}.attendance-indicator.not-taken{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}.class-main{flex:1;display:flex;flex-direction:column;gap:12px}.class-subject{display:flex;align-items:center;gap:12px;margin-bottom:4px}.class-subject svg{color:#f85c27;flex-shrink:0}.subject-name{font-size:18px;font-weight:600;color:#1f2937;margin-right:12px}.level-badge{background:linear-gradient(135deg,#f85c27,#ea580c);color:#fff;font-size:12px;font-weight:600;padding:4px 12px;border-radius:20px;text-transform:uppercase;letter-spacing:.5px;box-shadow:0 2px 4px #f7903b4d;transition:all .2s ease}.class-card.past .level-badge{background:linear-gradient(135deg,#6b7280,#374151);box-shadow:0 2px 4px #6b72804d}.class-time{display:flex;align-items:center;gap:8px;color:#374151;font-size:14px;font-weight:500}.class-time svg{color:#6b7280;flex-shrink:0}.class-date{color:#6b7280;font-size:14px;font-weight:500}.class-notes{margin-top:8px;padding-top:12px;border-top:1px solid #f3f4f6}.class-notes p{color:#6b7280;font-size:14px;margin:0;line-height:1.5}.class-arrow{color:#9ca3af;transition:all .2s ease;flex-shrink:0}.class-card:hover .class-arrow{color:#f85c27;transform:translate(4px)}.empty-state{text-align:center;padding:40px 20px;color:#6b7280}.empty-state svg{color:#9ca3af;margin-bottom:16px}.empty-state p{font-size:16px;margin:0}.show-more{text-align:center;padding:16px;color:#6b7280;font-size:14px;border-top:1px solid #f3f4f6;margin-top:16px}.show-more p{margin:0}.loading-state{text-align:center;padding:40px 20px}.loading-spinner{width:40px;height:40px;border:3px solid #f3f4f6;border-top:3px solid #f85C27;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 16px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.error-message{background:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:16px;border-radius:8px;margin:16px 0}.retry-button{background:#f85c27;color:#fff;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;margin-top:8px;transition:background-color .2s ease}.retry-button:hover{background:#ea580c}.attendance-modal{width:90%;max-width:800px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column}.attendance-modal .modal-header{display:flex;justify-content:space-between;align-items:flex-start;padding:24px;border-bottom:1px solid #e5e7eb;background:#f9fafb}.modal-title-section h2{margin:0 0 12px;color:#1f2937;font-size:20px;font-weight:600}.class-name{font-weight:600;color:#374151;font-size:16px}.class-details{display:flex;align-items:center;gap:6px;color:#6b7280;font-size:14px}.modal-close-btn{background:none;border:none;padding:4px;cursor:pointer;color:#6b7280;border-radius:4px;transition:all .2s ease}.modal-close-btn:hover{background:#f3f4f6;color:#374151}.attendance-modal .modal-body{flex:1;overflow-y:auto;padding:24px}.info-banner{display:flex;align-items:center;gap:8px;background:#fef3c7;border:1px solid #f59e0b;border-radius:8px;padding:12px;margin-bottom:20px;color:#92400e;font-size:14px}.attendance-summary{margin-bottom:24px;padding:16px;background:#f9fafb;border-radius:8px;border:1px solid #e5e7eb}.summary-stats{display:flex;gap:24px;flex-wrap:wrap}.stat-item{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:500}.stat-item.present{color:#059669}.stat-item.absent{color:#dc2626}.stat-item.unmarked{color:#6b7280}.students-list .list-header{margin-bottom:16px}.students-list .list-header h3{margin:0;color:#374151;font-size:16px;font-weight:600}.students-grid{display:grid;gap:16px}.student-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px;transition:all .2s ease}.attendance-controls{display:flex;flex-direction:column;gap:12px}.status-buttons{display:flex;gap:8px}.status-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;border:2px solid #e5e7eb;border-radius:6px;background:#fff;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s ease}.status-btn:hover{border-color:#d1d5db;background:#f9fafb}.status-btn.present{color:#059669}.status-btn.present.active{background:#d1fae5;border-color:#059669;color:#047857}.status-btn.absent{color:#dc2626}.status-btn.absent.active{background:#fee2e2;border-color:#dc2626;color:#b91c1c}.notes-input{width:100%;padding:8px 12px;border:1px solid #e5e7eb;border-radius:6px;font-size:14px;transition:all .2s ease}.notes-input:focus{outline:none;border-color:#f85c27;box-shadow:0 0 0 3px #f7903b1a}.attendance-modal .modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:24px;border-top:1px solid #e5e7eb;background:#f9fafb}.btn-secondary{padding:10px 16px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#374151;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-secondary:hover{background:#f9fafb;border-color:#9ca3af}.btn-primary{padding:10px 16px;border:none;border-radius:6px;background:#f85c27;color:#fff;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-primary:hover:not(:disabled){background:#ea580c}.btn-primary:disabled{background:#9ca3af;cursor:not-allowed}.reports-tabs{display:flex;background:#f3f4f6;border-radius:8px;padding:4px;margin-bottom:24px}.report-tab{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;background:transparent;border:none;border-radius:6px;font-size:14px;font-weight:500;color:#6b7280;cursor:pointer;transition:all .2s ease}.report-tab:hover{color:#374151;background:#e5e7eb}.report-tab.active{background:#fff;color:#1f2937;box-shadow:0 1px 3px #0000001a}.report-section{padding:20px}.report-description{display:flex;align-items:center;gap:12px;margin-bottom:20px;padding:16px;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.report-description h4{margin:0 0 4px;font-size:16px;font-weight:600;color:#1f2937}.report-description p{margin:0;font-size:14px;color:#6b7280}.teacher-search-form{margin-bottom:24px}.search-row{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap}.teacher-select{flex:1;min-width:200px}.teacher-select label{display:block;font-size:14px;font-weight:500;color:#374151;margin-bottom:6px}.teacher-select select{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;background:#fff;cursor:pointer}.teacher-select select:focus{outline:none;border-color:#f85c27;box-shadow:0 0 0 3px #f7903b1a}.date-inputs{display:flex;gap:12px}.date-group{display:flex;flex-direction:column}.date-group label{font-size:14px;font-weight:500;color:#374151;margin-bottom:6px}.date-group input{padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px}.date-group input:focus{outline:none;border-color:#f85c27;box-shadow:0 0 0 3px #f7903b1a}.search-button{display:flex;align-items:center;gap:8px;padding:10px 20px;background:#f85c27;color:#fff;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s ease}.search-button:hover:not(:disabled){background:#ea580c}.search-button:disabled{background:#9ca3af;cursor:not-allowed}.absence-results{margin-top:24px}.teacher-absence-summary{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:20px;margin-bottom:16px}.absence-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.absence-header h5{margin:0;font-size:16px;font-weight:600;color:#1f2937}.absence-count{background:#fee2e2;color:#dc2626;padding:4px 12px;border-radius:20px;font-size:13px;font-weight:500}.missed-classes-list{display:flex;flex-direction:column;gap:12px}.missed-class-card{background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:16px}.class-info strong{display:block;color:#1f2937;margin-bottom:4px}.class-datetime{font-size:13px;color:#6b7280}.no-absences{text-align:center;padding:40px 20px;color:#6b7280}.no-absences svg{margin:0 auto 16px;color:#9ca3af}.no-absences h5{margin:0 0 8px;font-size:16px;font-weight:600;color:#374151}.no-absences p{margin:0;font-size:14px}@media (max-width: 768px){.teacher-dashboard{padding:16px}.stats-cards{grid-template-columns:1fr}.class-card{padding:16px}.class-main{gap:8px}.subject-name{font-size:16px}.class-subject{flex-wrap:wrap;gap:8px}.search-row{flex-direction:column;align-items:stretch}.teacher-select{min-width:unset}.date-inputs{flex-direction:column;gap:16px}.absence-header{flex-direction:column;align-items:flex-start;gap:8px}}@media (max-width: 480px){.welcome-section h1{font-size:24px}.class-card{flex-direction:column;align-items:flex-start;gap:12px}.class-arrow{align-self:flex-end}}.attendance-console{padding:24px;max-width:100%}.console-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;flex-wrap:wrap;gap:16px}.header-title h2{margin:0 0 8px;color:#1f2937;font-size:24px;font-weight:600}.header-title p{margin:0;color:#6b7280;font-size:14px}.header-actions{display:flex;gap:12px;align-items:center}.filter-toggle{display:flex;align-items:center;gap:8px;padding:8px 16px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#374151;cursor:pointer;transition:all .2s ease}.filter-toggle:hover{background:#f9fafb;border-color:#9ca3af}.filter-toggle.active{background:#f85c27;border-color:#f85c27;color:#fff}.export-btn{display:flex;align-items:center;gap:8px;padding:8px 16px;border:none;border-radius:6px;background:#059669;color:#fff;cursor:pointer;transition:all .2s ease}.export-btn:hover{background:#047857}.stats-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}.stat-card{display:flex;align-items:center;gap:16px;padding:20px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 1px 3px #0000001a}.stat-icon{width:48px;height:48px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff}.stat-icon.total{background:#6366f1}.stat-icon.present{background:#059669}.stat-icon.absent{background:#dc2626}.stat-icon.justified{background:#ca8a04}.stat-icon.rate{background:#7c3aed}.stat-content{flex:1}.stat-number{font-size:24px;font-weight:600;color:#1f2937;margin-bottom:4px}.stat-label{color:#6b7280;font-size:14px}.filters-panel{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:20px;margin-bottom:24px}.filters-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:16px}.filter-group{display:flex;flex-direction:column;gap:6px}.filter-group label{font-weight:500;color:#374151;font-size:14px}.filter-group input,.filter-group select{padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;transition:all .2s ease}.filter-group input:focus,.filter-group select:focus{outline:none;border-color:#f85c27;box-shadow:0 0 0 3px #f7903b1a}.filters-actions{display:flex;justify-content:flex-end}.clear-filters{padding:8px 16px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#374151;cursor:pointer;transition:all .2s ease}.clear-filters:hover{background:#f9fafb}.records-section{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}.section-header{padding:16px 20px;border-bottom:1px solid #e5e7eb;background:#f9fafb}.section-header h3{margin:0;color:#1f2937;font-size:18px;font-weight:600}.records-table-container{overflow-x:auto}.records-table{width:100%;border-collapse:collapse}.records-table th{background:#f9fafb;padding:12px 16px;text-align:left;font-weight:600;color:#374151;border-bottom:1px solid #e5e7eb;font-size:14px}.records-table td{padding:12px 16px;border-bottom:1px solid #f3f4f6;color:#1f2937;font-size:14px}.records-table tr:hover{background:#f9fafb}.class-info{display:flex;flex-direction:column;gap:4px}.class-title{font-weight:500;color:#1f2937}.class-subject{color:#6b7280;font-size:12px}.student-name{font-weight:500}.status-badge{display:flex;align-items:center;gap:6px;padding:4px 8px;border-radius:6px;font-size:12px;font-weight:500;text-transform:capitalize}.status-badge.present{background:#d1fae5;color:#047857}.status-badge.absent{background:#fee2e2;color:#b91c1c}.status-icon.present{color:#047857}.status-icon.absent{color:#b91c1c}.status-icon.unknown{color:#f59e0b}.notes-cell{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.student-management{padding:24px}.management-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;flex-wrap:wrap;gap:16px}.search-hint{position:absolute;top:100%;left:0;right:0;background:#f3f4f6;border:1px solid #d1d5db;border-top:none;border-radius:0 0 6px 6px;padding:8px 12px;font-size:12px;color:#6b7280;z-index:10}.add-btn{display:flex;align-items:center;gap:8px;padding:10px 16px;border:none;border-radius:6px;background:#f85c27;color:#fff;cursor:pointer;font-weight:500;transition:all .2s ease}.add-btn:hover{background:#ea580c}.student-form-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.student-form{background:#fff;border-radius:12px;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 25px 50px -12px #00000040}.form-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e5e7eb}.form-header h3{margin:0;color:#1f2937;font-size:18px;font-weight:600}.close-btn{background:none;border:none;padding:4px;cursor:pointer;color:#6b7280;border-radius:4px;transition:all .2s ease}.close-btn:hover{background:#f3f4f6;color:#374151}.form-body{padding:24px}.form-error{background:#fee2e2;border:1px solid #fecaca;border-radius:6px;padding:12px;margin-bottom:16px;color:#b91c1c;font-size:14px}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:6px;font-weight:500;color:#374151;font-size:14px}.form-group input{padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;transition:all .2s ease}.form-group input:focus{outline:none;border-color:#f85c27;box-shadow:0 0 0 3px #f7903b1a}.form-footer{display:flex;justify-content:flex-end;gap:12px;padding:20px 24px;border-top:1px solid #e5e7eb;background:#f9fafb}.students-section{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}.students-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;padding:20px}.student-card{border:1px solid #e5e7eb;border-radius:8px;padding:16px;background:#fff;transition:all .2s ease}.student-card:hover{border-color:#d1d5db;box-shadow:0 2px 4px #0000000d}.student-name{font-weight:600;color:#1f2937;font-size:16px;margin-bottom:4px}.student-email{color:#6b7280;font-size:14px;margin-bottom:4px}.student-grade{color:#6b7280;font-size:14px}.student-actions{display:flex;gap:8px;flex-wrap:wrap}.action-btn{display:flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #d1d5db;border-radius:4px;background:#fff;cursor:pointer;font-size:12px;transition:all .2s ease}.action-btn:hover{background:#f9fafb}.action-btn.enrollment{border-color:#f85c27;color:#f85c27}.action-btn.enrollment:hover{background:#fef3c7}.action-btn.edit{border-color:#f59e0b;color:#f59e0b}.action-btn.edit:hover{background:#fffbeb}.action-btn.delete{border-color:#dc2626;color:#dc2626}.action-btn.delete:hover{background:#fef2f2}.enrollment-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.enrollment-modal{background:#fff;border-radius:12px;width:100%;max-width:700px;max-height:80vh;overflow-y:auto;box-shadow:0 25px 50px -12px #00000040}.enrollment-section{padding:20px;border-bottom:1px solid #e5e7eb}.enrollment-section:last-child{border-bottom:none}.enrollment-section h4{margin:0 0 16px;color:#1f2937;font-size:16px;font-weight:600}.empty-text{color:#6b7280;font-style:italic}.class-list{display:flex;flex-direction:column;gap:12px}.class-item{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border:1px solid #e5e7eb;border-radius:6px;background:#fff}.class-item.enrolled{background:#f0fdf4;border-color:#bbf7d0}.class-item.available{background:#f8fafc}.class-name{font-weight:500;color:#1f2937;margin-bottom:4px}.class-details{color:#6b7280;font-size:14px}.remove-btn{display:flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid #dc2626;border-radius:4px;background:#fff;color:#dc2626;cursor:pointer;font-size:12px;transition:all .2s ease}.remove-btn:hover{background:#fef2f2}.enroll-btn{display:flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid #059669;border-radius:4px;background:#fff;color:#059669;cursor:pointer;font-size:12px;transition:all .2s ease}.enroll-btn:hover{background:#f0fdf4}
