/* ==========================================================================
   YURT VE ÖĞRENCİ PROGRAM TAKİP SİSTEMİ - MODERN MOBİL TASARIM SİSTEMİ
   ========================================================================== */

:root {
  /* Renk Paleti - Zengin Zümrüt Yeşili, Gece Laciverti & Modern Nötrler */
  --primary: #059669;
  --primary-dark: #047857;
  --primary-deep: #064e3b;
  --primary-light: #ecfdf5;
  --primary-glow: rgba(16, 185, 129, 0.25);

  --accent: #4f46e5;
  --accent-light: #eef2ff;

  /* Durum Renkleri (HSL optimize) */
  --status-present: #10b981;       /* Geldi / Yeşil */
  --status-present-bg: #d1fae5;
  --status-present-border: #a7f3d0;

  --status-absent: #ef4444;        /* Gelmedi / Kırmızı */
  --status-absent-bg: #fee2e2;
  --status-absent-border: #fca5a5;

  --status-leave: #f59e0b;         /* İzinli / Amber */
  --status-leave-bg: #fef3c7;
  --status-leave-border: #fde68a;

  --status-duty: #8b5cf6;          /* Görevli / Mor */
  --status-duty-bg: #ede9fe;
  --status-duty-border: #ddd6fe;

  /* Arka Planlar & Yüzeyler */
  --bg-app: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;

  /* Tipografi */
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Gölgeler & Derinlik */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -4px rgba(15, 23, 42, 0.12);
  --shadow-sheet: 0 -10px 30px rgba(0, 0, 0, 0.18);

  /* Radius & Geçişler */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

/* Temel Sıfırlamalar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  user-select: none;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
}

input, button, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Ana Uygulama Kapsayıcısı (Masaüstünde de şık bir mobil görünüm için sınırlandırılmış) */
.app-container {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg-app);
  padding-bottom: calc(50px + var(--safe-bottom) + 50px); /* Bottom nav + save bar boşluğu */
}

/* ==========================================================================
   ÜST BAŞLIK VE NAVİGASYON (HEADER)
   ========================================================================== */

.top-header {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 100%);
  color: var(--text-inverse);
  padding: 0.45rem 0.75rem 0.35rem;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.header-logo-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-badge {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-badge svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
}

.header-title {
  font-size: 1.02rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.header-subtitle {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

/* Senkronizasyon Hapı */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: #ffffff;
}

.header-stat-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #34d399;
  line-height: 1;
}

.header-stat-label {
  font-weight: 600;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
}

.status-pill:active {
  transform: scale(0.95);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.status-pill.status-offline .status-dot {
  background-color: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}

.status-pill.status-syncing .status-dot {
  background-color: #60a5fa;
  box-shadow: 0 0 6px #60a5fa;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Tarih Seçici Çubuğu */
.date-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.18rem 0.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
}

.date-nav-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.date-nav-btn:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.92);
}

.date-nav-btn svg {
  width: 16px;
  height: 16px;
}

.date-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
}

.date-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
  color-scheme: dark;
}

.date-badge {
  font-size: 0.62rem;
  background: #10b981;
  color: #ffffff;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
}

/* Vakit & Seans Seçici Hap Menü */
.session-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}

.session-tabs::-webkit-scrollbar {
  display: none;
}

.session-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.session-tab:active {
  transform: scale(0.95);
}

.session-tab.active {
  background: #ffffff;
  color: var(--primary-deep);
  border-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.session-tab .session-icon {
  font-size: 1rem;
}

.session-tab .tab-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.1);
}

.session-tab.active .tab-badge {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ==========================================================================
   ANA İÇERİK ALANI VE SEKMELER
   ========================================================================== */

.main-content {
  padding: 0.55rem 0.65rem 1.25rem;
  flex: 1;
}

.tab-view {
  display: none;
  animation: fadeIn 0.25s ease;
}

.tab-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Kontrol Kartı (Filtre, Arama, Hepsini Geldi Yap) */
.control-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.45rem;
}

