* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body, html { height: 100%; background-color: #f4f6f9; }

.hidden { display: none !important; }

/* LOGIN */
.login-wrapper { height: 100vh; display: flex; justify-content: center; align-items: center; background: linear-gradient(135deg, #1a252f, #2c3e50); }
.login-box { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.3); width: 100%; max-width: 400px; text-align: center; }
.login-box h2 { margin-bottom: 20px; color: #333; }
.login-box input { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; }
.login-box button { width: 100%; padding: 12px; background: #007bff; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: bold; margin-top: 10px; }
.login-box button:hover { background: #0056b3; }
.error-msg { color: #dc3545; font-size: 14px; margin-bottom: 10px; font-weight: 500; }
.success-msg { color: #28a745; font-size: 14px; margin-bottom: 10px; font-weight: 500; }

/* DASHBOARD */
.dashboard { display: flex; height: 100vh; }
.sidebar { width: 250px; background: #1a252f; color: #ecf0f1; display: flex; flex-direction: column; }
.sidebar-header { padding: 20px; background: #2c3e50; text-align: center; font-size: 18px; font-weight: bold; color: #17a2b8; }
.sidebar-menu { list-style: none; flex-grow: 1; padding-top: 15px; }
.sidebar-menu li { padding: 14px 20px; cursor: pointer; border-left: 4px solid transparent; transition: all 0.3s; font-size: 14px; }
.sidebar-menu li:hover, .sidebar-menu li.active { background: #2c3e50; border-left-color: #17a2b8; color: white; }
.sidebar-footer { padding: 15px 20px; background: #2c3e50; }
.sidebar-overlay { display: none; }
.btn-logout { width: 100%; padding: 10px; background: #dc3545; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
.btn-logout:hover { background: #c82333; }

.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.top-bar { height: 60px; background: white; border-bottom: 1px solid #e0e0e0; display: flex; align-items: center; justify-content: space-between; padding: 0 25px; }
.top-bar h3 { color: #444; font-size: 18px; }
.user-badge { display: flex; align-items: center; gap: 10px; }
.badge-role { background: #e74c3c; color: white; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; }

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

.card { background: white; border-radius: 8px; padding: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #e9ecef; margin-bottom: 20px; }
.card h4 { margin-bottom: 20px; color: #333; border-bottom: 2px solid #f4f6f9; padding-bottom: 10px; }
.card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f4f6f9; padding-bottom: 10px; margin-bottom: 20px; }
.card-header h4 { margin: 0; border: none; padding: 0; }
.card-header button { background: #17a2b8; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 13px; }
.card-header button:hover { background: #138496; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 14px; color: #555; font-weight: 500; }
.form-control { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.form-control:focus { outline: none; border-color: #80bdff; }
select.form-control { appearance: auto; }
.btn-primary { padding: 10px 20px; background: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
.btn-primary:hover { background: #0056b3; }
.btn-secondary { padding: 10px 20px; background: #6c757d; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
.btn-secondary:hover { background: #5a6268; }
.btn-success { padding: 10px 20px; background: #28a745; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
.btn-success:hover { background: #218838; }
.btn-danger { padding: 8px 14px; background: #dc3545; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn-danger:hover { background: #c82333; }
.btn-warning { padding: 8px 14px; background: #ffc107; color: #333; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn-warning:hover { background: #e0a800; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table th, .table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
.table th { background: #f8f9fa; color: #555; font-weight: 600; }
.table tr:hover { background: #f8f9fa; }
.table .actions { display: flex; gap: 6px; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal { background: white; border-radius: 10px; padding: 30px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.modal h3 { margin-bottom: 20px; color: #333; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* SINAV */
.cevap-secenek { display: block; padding: 12px 15px; margin: 8px 0; border: 2px solid #e0e0e0; border-radius: 6px; cursor: pointer; transition: all 0.2s; font-size: 15px; }
.cevap-secenek:hover { border-color: #007bff; background: #f0f7ff; }
.cevap-secenek.selected { border-color: #007bff; background: #e8f4ff; }
.cevap-secenek.dogru { border-color: #28a745; background: #d4edda; }
.cevap-secenek.yanlis { border-color: #dc3545; background: #f8d7da; }
@media (max-width: 768px) {
    .dashboard { flex-direction: column; }
    .sidebar { position: fixed; top: 0; left: 0; width: 260px; height: 100vh; z-index: 200; transform: translateX(-100%); transition: transform 0.3s ease; padding-bottom: 70px; }
    .sidebar.acik { transform: translateX(0); }
    .sidebar-menu { flex-direction: column; overflow-y: auto; }
    .sidebar-menu li { white-space: nowrap; border-left: 3px solid transparent; border-bottom: none; }
    .sidebar-menu li.active { border-left-color: #17a2b8; border-bottom: none; }
    .sidebar-footer { position: sticky; bottom: 0; display: flex; flex-direction: row; justify-content: center; gap: 10px; align-items: center; padding: 10px 15px; }
    .sidebar-footer div { margin-bottom: 0 !important; }
    .sidebar-footer .btn-logout { width: auto; margin-top: 0 !important; }
    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; }
    .sidebar-overlay.acik { display: block; }
    #hamburgerBtn { display: inline-block !important; }
}
