/* --- MEVCUT STILLER KORUNDU --- */
:root { --bg-dark: #050505; --neon-orange: #ff5e00; --neon-blue: #00f2ff; --glass-border: rgba(255, 255, 255, 0.08); --text-muted: #8892b0; --font-head: 'Orbitron', sans-serif; --font-body: 'Inter', sans-serif; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; }
body { background-color: var(--bg-dark); color: white; font-family: var(--font-body); height: 100vh; overflow: hidden; position: relative; }

.background-glows { position: fixed; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.glow-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: float 10s infinite alternate; }
.orb-1 { width: 300px; height: 300px; background: var(--neon-orange); top: -50px; left: -50px; }
.orb-2 { width: 400px; height: 400px; background: #0044ff; bottom: -100px; right: -100px; }
@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(30px, 50px); } }

.screen, .sub-view, .modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-dark); z-index: 10; display: flex; flex-direction: column; transition: opacity 0.4s ease; }
.hidden { display: none !important; opacity: 0; pointer-events: none; }
.active { display: flex !important; opacity: 1; pointer-events: all; }

#login-screen { justify-content: center; align-items: center; padding: 20px; background: transparent; }
.glass-container { background: rgba(20, 20, 30, 0.6); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); padding: 40px; border-radius: 30px; width: 100%; max-width: 380px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.logo-box { width: 80px; height: 80px; margin: 0 auto 20px; border: 1px solid var(--neon-orange); border-radius: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(255, 94, 0, 0.2); background: rgba(255,255,255,0.05); }
.sigma-symbol { font-size: 3rem; color: var(--neon-orange); font-family: var(--font-head); }
.brand-title { font-family: var(--font-head); margin-bottom: 5px; font-size: 1.5rem; }
.highlight { color: var(--neon-orange); }
.subtitle { color: var(--text-muted); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 30px; }