.search-filter-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.65rem;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 0.35rem 1.8rem 0.35rem 2rem;
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.clear-icon {
  position: absolute;
  right: 0.55rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.multi-filter-scroll {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  margin-bottom: 0.35rem;
  scrollbar-width: none;
}

.multi-filter-scroll::-webkit-scrollbar {
  display: none;
}

.select-filter {
  padding: 0.28rem 0.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.74rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.select-filter:focus {
  border-color: var(--primary);
}

.quick-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.35rem;
}

.session-summary-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   TALEBE YOKLAMA KARTLARI (YOKLAMA LİSTESİ)
   ========================================================================== */

.students-attendance-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.attendance-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.38rem 0.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: var(--transition);
}

.attendance-card:active {
  border-color: var(--primary);
}

/* Üst Kısım: Öğrenci Bilgisi ve Profil Açma Tıklaması */
.card-student-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.student-meta-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.student-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.74rem;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.25);
}

.student-details h3 {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
}

.student-tags {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  margin-top: 0.05rem;
}

.tag-branch {
  font-size: 0.62rem;
  font-weight: 700;
  color: #4338ca;
  background: #e0e7ff;
  padding: 0.05rem 0.35rem;
  border-radius: var(--radius-full);
}

.tag-dahili {
  font-size: 0.62rem;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  padding: 0.05rem 0.35rem;
  border-radius: var(--radius-full);
}

.tag-room {
  font-size: 0.62rem;
  font-weight: 600;
  color: #0284c7;
  background: #e0f2fe;
  padding: 0.05rem 0.35rem;
  border-radius: var(--radius-full);
}

.tag-grade {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
}

.profile-link-hint {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius-full);
}

.profile-link-hint svg {
  width: 11px;
  height: 11px;
}

/* Alt Kısım: 4 Kompakt Dokunmatik Durum Butonları (Yatay Yerleşim) */
.status-buttons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
}

.status-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.32rem 0.15rem;
  min-height: 30px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.status-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.status-btn:active {
  transform: scale(0.94);
}

/* Seçili Durum Tasarımları */
.status-btn.selected-geldi {
  background: var(--status-present-bg);
  border-color: var(--status-present);
  color: #065f46;
  font-weight: 700;
  box-shadow: 0 0 0 1.5px var(--status-present-border);
}

.status-btn.selected-gelmedi {
  background: var(--status-absent-bg);
  border-color: var(--status-absent);
  color: #991b1b;
  font-weight: 700;
  box-shadow: 0 0 0 1.5px var(--status-absent-border);
}

.status-btn.selected-izinli {
  background: var(--status-leave-bg);
  border-color: var(--status-leave);
  color: #92400e;
  font-weight: 700;
  box-shadow: 0 0 0 1.5px var(--status-leave-border);
}

.status-btn.selected-gorevli,
.status-btn.selected-hasta {
  background: #fdf2f8;
  border-color: #ec4899;
  color: #9d174d;
  font-weight: 700;
  box-shadow: 0 0 0 1.5px rgba(236, 72, 153, 0.25);
}

/* Okul Yoklaması 5'li Buton Satırı */
.status-buttons-row.okul-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.2rem;
}

.status-buttons-row.okul-row .status-btn {
  flex-direction: column;
  padding: 0.2rem 0.08rem;
  font-size: 0.62rem;
  line-height: 1.05;
  text-align: center;
  min-height: 34px;
  gap: 0.1rem;
}

.status-buttons-row.okul-row .status-btn svg {
  width: 13px;
  height: 13px;
  margin-bottom: 0;
}

/* Okul Yoklaması Seçili Durum Tasarımları */
.status-btn.selected-gitti {
  background: var(--status-present-bg);
  border-color: var(--status-present);
  color: #065f46;
  font-weight: 700;
  box-shadow: 0 0 0 1.5px var(--status-present-border);
}

.status-btn.selected-ozurlu-tam {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: 0 0 0 1.5px rgba(59, 130, 246, 0.35);
}

