@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #ff6a24;
  --primary-hover: #e55a1b;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --success: #16a34a;
  --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Üst Panel Barı */
.panel-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand-box { display: flex; align-items: center; gap: 10px; }
.brand-title { font-size: 17px; font-weight: 900; color: var(--navy); }
.user-profile { display: flex; align-items: center; gap: 12px; }
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.user-info { display: flex; flex-direction: column; text-align: right; }
.user-name { font-size: 13px; font-weight: 800; color: var(--navy); }
.user-id { font-size: 11px; color: var(--text-muted); }

/* Ana Konteyner */
.panel-container {
  max-width: 1080px;
  margin: 30px auto;
  padding: 0 20px 60px 20px;
}

/* Aktif Bilet Kartı (Hero Ticket) */
.ticket-card {
  background: linear-gradient(135deg, var(--navy) 0%, #1e293b 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}
.ticket-badge {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ticket-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.ticket-date { font-size: 13px; color: #94a3b8; }
.ticket-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--navy); }
.btn-outline:hover { background: #f8fafc; border-color: #cbd5e1; }

/* Dashboard Bölüm Başlıkları */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-title { font-size: 18px; font-weight: 800; color: var(--navy); }

/* İstatistik Özeti (Grid) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.stat-val { font-size: 26px; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.stat-lbl { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }

/* Geçmiş Sınavlar Tablosu */
.card-table {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.archive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.archive-table th {
  background: #f8fafc;
  padding: 14px 20px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.archive-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
}
.archive-table tr:last-child td { border-bottom: none; }
.exam-title-cell { font-weight: 700; }
.exam-type-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}
.net-badge { font-weight: 800; color: var(--primary); font-size: 14px; }
.rank-badge { font-weight: 700; color: var(--navy); }

@media (max-width: 768px) {
  .ticket-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ticket-action { align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
}