/* ==========================================================================
   DEÇAM DERSHANESİ - MOBİL UYGULAMA SİMÜLATÖRÜ CSS (FLUTTER 1:1 İKİZİ)
   iPhone 16 Pro Çerçevesi + Pixel-Perfect Flutter Öğrenci Arayüzü
   ========================================================================== */

/* 1. TELEFON KASASI & ÇERÇEVE */
.flutter-phone-frame {
  width: 375px;
  height: 760px;
  background: #0f172a;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
  position: relative;
  margin: 0 auto;
  user-select: none;
  display: flex;
  flex-direction: column;
}

.flutter-phone-screen {
  width: 100%;
  height: 100%;
  background-color: #f8fafc;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* 2. DYNAMIC ISLAND & STATUS BAR */
.flutter-status-bar {
  height: 44px;
  background-color: #01AD3C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: relative;
  z-index: 50;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.sim-dynamic-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 26px;
  background-color: #000000;
  border-radius: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.sim-dynamic-island:hover {
  width: 140px;
}

.sim-sensor-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #111827;
  border: 1px solid #1f2937;
}

.sim-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 3. FLUTTER CUSTOM APPBAR (#01AD3C) */
.flutter-appbar {
  height: 52px;
  background-color: #01AD3C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(1, 173, 60, 0.25);
  position: relative;
  z-index: 40;
}

.appbar-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.appbar-back-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.appbar-title-text {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.appbar-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.appbar-icon-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appbar-badge-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #01AD3C;
}

/* 4. EKRAN İÇERİK KONTEYNERİ (PAGES) */
.flutter-screen-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background-color: #f8fafc;
  -webkit-overflow-scrolling: touch;
}

.flutter-screen-page {
  display: none;
  padding: 14px;
  animation: fadeIn 0.25s ease-out;
}

.flutter-screen-page.active {
  display: block;
}

.flutter-view-tab {
  display: none;
}

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

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

/* 5. DASHBOARD KARTLARI */
.flutter-greeting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.greeting-text-box h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.greeting-text-box p {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.greeting-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #01AD3C 0%, #00d447 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.flutter-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.flutter-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.flutter-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flutter-card-link-btn {
  font-size: 11px;
  font-weight: 700;
  color: #01AD3C;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Flutter 1:1 Shortcut Cards (Homeworks & Attendance on Dashboard) */
.fl-shortcut-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.fl-shortcut-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.fl-shortcut-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fl-shortcut-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fl-shortcut-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fl-shortcut-icon-box.orange {
  background-color: #fff3e6;
  color: #FD8001;
}

.fl-shortcut-icon-box.green {
  background-color: #ecfdf5;
  color: #01AD3C;
}

.fl-shortcut-title-group h4 {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.fl-shortcut-title-group p {
  font-size: 10.5px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.fl-shortcut-title-group p.orange { color: #ea580c; }
.fl-shortcut-title-group p.green { color: #15803d; }

.fl-shortcut-banner {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fl-shortcut-banner.orange {
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
}

.fl-shortcut-banner.green {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.fl-schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: #f8fafc;
  border-radius: 12px;
  margin-bottom: 6px;
  border-left: 3.5px solid #01AD3C;
}

.fl-item-subject {
  font-size: 12.5px;
  font-weight: 800;
  color: #1e293b;
}

.fl-item-meta {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 1px;
}

.fl-item-time-badge {
  font-size: 10px;
  font-weight: 700;
  background-color: #ecfdf5;
  color: #01AD3C;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Flutter 1:1 Student Homework Card (StudentHomeworksView) */
.fl-hw-card-full {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 13px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fl-hw-card-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.fl-hw-tag-badge {
  display: inline-block;
  background-color: #FD8001;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.fl-hw-title-text {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.fl-hw-desc-text {
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 8px;
}

.fl-hw-dates-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 8px;
}

.fl-hw-status-box {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fl-hw-status-box.completed {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.fl-hw-status-box.pending {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* Flutter 1:1 Student Exams View Header Banner */
.fl-exams-top-banner {
  background: linear-gradient(135deg, #FD8001 0%, #ff9d33 100%);
  border-radius: 16px;
  padding: 14px 16px;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(253, 128, 1, 0.3);
}

.fl-exams-banner-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fl-exams-banner-title h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.fl-exams-banner-title p {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.2;
}

/* 6. EXCEL DERS PROGRAMI MATRİSİ (FLUTTER 1:1) */
.fl-excel-toolbar {
  display: flex;
  background-color: #e2e8f0;
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.fl-excel-switcher-btn {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  text-align: center;
}

.fl-excel-switcher-btn.active {
  background-color: #ffffff;
  color: #01AD3C;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fl-excel-table-scroll {
  overflow-x: auto;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.fl-excel-grid {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 10.5px;
}

.fl-excel-grid th {
  background-color: #01AD3C;
  color: #ffffff;
  padding: 6px 4px;
  font-weight: 800;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fl-excel-grid td {
  padding: 6px 4px;
  border: 1px solid #e2e8f0;
  text-align: center;
  font-weight: 600;
  color: #334155;
  background-color: #ffffff;
}

.fl-excel-grid td.has-lesson {
  background-color: #ecfdf5;
  color: #065f46;
  font-weight: 800;
}

.fl-excel-grid td.time-col {
  background-color: #f1f5f9;
  color: #475569;
  font-weight: 700;
  white-space: nowrap;
  width: 75px;
}

.fl-day-tabs-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.fl-day-chip {
  padding: 5px 12px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
}

.fl-day-chip.active {
  background-color: #01AD3C;
  border-color: #01AD3C;
  color: #ffffff;
}

/* 7. SINAVLAR & KARNE RAPORU */
.fl-exam-score-card {
  background: linear-gradient(135deg, #01AD3C 0%, #059669 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.fl-exam-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.fl-metric-val {
  font-size: 16px;
  font-weight: 900;
}

.fl-metric-lbl {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.85);
}

.fl-stat-digit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
  margin-bottom: 12px;
}

.fl-stat-digit {
  font-size: 15px;
  font-weight: 800;
}

.fl-stat-digit.green { color: #15803d; }
.fl-stat-digit.red { color: #b91c1c; }
.fl-stat-digit.grey { color: #64748b; }
.fl-stat-digit.green-primary { color: #01AD3C; }

.fl-subject-net-table {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
}

.fl-subject-net-table th {
  background-color: #f1f5f9;
  color: #475569;
  padding: 6px;
  text-align: left;
}

.fl-subject-net-table td {
  padding: 6px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  font-weight: 600;
}

/* 8. PROFİL SEKMESİ */
.fl-profile-header {
  text-align: center;
  padding: 16px 0;
}

.fl-profile-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #01AD3C 0%, #059669 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 4px 12px rgba(1, 173, 60, 0.25);
}

.fl-details-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 11.5px;
}

.fl-details-lbl {
  color: #64748b;
  font-weight: 600;
}

.fl-details-value {
  color: #0f172a;
  font-weight: 700;
}

/* 9. FLUTTER BOTTOM NAVIGATION BAR */
.flutter-bottom-nav {
  height: 62px;
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  position: relative;
  z-index: 40;
}

.fl-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px 0;
  transition: all 0.2s ease;
}

.fl-nav-item.active {
  color: #01AD3C;
}

.fl-nav-item span {
  font-size: 10px;
  font-weight: 700;
}

/* 10. DİYALOG & BOTTOM SHEET OVERLAY */
.fl-phone-dialog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: none;
  align-items: flex-end;
}

.fl-phone-dialog-overlay.active {
  display: flex;
}

.fl-bottom-sheet {
  width: 100%;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 16px;
  animation: slideUpSheet 0.25s ease-out;
  max-height: 80%;
  overflow-y: auto;
}

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

@media (max-width: 480px) {
  .flutter-phone-frame {
    width: 100%;
    max-width: 360px;
    height: 680px;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.45);
  }
  .flutter-phone-screen {
    border-radius: 28px;
  }
  .sim-dynamic-island {
    width: 95px;
    height: 24px;
  }
  .fl-exam-score-card {
    padding: 14px;
  }
}

@media (max-width: 360px) {
  .flutter-phone-frame {
    max-width: 100%;
    height: 620px;
    border-radius: 28px;
    padding: 6px;
  }
  .flutter-phone-screen {
    border-radius: 22px;
  }
  .flutter-screen-page {
    padding: 10px;
  }
  .fl-excel-grid th, .fl-excel-grid td {
    padding: 6px 4px;
    font-size: 10px;
  }
}