.status-btn.selected-ozurlu-yarim {
  background: #f0fdfa;
  border-color: #0d9488;
  color: #0f766e;
  font-weight: 700;
  box-shadow: 0 0 0 1.5px rgba(13, 148, 136, 0.35);
}

.status-btn.selected-ozursuz-tam {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
  font-weight: 700;
  box-shadow: 0 0 0 1.5px rgba(239, 68, 68, 0.35);
}

.status-btn.selected-ozursuz-yarim {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
  font-weight: 700;
  box-shadow: 0 0 0 1.5px rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   SABİT ALT KAYDETME ÇUBUĞU (STICKY SAVE BAR)
   ========================================================================== */

.sticky-save-bar {
  position: fixed;
  bottom: calc(46px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-sheet);
  z-index: 95;
  transition: transform 0.3s ease;
}

.sticky-save-bar.hidden {
  transform: translateX(-50%) translateY(150%);
}

.save-bar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  padding-right: 0.5rem;
}

.save-bar-session {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.save-bar-stats {
  color: #94a3b8;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  line-height: 1.25;
}

.save-stat {
  font-weight: 700;
  white-space: nowrap;
}

.save-stat.stat-var { color: #34d399; }
.save-stat.stat-yok { color: #f87171; }
.save-stat.stat-izinli { color: #fbbf24; }
.save-stat.stat-hasta { color: #f472b6; }

.save-stat.stat-gitti { color: #34d399; }
.save-stat.stat-ozurlu-tam { color: #60a5fa; }
.save-stat.stat-ozurlu-yarim { color: #2dd4bf; }
.save-stat.stat-ozursuz-tam { color: #f87171; }
.save-stat.stat-ozursuz-yarim { color: #fbbf24; }

.save-stat-dot {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.6rem;
  user-select: none;
}

.sticky-stats-slim {
  padding: 0.35rem 0.85rem;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.save-bar-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.status-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   MOBİL ALT MENÜ (BOTTOM NAVIGATION)
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  padding: 0.2rem 0.35rem calc(0.2rem + var(--safe-bottom));
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  color: var(--text-muted);
  cursor: pointer;
  flex: 1;
  padding: 0.1rem 0;
  font-size: 0.64rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 17px;
  height: 17px;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active .nav-icon svg {
  stroke-width: 2.5;
}

.nav-item:active {
  transform: scale(0.92);
}

/* ==========================================================================
   TALEBE DETAY VE PROFİL MODALI (BOTTOM SHEET)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeInModal 0.2s ease;
}

.modal-sheet {
  background: var(--surface);
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sheet);
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-drag-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: var(--radius-full);
  margin: 0.6rem auto 0.2rem;
}

.modal-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.student-profile-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar-lg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.modal-close-btn {
  background: var(--surface-alt);
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  max-height: calc(88vh - 80px);
}

.modal-section-title {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* İstenen 4 Temel Oran Kartı Grid */
.profile-rates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.rate-card {
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rate-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.rate-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.rate-bar {
  flex: 1;
  height: 8px;
  background: #cbd5e1;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rate-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.card-namaz .rate-fill { background: #10b981; }
.card-dahili .rate-fill { background: #3b82f6; }
.card-etut .rate-fill { background: #8b5cf6; }

.rate-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  min-width: 42px;
  text-align: right;
}

.rate-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.25;
  margin-top: 0.15rem;
  word-break: break-word;
}

.rate-highlight-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ef4444;
  margin: 0.2rem 0;
}

/* Haftalık Devamsızlık Tablosu (Pzt, Sal, Çar...) */
.weekly-history-card {
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.rate-school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.25rem 0 0.2rem;
}

.school-tag-item {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.school-tag-item.tag-ozurlu {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.school-tag-item.tag-ozursuz {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.weekly-days-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  text-align: center;
}

.day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.2rem;
  background: var(--surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.day-cell.is-today {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.day-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.day-date {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.day-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0.2rem 0;
}

.day-badge.full-present { background: var(--status-present-bg); color: #065f46; border: 1.5px solid var(--status-present); }
.day-badge.ozurlu-tam { background: #eff6ff; color: #1d4ed8; border: 1.5px solid #3b82f6; }
.day-badge.ozurlu-yarim { background: #f0fdfa; color: #0f766e; border: 1.5px solid #0d9488; }
.day-badge.ozursuz-tam { background: #fef2f2; color: #991b1b; border: 1.5px solid #ef4444; }
.day-badge.ozursuz-yarim { background: #fffbeb; color: #b45309; border: 1.5px solid #f59e0b; }
.day-badge.empty { background: var(--surface-alt); color: var(--text-muted); border: 1.5px dashed var(--border-color); }

.day-sub-status {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  min-height: 14px;
  line-height: 1.1;
  text-align: center;
}

/* ==========================================================================
   RAPORLAR VE İSTATİSTİKLER EKRANI
   ========================================================================== */

.section-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-title-wrap h2 {
  font-size: 1.15rem;
  line-height: 1.2;
}

.section-title-wrap p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.students-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.students-filter-bar .search-box {
  flex: 1;
  min-width: 170px;
  margin-bottom: 0 !important;
}

.student-range-selector {
  flex-shrink: 0;
}

.report-range-selector {
  display: flex;
  background: var(--surface-alt);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.range-btn {
  background: none;
  border: none;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
}

.range-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.stats-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--surface-alt);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.report-section-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.ranking-item:active {
  transform: scale(0.98);
}

.ranking-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.rank-index {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-muted);
  width: 20px;
}

.btn-parent-report {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  vertical-align: middle;
}

.btn-parent-report:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.btn-parent-report:active {
  transform: scale(0.96);
}

[data-theme="dark"] .btn-parent-report {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .btn-parent-report:hover {
  background: #059669;
  color: #ffffff;
}

/* Veli Raporu Modal Önizleme Kutusu */
.parent-report-box {
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  transition: border-color 0.2s;
}

.parent-report-box:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.parent-report-textarea {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.55;
  padding: 8px 10px;
  resize: vertical;
  min-height: 220px;
}

.parent-report-textarea:focus {
  outline: none;
}

/* ==========================================================================
   AYARLAR VE E-TABLO KARTLARI
   ========================================================================== */

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-title {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.sheet-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: #dcfce7;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sheet-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.settings-title h3 {
  font-size: 1rem;
  line-height: 1.3;
}

.settings-title p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.input-group input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.setup-steps-list {
  padding-left: 1.25rem;
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.setup-steps-list code {
  background: var(--surface-alt);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85em;
  color: var(--primary-deep);
}

/* ==========================================================================
   BUTONLAR, FORMLAR VE GENEL YARDIMCILAR
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.btn-primary:active {
  background: var(--primary-dark);
}

.btn-success {
  background: #10b981;
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface-alt);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline-success {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
}

.btn-outline-secondary {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-outline-danger {
  background: transparent;
  border: 1.5px solid var(--status-absent);
  color: var(--status-absent);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
}

.btn-group-row {
  display: flex;
  gap: 0.5rem;
}

.contact-actions-row {
  display: flex;
  gap: 0.65rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.95rem;
  background-color: var(--surface);
  color: var(--text-main);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row {
  display: flex;
  gap: 0.65rem;
}

.form-actions {
  display: flex;
  gap: 0.65rem;
}

/* Alert ve Toast */
.alert-box {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-info {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.alert-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.toast-toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 250;
  animation: slideDownToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@keyframes slideDownToast {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Talebeler Dizin Kartı */
.student-directory-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.65rem;
  transition: var(--transition);
}

.student-directory-card:active {
  transform: scale(0.98);
  border-color: var(--primary);
}

.student-quick-rates {
  display: flex;
  gap: 0.5rem;
  text-align: right;
}

.badge-rate {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.badge-rate-green { background: var(--status-present-bg); color: #065f46; }
.badge-rate-yellow { background: var(--status-leave-bg); color: #92400e; }
.badge-rate-red { background: var(--status-absent-bg); color: #991b1b; }

/* ==========================================================================
   ANA SAYFA (5 KARTLI YÖNETİM PANELİ) TASARIMI
   ========================================================================== */

.home-hero-card {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 25px -4px rgba(5, 150, 105, 0.28);
  position: relative;
  overflow: hidden;
}

.home-hero-card::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.hero-text-wrap h2 {
  font-size: 1.35rem;
  color: #ffffff;
  line-height: 1.2;
}

.hero-text-wrap p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.25rem;
}

.hero-quick-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.dash-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

/* 5 Kart Grid - 2 Sütunlu Yerleşim */
.dashboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.dash-action-card {
  background: var(--surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.dash-action-card:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-md);
}

.dash-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.dash-card-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.dash-card-content h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.dash-card-content p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.3;
}

.dash-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.45rem;
  margin-top: auto;
}

.dash-action-text {
  font-size: 0.74rem;
  font-weight: 700;
}

.dash-card-footer svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dash-action-card:active .dash-card-footer svg {
  transform: translateX(3px);
}

.card-talebeler {
  grid-column: 1 / -1;
}

/* Kartlara Özel Renk Temaları */
.card-dahili .dash-card-icon { background: #d1fae5; }
.card-dahili .dash-card-pill { background: #d1fae5; color: #047857; }
.card-dahili .dash-action-text { color: #047857; }
.card-dahili:active { border-color: #059669; }

.card-etut .dash-card-icon { background: #ede9fe; }
.card-etut .dash-card-pill { background: #ede9fe; color: #6d28d9; }
.card-etut .dash-action-text { color: #6d28d9; }
.card-etut:active { border-color: #7c3aed; }

.card-namaz .dash-card-icon { background: #fef3c7; }
.card-namaz .dash-card-pill { background: #fef3c7; color: #b45309; }
.card-namaz .dash-action-text { color: #b45309; }
.card-namaz:active { border-color: #f59e0b; }

.card-okul .dash-card-icon { background: #fee2e2; }
.card-okul .dash-card-pill { background: #fee2e2; color: #b91c1c; }
.card-okul .dash-action-text { color: #b91c1c; }
.card-okul:active { border-color: #ef4444; }

.card-talebeler .dash-card-icon { background: #e0e7ff; }
.card-talebeler .dash-card-pill { background: #e0e7ff; color: #4338ca; }
.card-talebeler .dash-action-text { color: #4338ca; }
.card-talebeler:active { border-color: #4f46e5; }

/* Yoklama Ekranı Üst Gezinme Çubuğu */
.attendance-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  padding: 0.28rem 0.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.btn-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--primary-light);
  border: 1px solid var(--status-present-border);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-back-nav svg {
  width: 13px;
  height: 13px;
}

.btn-back-nav:active {
  transform: scale(0.95);
}

.active-banner-info {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Namaz Vakitleri Hızlı Geçiş Butonları */
.namaz-quick-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.namaz-quick-btn {
  padding: 0.22rem 0.48rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: var(--surface-alt);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.namaz-quick-btn:hover {
  background: var(--surface);
  border-color: #10b981;
}

.namaz-quick-btn:active {
  transform: scale(0.94);
}

.namaz-quick-btn.active {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
  font-weight: 800;
}

/* Namaz Vakti Seçim Kartları Grid */
.prayer-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.prayer-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  background: var(--surface-alt);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.prayer-picker-btn .picker-icon {
  font-size: 1.8rem;
}

.prayer-picker-btn .picker-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.prayer-picker-btn.active {
  background: #fef3c7;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.prayer-picker-btn.active .picker-title {
  color: #92400e;
}

/* Seçenek Kartları Listesi (Devamsızlık Modalı için) */
.choice-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-choice-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--surface-alt);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-choice-card:active {
  transform: scale(0.98);
  border-color: var(--primary);
  background: #ffffff;
}

.choice-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.choice-info {
  flex: 1;
}

.choice-info h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.25;
}

.choice-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.btn-choice-card svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Yardımcı Sınıflar */
.hidden { display: none !important; }
.flex-1 { flex: 1; }
.w-100 { width: 100%; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.text-muted { color: var(--text-muted); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