.modern-input { background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: 15px; margin-bottom: 20px; display: flex; align-items: center; padding: 0 20px; height: 60px; transition: 0.3s; }
.modern-input:focus-within { border-color: var(--neon-orange); box-shadow: 0 0 15px rgba(255, 94, 0, 0.15); }
.modern-input input { background: none; border: none; outline: none; color: white; width: 100%; height: 100%; font-size: 1rem; margin-left: 10px; }
.modern-input i { color: var(--text-muted); }
.btn-neon { width: 100%; padding: 18px; background: linear-gradient(90deg, #ff5e00, #ff9100); border: none; border-radius: 15px; color: white; font-weight: bold; font-family: var(--font-head); cursor: pointer; box-shadow: 0 5px 20px rgba(255, 94, 0, 0.3); transition: 0.2s; }
.btn-neon:active { transform: scale(0.98); }

.glass-header { height: 90px; display: flex; align-items: flex-end; padding: 15px 20px; background: linear-gradient(180deg, rgba(0,0,0,0.9), transparent); border-bottom: 1px solid var(--glass-border); z-index: 20; flex-shrink: 0; }
.header-content, .header-center { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.header-center { justify-content: center; flex-direction: column; }
.user-info h3 { font-family: var(--font-head); font-size: 1.2rem; }
.avatar-box img { width: 50px; border-radius: 15px; border: 2px solid rgba(255,255,255,0.1); }
.back-btn { background: rgba(255,255,255,0.1); width: 40px; height: 40px; border: none; border-radius: 12px; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.status-indicator { width: 10px; height: 10px; border-radius: 50%; }
.blue-pulse { background: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue); animation: p-blue 2s infinite; }
.orange-pulse { background: var(--neon-orange); box-shadow: 0 0 10px var(--neon-orange); animation: p-orange 2s infinite; }
@keyframes p-blue { 0% { box-shadow: 0 0 0 0 rgba(0,242,255,0.4); } 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes p-orange { 0% { box-shadow: 0 0 0 0 rgba(255,94,0,0.4); } 100% { box-shadow: 0 0 0 10px transparent; } }

.dashboard-grid, .grid-menu-container { padding: 25px; display: grid; gap: 20px; overflow-y: auto; height: 100%; align-content: start; }
.grid-menu-container { grid-template-columns: 1fr 1fr; }
.premium-card { display: flex; align-items: center; background: rgba(30,30,40,0.6); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); padding: 20px; border-radius: 25px; height: 130px; position: relative; overflow: hidden; cursor: pointer; transition: 0.3s; }
.premium-card:active { transform: scale(0.96); }
.card-bg-icon { position: absolute; right: -20px; bottom: -20px; font-size: 8rem; opacity: 0.05; transform: rotate(-15deg); }
.card-content-flex { display: flex; align-items: center; width: 100%; z-index: 2; }
.icon-box { width: 60px; height: 60px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: rgba(255,255,255,0.05); margin-right: 15px; }
.blue-glow { color: var(--neon-blue); box-shadow: 0 0 15px rgba(0,242,255,0.1); }
.orange-glow { color: var(--neon-orange); box-shadow: 0 0 15px rgba(255,94,0,0.1); }
.corporate { border-left: 4px solid var(--neon-blue); }
.private { border-left: 4px solid var(--neon-orange); }

.grid-card { background: rgba(30,30,45,0.5); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 20px; aspect-ratio: 1.2/1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: 0.3s; }
.grid-card:active { transform: scale(0.95); }
.grid-icon { font-size: 2rem; color: var(--text-muted); transition: 0.3s; }
.grid-card span { font-weight: 500; font-size: 0.9rem; }
.blue-theme:hover { border-color: var(--neon-blue); background: rgba(0,242,255,0.1); }
.blue-theme:hover .grid-icon { color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue); }
.orange-theme:hover { border-color: var(--neon-orange); background: rgba(255,94,0,0.1); }
.orange-theme:hover .grid-icon { color: var(--neon-orange); text-shadow: 0 0 10px var(--neon-orange); }
.finance-card { background: linear-gradient(135deg, rgba(255,94,0,0.05), transparent); border: 1px solid rgba(255,94,0,0.2); }

.sub-view { z-index: 50; background: var(--bg-dark); }
.student-container { padding: 20px; padding-bottom: 80px; }
.student-card { background: rgba(30,30,45,0.8); border: 1px solid var(--glass-border); border-left: 4px solid var(--neon-orange); padding: 15px; border-radius: 15px; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; cursor: pointer; position: relative; overflow: hidden; }
.student-card.finished { border-left-color: #555; opacity: 0.6; filter: grayscale(0.8); }
.list-actions { display: flex; gap: 8px; margin-left: auto; z-index: 2; }
.list-btn { width: 35px; height: 35px; border-radius: 8px; border: none; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; transition: 0.2s; }
.btn-archive { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.btn-delete { background: rgba(255, 71, 87, 0.2); color: #ff4757; }
.list-btn:hover { transform: scale(1.1); }
.s-avatar img { width: 50px; height: 50px; border-radius: 50%; }
.s-price { margin-left: auto; font-weight: bold; color: var(--neon-orange); }
.fab-btn { position: absolute; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--neon-orange); border-radius: 50%; border: none; color: white; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 20px rgba(255,94,0,0.4); cursor: pointer; }
.blue-fab { background: var(--neon-blue); box-shadow: 0 5px 20px rgba(0, 242, 255, 0.4); }

.modal-overlay { z-index: 100; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); }
.modal-content { background: #151520; width: 90%; max-width: 400px; padding: 20px; border-radius: 20px; border: 1px solid var(--neon-orange); }
.modal-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.close-modal { background: none; border: none; color: #888; font-size: 1.2rem; cursor: pointer; }
.input-row { display: flex; gap: 10px; }
.modern-select select { width: 100%; background: rgba(0,0,0,0.3); color: white; padding: 15px; border-radius: 15px; border: 1px solid var(--glass-border); outline: none; }

.profile-scroll-area { padding: 20px; overflow-y: auto; padding-bottom: 80px; height: 100%; }
.finance-summary-card { background: linear-gradient(135deg, #1e1e2e, #161620); padding: 15px; border-radius: 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.f-item { display: flex; flex-direction: column; align-items: center; flex: 1; }
.f-item span { font-size: 1.2rem; font-weight: bold; font-family: var(--font-head); margin-top: 5px; }
.divider-v { width: 1px; height: 30px; background: rgba(255,255,255,0.1); }
.action-buttons { display: flex; gap: 15px; margin-bottom: 30px; }
.action-btn { flex: 1; padding: 15px; border-radius: 15px; border: none; font-weight: bold; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.2s; }
.action-btn:active { transform: scale(0.95); }
.add-lesson-btn { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.trial-btn { background: rgba(155, 89, 182, 0.2); color: #9b59b6; border: 1px solid rgba(155, 89, 182, 0.3); }
.payment-btn { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.section-title { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.history-item { background: rgba(255, 255, 255, 0.03); padding: 15px; border-radius: 12px; display: flex; align-items: center; gap: 15px; margin-bottom: 10px; position: relative; padding-right: 90px; }
.history-actions { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; gap: 5px; opacity: 0; pointer-events: none; transition: 0.2s; }
.history-item:hover .history-actions { opacity: 1; pointer-events: all; }
.hist-btn { width: 30px; height: 30px; border-radius: 8px; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: white; }
.edit-history-btn { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.delete-history-btn { background: rgba(255, 71, 87, 0.2); color: #ff4757; }
.h-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.h-icon.lesson { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }
.h-icon.trial { background: rgba(155, 89, 182, 0.1); color: #9b59b6; }
.h-icon.payment { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.h-info { flex: 1; }
.h-info span { display: block; font-size: 0.95rem; }
.h-info small { color: var(--text-muted); font-size: 0.8rem; }
.h-amount { font-weight: bold; font-family: var(--font-head); }
.h-amount.negative { color: #ff4757; }
.h-amount.positive { color: #2ed573; }
.h-amount.neutral { color: #9b59b6; }
.empty-history { text-align: center; color: #666; font-size: 0.8rem; margin-top: 20px; }
.filter-tabs { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 5px; }
.filter-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: var(--text-muted); padding: 8px 16px; border-radius: 20px; cursor: pointer; white-space: nowrap; transition: 0.2s; font-size: 0.85rem; }
.filter-btn.active { background: var(--neon-orange); color: white; border-color: var(--neon-orange); }
.hw-status-btn { background: rgba(0,242,255,0.1); color: var(--neon-blue); border: 1px solid rgba(0,242,255,0.3); padding: 5px 10px; border-radius: 8px; font-size: 0.75rem; cursor: pointer; }
.hw-badge { background: rgba(46, 213, 115, 0.2); color: #2ed573; padding: 5px 8px; border-radius: 8px; font-size: 0.75rem; font-weight: bold; border: 1px solid rgba(46, 213, 115, 0.3); }
.day-section { margin-bottom: 25px; }
.day-header { color: var(--neon-blue); font-family: var(--font-head); font-size: 1rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 5px; margin-bottom: 10px; letter-spacing: 1px; }
.schedule-card { background: rgba(30, 30, 45, 0.6); border: 1px solid var(--glass-border); border-radius: 15px; padding: 15px; display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.sch-time { font-family: var(--font-head); color: white; font-weight: bold; background: rgba(255, 255, 255, 0.1); padding: 5px 10px; border-radius: 8px; font-size: 0.9rem; }
.sch-info h5 { margin: 0; font-size: 1rem; color: white; }
.sch-info p { margin: 0; font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.sch-loc { margin-left: auto; font-size: 1.2rem; color: var(--neon-orange); }
.class-card { background: rgba(30, 30, 45, 0.8); border: 1px solid var(--glass-border); border-left: 4px solid var(--neon-blue); padding: 15px; border-radius: 15px; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; position: relative; }
.class-icon { width: 50px; height: 50px; border-radius: 10px; background: rgba(0, 242, 255, 0.1); color: var(--neon-blue); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

/* --- SINIF DEKORU --- */
.classroom-front { text-align: center; margin-bottom: 20px; padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.blackboard { background: #000; border: 6px solid #444; border-radius: 8px; height: 70px; margin-bottom: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; gap: 20px; }
.math-doodle { font-family: 'Times New Roman', serif; font-style: italic; color: var(--neon-blue); font-size: 1.5rem; opacity: 0.8; }
.teacher-container { display: flex; flex-direction: column; align-items: center; width: fit-content; margin-right: auto; margin-left: 10px; margin-top: 15px; }
.teacher-avatar-icon { font-size: 3.5rem; color: var(--neon-blue); margin-bottom: 5px; filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.3)); }
.teacher-name-tag { background: rgba(0, 242, 255, 0.1); color: var(--neon-blue); padding: 5px 15px; border-radius: 10px; font-weight: bold; font-size: 0.8rem; border: 1px solid rgba(0, 242, 255, 0.2); }
.classroom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px 15px; align-content: start; }
.desk:nth-child(4n+2) { margin-right: 40px; }
.desk { aspect-ratio: 1/1; background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; transition: 0.3s; min-height: 70px; }
.desk.occupied { background: rgba(30, 30, 45, 0.8); border: 1px solid var(--glass-border); border-style: solid; }
.student-avatar { text-align: center; pointer-events: none; }
.student-avatar i { font-size: 1.5rem; display: block; margin-bottom: 3px; }
.girl-icon { color: #fd79a8; text-shadow: 0 0 10px rgba(253, 121, 168, 0.4); }
.boy-icon { color: #0984e3; text-shadow: 0 0 10px rgba(9, 132, 227, 0.4); }
.student-name-tag { font-size: 0.6rem; color: white; font-weight: bold; display: block; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60px; }
@keyframes jiggle { 0% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } 100% { transform: rotate(-2deg); } }
.desk.jiggle { animation: jiggle 0.3s infinite; border-color: var(--neon-orange); background: rgba(255, 94, 0, 0.1); z-index: 10; }
.gender-radio { cursor: pointer; }
.gender-radio input { display: none; }
.g-box { padding: 10px 20px; border-radius: 10px; border: 1px solid var(--glass-border); display: inline-block; transition: 0.3s; }
.gender-radio input:checked + .g-box.girl { background: rgba(253, 121, 168, 0.3); border-color: #fd79a8; }
.gender-radio input:checked + .g-box.boy { background: rgba(9, 132, 227, 0.3); border-color: #0984e3; }
.info-card { background: rgba(30, 30, 45, 0.6); border: 1px solid var(--glass-border); border-radius: 15px; margin-bottom: 15px; overflow: hidden; }
.card-head { background: rgba(255,255,255,0.03); padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--glass-border); font-family: var(--font-head); font-size: 0.9rem; }
.card-body { padding: 15px; }
.mini-stat { font-size: 1.1rem; font-weight: bold; color: white; margin-top: 5px; }
.empty-msg { color: #666; font-size: 0.8rem; font-style: italic; text-align: center; }
.sm-btn { background: rgba(255,255,255,0.1); border: none; width: 25px; height: 25px; border-radius: 5px; color: white; cursor: pointer; }
.homework-item { background: rgba(0,0,0,0.2); padding: 10px; border-radius: 8px; margin-bottom: 5px; font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; position: relative; padding-right: 40px; }
.edit-hw-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #60a5fa; cursor: pointer; font-size: 0.9rem; }

/* TOPLU ÖDEV BUTONU */
.bulk-hw-btn { display: block; margin: 15px auto 0 auto; background: linear-gradient(90deg, #00f2ff, #0077ff); color: white; border: none; padding: 10px 20px; border-radius: 20px; font-family: var(--font-head); font-size: 0.85rem; font-weight: bold; cursor: pointer; box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3); transition: 0.2s; }
.bulk-hw-btn:active { transform: scale(0.96); }

/* --- YENİ EKLENEN: GELİŞMİŞ DERS PROGRAMI STİLLERİ --- */
.schedule-controls { display: flex; gap: 10px; margin-bottom: 15px; }
.control-btn { background: rgba(255,255,255,0.05); color: white; border: 1px solid var(--glass-border); padding: 10px 15px; border-radius: 10px; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.control-btn:hover { background: rgba(0,242,255,0.1); border-color: var(--neon-blue); }
#btn-take-attendance-auto { background: linear-gradient(90deg, rgba(46, 213, 115, 0.2), rgba(30, 144, 255, 0.2)); border-color: #2ed573; width: 100%; justify-content: center; font-weight: bold; }

.schedule-table-wrapper { overflow-x: auto; border-radius: 15px; border: 1px solid var(--glass-border); }
.modern-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.modern-table th, .modern-table td { border: 1px solid rgba(255,255,255,0.05); padding: 10px; text-align: center; }
.modern-table th { background: rgba(0,0,0,0.3); color: var(--text-muted); font-weight: normal; font-size: 0.85rem; }
.weekend-col { background: rgba(255, 94, 0, 0.05); color: #ff9f43 !important; }

.sch-cell { height: 70px; cursor: pointer; transition: 0.2s; position: relative; font-size: 0.8rem; }
.sch-cell:hover { background: rgba(255,255,255,0.03); }
.sch-cell.filled { background: rgba(0, 242, 255, 0.1); border: 1px solid rgba(0, 242, 255, 0.2); }
.sch-cell-content { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.cell-class-name { font-weight: bold; color: white; font-size: 0.9rem; }
.cell-time { font-size: 0.7rem; color: #888; margin-top: 3px; }
.cell-empty-icon { opacity: 0; color: #555; font-size: 1.2rem; }
.sch-cell:hover .cell-empty-icon { opacity: 1; }

.lunch-break-row td { background: rgba(255, 234, 167, 0.1); color: #ffeaa7; font-size: 0.8rem; height: 40px; letter-spacing: 2px; font-weight: bold; }

/* Sınıf Seçim Listesi Butonu */
.btn-select-cls { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); padding: 15px; border-radius: 10px; color: white; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.btn-select-cls:hover { background: rgba(0, 242, 255, 0.1); border-color: var(--neon-blue); }

/* Yoklama Satırları (3 Durumlu) */
.att-row { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: rgba(255,255,255,0.03); margin-bottom: 8px; border-radius: 10px; }
.att-status-group { display: flex; gap: 5px; }
.att-btn { width: 35px; height: 35px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: #555; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.att-btn.active.present { background: #2ed573; color: black; border-color: #2ed573; box-shadow: 0 0 10px rgba(46, 213, 115, 0.4); }
.att-btn.active.late { background: #ffa502; color: black; border-color: #ffa502; box-shadow: 0 0 10px rgba(255, 165, 2, 0.4); }
.att-btn.active.absent { background: #ff4757; color: white; border-color: #ff4757; box-shadow: 0 0 10px rgba(255, 71, 87, 0.4); }
/* --- ETKİNLİKLER SAYFASI STİLLERİ --- */
.events-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 sütun */
    grid-template-rows: 1fr 1fr;    /* 2 satır */
    gap: 15px;
    padding: 15px;
    height: calc(100% - 90px);
    padding-bottom: 80px;
}

.event-quadrant {
    background: rgba(30, 30, 45, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.quad-title {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #dfe6e9;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quad-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* Etkinlik Kartı */
.event-item {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid #888;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 8px;
    position: relative;
}

.event-item h6 { margin: 0; font-size: 0.85rem; color: white; }
.event-item p { margin: 2px 0 0 0; font-size: 0.75rem; color: #aaa; }
.event-date-badge {
    position: absolute; top: 8px; right: 8px;
    font-size: 0.65rem; color: var(--neon-blue);
    background: rgba(0, 242, 255, 0.1); padding: 2px 5px; border-radius: 4px;
}
.btn-del-event {
    position: absolute; bottom: 5px; right: 5px;
    background: none; border: none; color: #ff4757; cursor: pointer; opacity: 0.5; font-size: 0.8rem;
}
.btn-del-event:hover { opacity: 1; }

/* Modal İçindeki Dinamik Alanlar */
.dynamic-fields {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px dashed var(--glass-border);
}

/* Mobilde tek sütuna düşmesin, 4'lü görünsün istiyorsan yukarıdaki grid kalabilir. 
   Ama çok sıkışırsa aşağıdakini açabilirsin (Opsiyonel): */
/* Mobilde tek sütuna düşmesin, 4'lü görünsün istiyorsan yukarıdaki grid kalabilir. */
@media (max-width: 400px) {
    .events-grid-layout { grid-template-columns: 1fr; grid-template-rows: auto; }
    .event-quadrant { min-height: 200px; }
}

/* --- YENİLENMİŞ KURUMSAL DENEME TAKİP STİLLERİ --- */
.trial-card {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.9), rgba(20, 20, 30, 0.95));
    border: 1px solid var(--glass-border);
    border-left: 4px solid #6c5ce7;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.trial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.2);
    border-color: #6c5ce7;
}
.trial-card:active { transform: scale(0.98); }

.trial-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; margin-bottom: 5px; }
.trial-publisher { font-weight: 900; font-size: 1.2rem; color: white; font-family: var(--font-head); letter-spacing: 1px; }
.trial-scope-badge { background: rgba(108, 92, 231, 0.15); color: #a29bfe; padding: 5px 12px; border-radius: 8px; font-size: 0.75rem; border: 1px solid rgba(108, 92, 231, 0.3); font-weight: bold; text-transform: uppercase; }

.trial-info-row { display: flex; gap: 20px; font-size: 0.9rem; color: #b2bec3; align-items: center; }
.trial-info-row i { color: #6c5ce7; font-size: 1rem; filter: drop-shadow(0 0 5px rgba(108, 92, 231, 0.5)); }

/* Veri Giriş Satırları (Daha modern liste) */
.score-entry-row {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: 0.2s;
}
.score-entry-row:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255,255,255,0.1); }

.student-label { font-weight: bold; display: flex; align-items: center; gap: 15px; font-size: 1rem; }
.student-label i { font-size: 1.4rem; }

.score-inputs { display: flex; align-items: center; gap: 10px; }
.mini-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: white;
    width: 65px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    outline: none;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.2s;
}
.mini-input:focus { border-color: var(--neon-blue); box-shadow: 0 0 10px rgba(0, 242, 255, 0.2); }
.mini-input::placeholder { font-weight: normal; font-size: 0.8rem; opacity: 0.5; }

.net-display {
    margin-left: 10px;
    font-weight: 900;
    color: var(--neon-blue);
    background: rgba(0, 242, 255, 0.05);
    padding: 8px 15px;
    border-radius: 10px;
    min-width: 80px;
    text-align: center;
    border: 1px solid rgba(0, 242, 255, 0.1);
    font-family: var(--font-head);
}

/* Profildeki Sonuç Listesi */
.exam-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    margin-bottom: 8px;
    border-left: 3px solid #a29bfe;
}
.exam-net-badge {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: bold;
    font-family: var(--font-head);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}
/* --- YAZILI SINAV MODÜLÜ STİLLERİ --- */
.exam-card {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.9), rgba(20, 20, 30, 0.95));
    border: 1px solid var(--glass-border);
    border-left: 4px solid #f0932b; /* Turuncu Çizgi */
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(240, 147, 43, 0.2);
    border-color: #f0932b;
}
.exam-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
.exam-title { font-weight: 900; font-size: 1.1rem; color: white; font-family: var(--font-head); }
.exam-badge { background: rgba(240, 147, 43, 0.15); color: #f0932b; padding: 5px 12px; border-radius: 8px; font-size: 0.75rem; border: 1px solid rgba(240, 147, 43, 0.3); font-weight: bold; }

/* Profildeki Yazılı Sonuç Listesi */
.written-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    margin-bottom: 8px;
    border-left: 3px solid #f0932b;
}
.written-score-badge {
    background: linear-gradient(135deg, #f0932b, #ffbe76);
    color: #1e272e;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: bold;
    font-family: var(--font-head);
    box-shadow: 0 5px 15px rgba(240, 147, 43, 0.3);
}
/* --- MAAŞ TAKİBİ STİLLERİ --- */
.wallet-animation-box { position: relative; margin-bottom: 30px; animation: floatWallet 3s infinite ease-in-out; }
.wallet-icon-main { font-size: 6rem; background: linear-gradient(135deg, #f1c40f, #e67e22); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 20px rgba(241, 196, 15, 0.4)); }
@keyframes floatWallet { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.salary-label { font-size: 0.9rem; color: #888; letter-spacing: 2px; margin-bottom: 10px; font-weight: bold; }
.countdown-timer { font-family: 'Orbitron', sans-serif; font-size: 2.5rem; font-weight: 900; color: white; text-shadow: 0 0 20px rgba(0, 242, 255, 0.5); letter-spacing: 1px; }
.late-timer { color: #ff4757; text-shadow: 0 0 20px rgba(255, 71, 87, 0.5); }
.salary-amount-display { margin-top: 10px; font-size: 1.2rem; color: #2ed573; font-weight: bold; opacity: 0.8; }

#salary-action-buttons { display: flex; flex-direction: column; gap: 15px; width: 80%; margin-top: 30px; animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-salary-action { padding: 20px; border: none; border-radius: 15px; font-size: 1rem; font-weight: bold; cursor: pointer; color: white; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.3); transition: 0.2s; }
.btn-salary-action:active { transform: scale(0.95); }
.btn-salary-action.green { background: linear-gradient(90deg, #2ed573, #26de81); }
.btn-salary-action.red { background: linear-gradient(90deg, #ff4757, #ff6b81); }

@keyframes popIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }

/* Para Yağmuru Efekti */
.money-rain-emoji { position: absolute; top: -50px; font-size: 2rem; animation: fall linear forwards; z-index: 5; opacity: 0.8; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }
/* --- GİRİŞ EKRANI ESTETİK İYİLEŞTİRME (EN ALTA EKLE) --- */

/* 1. Izgara yapısını değiştir: Alt alta ve ortalı */
/* --- GİRİŞ EKRANI ESTETİK İYİLEŞTİRME (DÜZELTİLMİŞ) --- */

.dashboard-grid {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    /* justify-content: center;  <-- BUNU SİLİYORUZ, SIKIŞTIRMASIN */
    justify-content: flex-start; /* Yukarıdan başlasın */
    padding-top: 30px; /* Üstten biraz boşluk */
    gap: 25px; /* Kartlar arası boşluk */
    
    height: auto !important; /* Sabit yüksekliği kaldırdık! */
    min-height: calc(100vh - 100px); /* Ekranı doldursun ama taşarsa uzasın */
    overflow-y: auto; /* Gerekirse kaydır */
}

/* 2. Kartları Kare Yap ve %75 Genişlik Ver */
.premium-card {
    width: 75%;
    aspect-ratio: 1 / 1; /* Tam kare olması için en-boy oranı */
    height: auto !important; /* Eski sabit yüksekliği iptal et */
    flex-direction: column; /* İçeriği (İkon ve Yazı) alt alta diz */
    justify-content: center;
    text-align: center;
    border-radius: 35px; /* Daha modern, yuvarlak köşeler */
    background: rgba(30, 30, 45, 0.7); /* Biraz daha koyu ve şık cam efekti */
    box-shadow: 0 15px 40px rgba(0,0,0,0.4); /* Derinlik ver */
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 3. Kartın İç Düzenini Ayarla */
.card-content-flex {
    flex-direction: column; /* İkon üste, yazı alta gelsin */
    align-items: center;
    margin: 0 !important; /* Kaymaları sıfırla */
    gap: 15px;
}

/* 4. İkon Kutularını Büyüt ve Güzelleştir */
.icon-box {
    width: 90px;
    height: 90px;
    font-size: 3rem;
    margin-right: 0 !important; /* Eski sağ boşluğu sil */
    border-radius: 50%; /* Tam yuvarlak yap */
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03); /* Hafif arka plan */
}

/* 5. Yazıları Okunaklı Yap */
.text-box h2 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    font-weight: 900;
    letter-spacing: 1px;
}
.text-box p {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 300;
}

/* 6. Gereksiz Detayları Temizle */
.premium-card .arrow { display: none; } /* Sağdaki küçük oku gizle */
.card-bg-icon { 
    opacity: 0.04; 
    font-size: 15rem; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) rotate(-10deg); 
    pointer-events: none;
}
/* --- AÇILIR PENCERELERİ (MODAL) ORTALAMA --- */
.modal-overlay {
    justify-content: center !important; /* Dikeyde ortala */
    align-items: center !important;     /* Yatayda ortala */
    padding-bottom: 50px; /* Mobilde klavye açılınca çok yukarı kaçmasın diye pay */
}
/* --- ADMIN PANELİ LİSTE TASARIMI --- */
.admin-user-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}
.admin-user-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
}
.u-info h5 { margin: 0; font-size: 1rem; color: white; }
.u-info p { margin: 2px 0 0 0; font-size: 0.75rem; color: #888; }
.u-info .school-badge { background: rgba(0, 242, 255, 0.1); color: var(--neon-blue); padding: 2px 6px; border-radius: 4px; font-size: 0.65rem; margin-left: 5px; }

.u-status { text-align: right; }
.days-badge { font-weight: bold; padding: 5px 10px; border-radius: 8px; font-size: 0.8rem; display: block; margin-bottom: 5px; }
.days-badge.active { background: rgba(46, 213, 115, 0.1); color: #2ed573; border: 1px solid rgba(46, 213, 115, 0.3); }
.days-badge.expired { background: rgba(255, 71, 87, 0.1); color: #ff4757; border: 1px solid rgba(255, 71, 87, 0.3); }

.u-actions { display: flex; gap: 5px; justify-content: flex-end; }
.u-btn { width: 30px; height: 30px; border-radius: 6px; border: none; cursor: pointer; color: white; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.u-btn:hover { transform: scale(1.1); }
.u-edit { background: rgba(255, 165, 2, 0.2); color: #ffa502; }
.u-del { background: rgba(255, 71, 87, 0.2); color: #ff4757; }
.u-stat { background: rgba(0, 242, 255, 0.2); color: var(--neon-blue); }
/* ========================================= */
/* --- MOBİL İYİLEŞTİRME VE DÜZELTMELER --- */
/* ========================================= */

/* 1. SORUN: Listelerin Aşağı Kaymaması Çözümü */
.student-container, 
#classes-container, 
#schedule-container, 
#trials-list-container, 
#exams-list-container {
    height: calc(100% - 80px) !important; /* Ekranın altını taşır */
    overflow-y: auto !important; /* Kaydırma çubuğunu aç */
    -webkit-overflow-scrolling: touch; /* iPhone'da yağ gibi kayması için */
}

/* 2. SORUN: Ödev/Geçmiş Butonlarının Görünmemesi */
/* Telefonda "üzerine gelme" olmadığı için butonları hep açık yapıyoruz */
.history-actions {
    opacity: 1 !important;
    pointer-events: auto !important;
    background: rgba(0,0,0,0.5); /* Okunabilirlik için hafif arka plan */
    padding: 5px;
    border-radius: 8px;
}

/* 3. SORUN: Maaş Sayacı Mobilde Sıkışmasın */
#salary-main-content {
    justify-content: flex-start !important; /* Ortalamak yerine yukarıdan başlat */
    padding-top: 50px;
}
.countdown-timer {
    font-size: 1.8rem !important; /* Telefonta taşmaması için fontu kıstık */
}
/* ========================================= */
/* --- MOBİL KAYDIRMA (SCROLL) KESİN ÇÖZÜM --- */
/* ========================================= */

/* 1. Kapsayıcıların yüksekliğini sabitlemek yerine esnek yapıyoruz */
.student-container, 
#classes-container, 
#schedule-container, 
#trials-list-container, 
#exams-list-container,
#salary-main-content,
.events-grid-layout {
    flex: 1 !important; /* Başlıktan kalan tüm alanı kapla */
    height: auto !important; /* Sabit yüksekliği iptal et */
    overflow-y: auto !important; /* Kaydırmayı aç */
    padding-bottom: 100px !important; /* En alttaki butonun altında kalmasın */
    -webkit-overflow-scrolling: touch; /* iPhone için yağ gibi kaydırma */
}

/* 2. Butonların mobilde görünmeme sorunu */
.history-actions {
    opacity: 1 !important;
    pointer-events: auto !important;
    background: rgba(0,0,0,0.6);
    padding: 5px;
    border-radius: 8px;
    position: absolute;
    right: 10px;
}

/* 3. Maaş Sayacı Düzeni */
#salary-main-content {
    justify-content: flex-start !important;
    padding-top: 20px !important;
}
/* Ödev Silme Butonu Stili */
.delete-hw-btn {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 10px;
    opacity: 0.7;
    transition: 0.2s;
}
.delete-hw-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}
/* --- ÖDEV BUTONLARI DÜZELTME (EN ALTA EKLE) --- */

/* Satırın yapısını esnek yap */
.homework-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-right: 10px !important; /* Sağdaki boşluğu azalt */
    gap: 10px; /* İçerik ile butonlar arası boşluk */
}

/* Edit butonunun eski yapışkan özelliğini iptal et */
.edit-hw-btn {
    position: static !important; /* Absolute yerine Static */
    transform: none !important;
    margin: 0 !important;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Yuvarlak onay butonu */
.check-btn {
    margin: 0 5px !important;
}

/* Silme butonu */
.delete-hw-btn {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    opacity: 1 !important; /* Mobilde hep görünsün */
}
/* --- PROFİL SAYFASI YENİ DÜZENLEMELER --- */

/* Kutu içi kaydırma alanı (Veri çoksa aşağı kayar) */
.profile-scroll-box {
    max-height: 200px; /* Kutunun maksimum boyu */
    overflow-y: auto;  /* Veri taşarsa kaydırma çubuğu çıkar */
    padding-right: 5px; /* Kaydırma çubuğu için boşluk */
}

/* Scrollbar tasarımı (İnce ve şık) */
.profile-scroll-box::-webkit-scrollbar { width: 5px; }
.profile-scroll-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

/* Özel Ders Listesi Elemanı */
.profile-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid transparent;
}

/* Özel Ders Uyarı Metni */
.profile-warning-note {
    font-size: 0.7rem;
    color: #ffd32a; /* Dikkat çekici sarı */
    background: rgba(255, 211, 42, 0.1);
    padding: 8px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px dashed rgba(255, 211, 42, 0.3);
    text-align: center;
    font-style: italic;
    line-height: 1.3;
}