/* ============================================
   BÖ Panel - Global Styles (SON.html teması)
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { display: flex; background-color: #f0f2f5; min-height: 100vh; }

/* ── SIDEBAR ── */
.sidebar {
    width: 250px; height: 100vh; background-color: #1a252f; color: white;
    position: fixed; overflow-y: auto; box-shadow: 2px 0 5px rgba(0,0,0,0.2); z-index: 100;
    display: flex; flex-direction: column;
}
.sidebar h2 { text-align: center; padding: 25px 0; color: #3498db; font-size: 20px; border-bottom: 1px solid #2c3e50; }
.sidebar .menu-item {
    padding: 15px 20px; color: #bdc3c7; display: block; cursor: pointer;
    text-decoration: none; border-bottom: 1px solid #2c3e50; transition: 0.3s; font-size: 14px;
}
.sidebar .menu-item:hover, .sidebar .menu-item.active { background: #3498db; color: white; }
.dropdown-btn {
    width: 100%; text-align: left; background: #2c3e50; border: none; outline: none;
    padding: 15px 20px; color: white; cursor: pointer; font-size: 14px; transition: 0.3s;
    border-bottom: 1px solid #1a252f;
}
.dropdown-btn:hover { background: #3498db; }
.dropdown-container { display: none; background-color: #0d1217; }
.dropdown-container a {
    padding: 12px 30px; text-decoration: none; font-size: 13px; color: #95a5a6;
    display: block; border-bottom: 1px solid #1a252f; cursor: pointer;
}
.dropdown-container a:hover { color: #3498db; background: #1a252f; }
.active-dropdown { display: block; }

/* ── CONTENT ── */
.content { margin-left: 250px; width: calc(100% - 250px); display: flex; flex-direction: column; }
.hidden { display: none; }

/* ── HEADER ── */
.header-blue { background-color: #5b9bd5; color: white; text-align: center; padding: 20px; font-size: 22px; font-weight: bold; }

/* ── FORM AREA ── */
.form-area { background: #fff; margin: 20px; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: bold; color: #2c3e50; margin-bottom: 5px; }
.form-group input, .form-group select {
    width: 100%; padding: 10px; border: 1px solid #dee2e6; border-radius: 4px;
    font-size: 14px; font-family: inherit; outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: #3498db; }

/* ── TABLE ── */
.table-wrapper { background: white; margin: 0 20px 20px 20px; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); overflow-x: auto; }
.excel-table { width: 100%; border-collapse: collapse; min-width: 1000px; }
.excel-table th { background: #ebf1f9; border: 1px solid #8eb4e3; padding: 10px; font-size: 12px; }
.excel-table td { border: 1px solid #8eb4e3; padding: 8px; font-size: 13px; text-align: center; }
.avg-row { background-color: #fcf8e3 !important; font-weight: bold; color: #c09853; }

/* ── TYT INPUT GRID ── */
.tyt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 10px; margin-top: 10px; }
.input-card { background: #f8f9fa; padding: 10px; border-radius: 5px; border: 1px solid #dee2e6; text-align: center; }
.input-card label { font-size: 11px; font-weight: bold; display: block; margin-bottom: 5px; color: #2c3e50; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.dy-box { display: flex; gap: 5px; justify-content: center; margin-top: 5px; }
.input-mini { width: 42px; text-align: center; padding: 4px; border: 1px solid #ccc; font-size: 12px; border-radius: 3px; }

/* ── BUTTONS ── */
.btn-edit   { background: #3498db; color: white; border: none; padding: 5px 12px; border-radius: 3px; cursor: pointer; font-size: 12px; font-weight: bold; }
.btn-delete { background: #e74c3c; color: white; border: none; padding: 5px 12px; border-radius: 3px; cursor: pointer; font-size: 12px; font-weight: bold; }
.btn-print  { background: #27ae60; color: white; border: none; padding: 8px 15px; margin-bottom: 15px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }

/* ── SETTINGS ── */
.setting-label { display:block; font-weight:bold; font-size:13px; margin-bottom:6px; color:#2c3e50; }

/* ── STATUS COLORS ── */
.yapti    { background-color: #d4edda !important; color: #155724; }
.yapmadi  { background-color: #f8d7da !important; color: #721c24; }

/* ── DERS SECTION ── */
.ders-container { display: flex; gap: 20px; padding: 20px; align-items: flex-start; }
.chart-wrapper {
    flex: 1.5; background: white; padding: 20px; border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); text-align: center; position: sticky;
    top: 20px; display: flex; flex-direction: column; gap: 25px; max-height: 90vh; overflow-y: auto;
}
.net-chart-container { min-height: 280px; width: 100%; border-top: 1px solid #eee; padding-top: 15px; }

/* ── FILTER PANEL ── */
.filter-panel { display: flex; gap: 15px; background: #f8f9fa; padding: 12px; border-radius: 6px; margin-bottom: 15px; border: 1px solid #e2e8f0; align-items: center; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-size: 12px; font-weight: bold; color: #4a5568; }
.filter-group select, .filter-group input { padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 13px; outline: none; }

/* ── WEEKLY TASKS ── */
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 15px; padding: 20px; overflow-x: auto; }
.day-column { background: white; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); display: flex; flex-direction: column; min-width: 160px; border: 1px solid #e2e8f0; }
.day-header { padding: 12px; font-weight: bold; text-align: center; border-top-left-radius: 7px; border-top-right-radius: 7px; color: white; font-size: 14px; }
.day-pzt { background-color: #34495e; } .day-sal { background-color: #2980b9; } .day-car { background-color: #27ae60; }
.day-per { background-color: #8e44ad; } .day-cum { background-color: #d35400; } .day-cmt { background-color: #16a085; } .day-paz { background-color: #c0392b; }
.day-body { padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 10px; background-color: #fafafa; }
.task-card { background: white; border: 1px solid #cbd5e1; border-radius: 6px; padding: 8px; position: relative; font-size: 12px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.task-card.completed { background-color: #d4edda !important; border-color: #c3e6cb !important; color: #155724; }
.task-title { font-weight: bold; word-break: break-word; padding-right: 15px; }
.task-meta { font-size: 11px; color: #7f8c8d; }
.task-card.completed .task-meta { color: #155724; opacity: 0.8; }
.task-delete { position: absolute; top: 4px; right: 4px; background: none; border: none; color: #e74c3c; cursor: pointer; font-size: 11px; font-weight: bold; }
.task-check { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 11px; cursor: pointer; font-weight: 500; }

/* ── DELIVERY DATE ── */
.delivery-date-container { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 15px; font-size: 13px; font-weight: bold; color: #2c3e50; }
.delivery-date-container input { padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 13px; outline: none; font-family: inherit; cursor: pointer; }
.print-box { display: none; }

/* ── LOGIN PAGE ── */
body.login-body { display: flex; justify-content: center; align-items: center; background: #1a252f; min-height: 100vh; }
.login-box { background: white; border-radius: 12px; padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.login-logo { text-align: center; font-size: 26px; font-weight: bold; color: #3498db; margin-bottom: 10px; letter-spacing: 2px; }
.login-box h2 { text-align: center; color: #2c3e50; margin-bottom: 25px; font-size: 18px; }
.btn-login { width: 100%; padding: 12px; background: #3498db; color: white; border: none; border-radius: 6px; font-size: 15px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-login:hover { background: #2980b9; }
.login-links { text-align: center; margin-top: 15px; font-size: 13px; }
.login-links a { color: #3498db; text-decoration: none; }
.login-links a:hover { text-decoration: underline; }

/* ── ALERTS ── */
.alert { padding: 10px 15px; border-radius: 6px; margin-bottom: 15px; font-size: 13px; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* ── ADMIN STAT CARDS ── */
.stat-card { background: white; border-radius: 10px; padding: 25px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.stat-number { font-size: 42px; font-weight: bold; color: #2c3e50; }
.stat-label  { font-size: 14px; color: #7f8c8d; margin-top: 5px; }

/* ── TEACHER - STUDENT CARD ── */
/* ── PANEL SIDEBAR PROFILE ── */
.panel-profile        { padding: 16px 12px; border-bottom: 1px solid #2c3e50; text-align: center; }
.panel-avatar-img     { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #3498db; display: block; margin: 0 auto 8px; }
.panel-avatar-letter  { width: 80px; height: 80px; border-radius: 50%; background: #3498db; color: white; font-size: 34px; font-weight: bold; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.panel-student-name   { font-size: 15px; font-weight: bold; color: #ecf0f1; line-height: 1.3; }
.panel-student-gender { font-size: 12px; color: #95a5a6; margin-top: 4px; }

.student-card { background: white; border-radius: 10px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); display: flex; gap: 15px; align-items: center; transition: 0.2s; border: 2px solid transparent; }
.student-card:hover { border-color: #3498db; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.student-avatar { width: 80px; height: 80px; border-radius: 50%; background: #3498db; color: white; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: bold; flex-shrink: 0; overflow: hidden; box-shadow: 0 2px 8px rgba(52,152,219,0.4); }
.student-info { flex: 1; }
.student-name  { font-size: 16px; font-weight: bold; color: #2c3e50; }
.student-email { font-size: 12px; color: #7f8c8d; margin-top: 2px; }
.progress-bar-wrap { background: #e9ecef; border-radius: 10px; height: 8px; margin-top: 8px; overflow: hidden; }
.progress-bar      { height: 100%; background: #27ae60; border-radius: 10px; transition: width 0.3s; }
.progress-label    { font-size: 11px; color: #7f8c8d; margin-top: 4px; }

/* ── PRINT ── */
@media print {
    @page { size: A4 landscape; margin: 8mm; }
    body { background: white; }
    .sidebar, .form-area, .btn-print, .filter-panel, td:last-child, th:last-child, .task-delete, .task-check, .week-form { display: none !important; }
    .content { margin-left: 0 !important; width: 100% !important; }
    .table-wrapper { box-shadow: none; margin: 0; padding: 0; width: 100% !important; }
    .excel-table { min-width: 100% !important; width: 100% !important; table-layout: auto; }
    .excel-table th, .excel-table td { font-size: 9px !important; padding: 4px 2px !important; }
    .print-box { display: inline-block !important; width: 18px; height: 18px; border: 2px solid #333; border-radius: 3px; vertical-align: middle; }
    .week-grid { grid-template-columns: repeat(7, 1fr) !important; gap: 5px !important; padding: 0 !important; }
    .day-column { min-width: 0 !important; box-shadow: none !important; border: 1px solid #000 !important; }
    .day-header { color: #000 !important; background: #eee !important; border-bottom: 1px solid #000 !important; font-size: 11px !important; padding: 5px !important; }
    .task-card { border: 1px solid #666 !important; box-shadow: none !important; padding: 4px !important; margin-bottom: 4px; }
    .delivery-date-container input { border: none !important; padding: 0 !important; background: transparent !important; font-weight: bold; appearance: none; -webkit-appearance: none; }
    .delivery-date-container input::-webkit-calendar-picker-indicator { display: none !important; }
}
