:root {
  --bg: #f7f9fb;
  --card: #fff;
  --accent: #2b6cb0;
  --danger: #c53030;
  --success: #2f855a;
  --sidebar-width: 250px;
}

* {
  box-sizing: border-box;
  font-family: Segoe UI, Roboto, Arial, sans-serif;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body {
  background: var(--bg);
  margin: 0;
  padding: 0;
}

/* Menü açıkken scroll engeli */
body.menu-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* Input alanlarında seçim izni ver */
input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ==================== */
/* GİRİŞ SAYFASI STİLLERİ */
/* ==================== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h1 {
  margin: 0;
  font-size: 2rem;
  color: #1a202c;
}

.auth-header p {
  margin: 8px 0 0;
  color: #718096;
  font-size: 0.95rem;
}

.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  background: #f7fafc;
  border-radius: 8px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #718096;
  border-radius: 6px;
  transition: all 0.2s;
}

.auth-tab.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a5568;
}

.form-group input {
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-btn {
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.auth-btn.primary {
  background: var(--accent);
  color: #fff;
}

.auth-btn.primary:hover {
  background: #2c5aa0;
}

.auth-btn.google {
  background: #fff;
  color: #333;
  border: 2px solid #e2e8f0;
}

.auth-btn.google:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  padding: 0 16px;
  color: #a0aec0;
  font-size: 0.85rem;
}

.auth-footer {
  margin-top: 16px;
  text-align: center;
}

.auth-footer p {
  margin: 0;
  font-size: 0.9rem;
}

#authMessage {
  color: var(--danger);
}

#authMessage.success {
  color: var(--success);
}

/* App Container */
.app-container {
  padding: 0;
  padding-top: 55px;
  /* Hamburger menü için */
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.logout-btn {
  width: 100%;
  padding: 12px;
  background: #fff5f5;
  color: var(--danger);
  border: 1px solid #fed7d7;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: #feb2b2;
  color: #742a2a;
}

/* User Info */
.user-info {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #718096;
  word-break: break-all;
}

/* ==================== */
/* HAMBURGER MENÜ */
/* ==================== */
.menu-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 30px;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Swipe Edge Indicator - Mobil için */
.swipe-edge {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 100vh;
  z-index: 998;
  display: none;
  background: transparent;
  pointer-events: none;
}

/* Swipe Hint - İlk kullanımda görünen ipucu */
.swipe-hint {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 6px;
  height: 60px;
  background: linear-gradient(to right, var(--accent), transparent);
  border-radius: 0 8px 8px 0;
  opacity: 0;
  z-index: 997;
  pointer-events: none;
  display: none;
}

.swipe-hint.show {
  display: block;
  opacity: 1;
  animation: swipeHintPulse 2s ease-in-out infinite;
}

@keyframes swipeHintPulse {

  0%,
  100% {
    opacity: 0.3;
    width: 6px;
  }

  50% {
    opacity: 0.8;
    width: 12px;
  }
}

/* Mobil cihazlarda swipe aktif */
@media (max-width: 768px) {
  .swipe-edge {
    display: block;
  }

  .menu-toggle {
    /* Hamburger menü her zaman görünür */
    display: flex;
  }
}

/* PWA modunda (standalone) hamburger gizle, swipe aktif */
@media (display-mode: standalone) {
  .menu-toggle {
    display: none !important;
  }

  /* swipe-hint sadece .show class'ı varsa görünecek */
  .swipe-hint.show {
    display: block;
  }

  .swipe-edge {
    display: block;
    pointer-events: auto;
  }

  .app-container {
    padding: 0 !important;
  }
}

/* Tarayıcıda (browser) swipe gizle, hamburger aktif */
@media (display-mode: browser) {
  .swipe-hint {
    display: none !important;
  }

  .swipe-edge {
    display: none !important;
  }
}

/* Desktop - Sidebar her zaman görünür */
@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0) !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
  }

  .sidebar-header {
    padding-top: 20px;
  }

  .menu-toggle {
    display: none !important;
  }

  .overlay {
    display: none !important;
  }

  .app-container {
    margin-left: var(--sidebar-width);
    padding-top: 0 !important;
  }

  .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
  }
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  will-change: transform;
  /* Scrollbar gizle */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.sidebar::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar.dragging {
  transition: none;
}

.sidebar-header {
  padding: 20px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 20px);
  border-bottom: 1px solid #eee;
}

.sidebar-header h2 {
  margin: 0;
  color: var(--accent);
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list>li {
  border-bottom: 1px solid #f0f0f0;
}

.nav-link {
  display: block;
  padding: 16px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-link:hover {
  background: #f5f7fa;
}

.nav-link.active {
  background: #e8f0fe;
  color: var(--accent);
  font-weight: 600;
}

/* Accordion Menü */
.nav-group {
  border-bottom: 1px solid #f0f0f0;
}

.nav-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  color: #333;
  font-weight: 500;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.nav-group-header:hover,
.nav-group-header:active {
  background: #f5f7fa;
}

.nav-group-header.open {
  background: #f0f4f8;
}

.nav-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s;
  pointer-events: none;
}

.nav-group-header.open .nav-arrow {
  transform: rotate(90deg);
}

.nav-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #f8fafc;
}

.nav-submenu.open {
  max-height: 500px;
}

.nav-submenu li {
  border-bottom: 1px solid #eee;
}

.nav-submenu li:last-child {
  border-bottom: none;
}

.nav-submenu .nav-link {
  padding: 12px 20px 12px 36px;
  font-size: 0.95rem;
}

.nav-submenu .nav-link::before {
  content: '├─ ';
  color: #aaa;
  font-size: 0.8rem;
}

.nav-submenu li:last-child .nav-link::before {
  content: '└─ ';
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

.container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.card {
  background: var(--card);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

label {
  display: flex;
  align-items: center;
  gap: 6px;
}

input,
select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

button {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

button.warn {
  background: var(--danger);
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: auto;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  border: 1px solid #ddd;
  padding: 6px 10px;
  text-align: center;
  white-space: nowrap;
}

th {
  background: #f0f4f8;
}

td input {
  width: auto;
  min-width: 60px;
  border: none;
  text-align: center;
  padding: 4px 6px;
  background: transparent;
}

td input[type="time"] {
  min-width: 75px;
  padding: 4px;
}

td input:focus {
  outline: 2px solid var(--accent);
  border-radius: 4px;
}

.summary-table {
  margin-top: 8px;
  width: 100%;
}

.summary-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.summary-table th,
.summary-table td {
  padding: 8px 6px;
}

/* Sayfa Başlığı ve Yardım İkonu */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.page-header h2 {
  margin: 0;
}

.help-icon {
  position: relative;
  width: 22px;
  height: 22px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  font-size: 0.85rem;
  font-weight: bold;
  color: #4a5568;
}

.help-icon:hover {
  background: #cbd5e0;
}

.help-tooltip {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  width: 280px;
  background: #1a202c;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: normal;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.help-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 8px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #1a202c;
}

.help-tooltip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.help-tooltip p {
  margin: 6px 0;
  line-height: 1.4;
}

.help-icon:hover .help-tooltip {
  display: block;
}

.search-box {
  margin-bottom: 12px;
}

.search-box input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.1);
}

/* Yapılacaklar, Geri Sayım ve Devamsızlık Arama Kutusu */
.search-box.todo-search,
.search-box.countdown-search,
.search-box.absence-search {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.search-box.todo-search input,
.search-box.countdown-search input,
.search-box.absence-search input {
  flex: 1;
}

.search-filter-btn {
  width: 42px;
  min-width: 42px;
  border: 1px solid #ddd;
  background: #f7fafc;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s;
  font-size: 1rem;
}

.search-filter-btn:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.search-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.search-filter-btn .filter-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #e53e3e;
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Filtre Butonları */
.filter-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 14px;
  border: 2px solid #ddd;
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.filter-btn.filter-green.active {
  background: #2f855a;
  border-color: #2f855a;
}

.filter-btn.filter-yellow.active {
  background: #d69e2e;
  border-color: #d69e2e;
}

.filter-btn.filter-red.active {
  background: #c53030;
  border-color: #c53030;
}

.absence-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px 12px 6px;
  border-radius: 10px;
  margin-bottom: 10px;
  border-left: 5px solid;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.absence-row:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.absence-row.status-safe {
  border-left-color: #2f855a;
}

.absence-row.status-warning {
  border-left-color: #d69e2e;
}

.absence-row.status-failed {
  border-left-color: #c53030;
}

.absence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.absence-header strong {
  font-size: 1rem;
  color: #1a202c;
}

.absence-status-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.absence-status-badge.safe {
  background: #2f855a;
}

.absence-status-badge.warning {
  background: #d69e2e;
}

.absence-status-badge.failed {
  background: #c53030;
}

.absence-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.absence-info span {
  font-size: 0.85rem;
  color: #718096;
}

.absence-info .semester-ended {
  color: #2f855a;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Accordion action buttons - hidden by default */
.absence-actions {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  border-top: 1px solid #e2e8f0;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.absence-row.expanded .absence-actions {
  max-height: 70px;
  opacity: 1;
  padding: 12px 0;
  margin-top: 8px;
}

.absence-action-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.absence-action-btn.add {
  background: #48bb78;
  color: white;
}

.absence-action-btn.add:hover {
  background: #38a169;
}

.absence-action-btn.remove {
  background: #fc8181;
  color: white;
}

.absence-action-btn.remove:hover {
  background: #f56565;
}

button.small {
  padding: 6px 10px;
  font-size: 0.85rem;
}

/* Bugün Sayfası */
.today-date {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 16px;
}

.next-class-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: #fff;
}

.next-class-icon {
  font-size: 2.5rem;
}

.next-class-info {
  flex: 1;
}

.next-class-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.next-class-info h3 {
  margin: 4px 0;
  font-size: 1.4rem;
  color: #fff;
}

.next-class-time {
  font-size: 1rem;
  opacity: 0.95;
}

.next-class-card.no-class {
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.next-class-card.holiday {
  background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
}

.next-class-card.class-now {
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.today-classes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.today-class-item {
  display: flex;
  align-items: center;
  padding: 14px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  gap: 14px;
}

.today-class-item.completed {
  opacity: 0.6;
  border-left-color: #a0aec0;
}

.today-class-item.active {
  border-left-color: #ed8936;
  background: #fffaf0;
}

.today-class-time {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  min-width: 50px;
}

.today-class-time-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 60px;
}

.today-class-room {
  font-size: 0.75rem;
  color: #718096;
  font-weight: 500;
}

.today-class-item.completed .today-class-time {
  color: #a0aec0;
}

.today-class-item.active .today-class-time {
  color: #ed8936;
}

.today-class-details {
  flex: 1;
}

.today-class-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.today-class-absence {
  font-size: 0.85rem;
  color: #666;
}

.today-class-absence.warning {
  color: #d69e2e;
}

.today-class-absence.danger {
  color: var(--danger);
}

.today-class-absence.failed {
  color: var(--danger);
  font-weight: 600;
}

.today-class-absence.safe {
  color: var(--success);
}

.today-class-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.today-class-status {
  font-size: 1.2rem;
}

.quick-absence-btn {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-absence-btn:hover {
  background: #9b2c2c;
  transform: scale(1.05);
}

.undo-absence-btn {
  background: #718096;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.undo-absence-btn:hover {
  background: #4a5568;
  transform: scale(1.05);
}

.absence-marked {
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  background: rgba(197, 48, 48, 0.1);
  border-radius: 6px;
}

/* Geri Sayım */
h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #444;
}

/* Silme Onay Modal */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.confirm-modal-overlay.active {
  display: flex;
}

.confirm-modal {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.confirm-modal-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.confirm-modal h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #2d3748;
}

.confirm-modal .muted {
  margin: 0 0 20px;
  font-size: 0.9rem;
}

.confirm-modal-buttons {
  display: flex;
  gap: 12px;
}

.confirm-cancel-btn,
.confirm-delete-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.confirm-cancel-btn {
  background: #e2e8f0;
  color: #4a5568;
}

.confirm-cancel-btn:hover {
  background: #cbd5e0;
}

.confirm-delete-btn {
  background: #e53e3e;
  color: white;
}

.confirm-delete-btn:hover {
  background: #c53030;
}

/* Geri Sayım Header */
.countdown-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.countdown-header h2 {
  margin: 0 0 4px;
}

.countdown-header .muted {
  margin: 0;
}

/* Floating Action Button (FAB) */
.countdown-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(43, 108, 176, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.countdown-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(43, 108, 176, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.countdown-fab:active {
  transform: scale(0.95);
}

.fab-icon {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  margin-top: -2px;
}

/* FAB Ripple Effect */
.countdown-fab::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  transition: transform 0.4s ease;
}

.countdown-fab:active::before {
  transform: scale(1.5);
  opacity: 0;
}

/* ==================== */
/* YAPILACAKLAR FAB & MODAL */
/* ==================== */

/* Yapılacaklar FAB */
.todo-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(43, 108, 176, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.todo-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(43, 108, 176, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.todo-fab:active {
  transform: scale(0.95);
}

/* FAB Ripple Effect */
.todo-fab::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  transition: transform 0.4s ease;
}

.todo-fab:active::before {
  transform: scale(1.5);
  opacity: 0;
}

/* Yapılacaklar Modal */
.todo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  padding-top: 60px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.todo-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.todo-modal {
  background: var(--card);
  border-radius: 16px;
  width: 100%;
  max-width: 450px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(-30px);
  transition: transform 0.3s ease;
}

.todo-modal-overlay.active .todo-modal {
  transform: translateY(0);
}

.todo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.todo-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #2d3748;
}

.todo-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f7fafc;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  transition: all 0.2s;
}

.todo-modal-close:hover {
  background: #edf2f7;
  color: #2d3748;
}

.todo-modal-body {
  padding: 24px;
}

.todo-modal-body .form-row {
  margin-bottom: 16px;
}

.todo-modal-body .form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 6px;
}

.todo-modal-body .form-row input,
.todo-modal-body .form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  margin-top: 6px;
  box-sizing: border-box;
}

.todo-modal-body .form-row input:focus,
.todo-modal-body .form-row select:focus {
  outline: none;
  border-color: #4299e1;
}

.todo-modal-body>button.primary {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 1rem;
  background: linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%);
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.todo-modal-body>button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
}

/* Modal Alt Görevler Bölümü */
.subtasks-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
  margin-top: 8px;
}

.modal-subtasks-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.modal-subtasks-empty {
  color: #a0aec0;
  font-size: 0.9rem;
  text-align: center;
  padding: 16px;
  background: #f7fafc;
  border-radius: 8px;
}

.modal-subtask-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f7fafc;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.modal-subtask-item:hover {
  background: #edf2f7;
}

.modal-subtask-item.completed {
  opacity: 0.7;
}

.modal-subtask-item.completed .modal-subtask-title {
  text-decoration: line-through;
  color: #a0aec0;
}

.modal-subtask-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: white;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-subtask-checkbox:hover {
  border-color: #4299e1;
}

.modal-subtask-item.completed .modal-subtask-checkbox {
  background: #48bb78;
  border-color: #48bb78;
}

.modal-subtask-title {
  flex: 1;
  font-size: 0.95rem;
  color: #2d3748;
}

.modal-subtask-delete {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #a0aec0;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-subtask-delete:hover {
  background: #fed7d7;
  color: #c53030;
}

.modal-subtask-add {
  display: flex;
  gap: 8px;
}

.modal-subtask-add input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
}

.modal-subtask-add input:focus {
  outline: none;
  border-color: #4299e1;
}

.modal-subtask-add button {
  padding: 10px 16px;
  background: #edf2f7;
  border: none;
  border-radius: 8px;
  color: #4a5568;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-subtask-add button:hover {
  background: #e2e8f0;
}

/* Todo Listesindeki Alt Görev Önizlemesi */
.subtasks-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 8px;
  background: rgba(66, 153, 225, 0.05);
  border-radius: 6px;
  cursor: pointer;
}

.subtasks-preview:hover {
  background: rgba(66, 153, 225, 0.1);
}

.subtask-preview-item {
  font-size: 0.85rem;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 6px;
}

.subtask-preview-item.completed {
  text-decoration: line-through;
  color: #a0aec0;
}

.subtask-more {
  font-size: 0.8rem;
  color: #4299e1;
  font-weight: 500;
}

/* Todo Listesinde Inline Alt Görevler */
.subtasks-list-inline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  background: #f7fafc;
  border-radius: 8px;
}

.subtask-inline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
}

.subtask-inline-item:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.subtask-inline-item.completed {
  opacity: 0.7;
}

.subtask-inline-item.completed .subtask-inline-title {
  text-decoration: line-through;
  color: #a0aec0;
}

.subtask-inline-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: white;
  flex-shrink: 0;
  transition: all 0.2s;
}

.subtask-inline-item:hover .subtask-inline-checkbox {
  border-color: #4299e1;
}

.subtask-inline-item.completed .subtask-inline-checkbox {
  background: #48bb78;
  border-color: #48bb78;
}

.subtask-inline-title {
  font-size: 0.9rem;
  color: #4a5568;
  flex: 1;
}

/* Filtre Dropdown */
.todo-filter-dropdown,
.countdown-filter-dropdown {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: none;
}

.todo-filter-dropdown.active,
.countdown-filter-dropdown.active {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-section {
  margin-bottom: 16px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #718096;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-option {
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  background: #f7fafc;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #4a5568;
}

.filter-option:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.filter-option.active {
  background: #4299e1;
  border-color: #4299e1;
  color: white;
}

.filter-course-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #f7fafc;
  cursor: pointer;
}

.filter-course-select:focus {
  outline: none;
  border-color: #4299e1;
}

.filter-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.filter-clear-btn {
  width: 100%;
  padding: 10px;
  border: none;
  background: #fed7d7;
  color: #c53030;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-clear-btn:hover {
  background: #feb2b2;
}

/* Geri Sayım Modal */
.countdown-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  padding-top: 60px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.countdown-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.countdown-modal {
  background: var(--card);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(-30px);
  transition: transform 0.3s ease;
}

.countdown-modal-overlay.active .countdown-modal {
  transform: translateY(0);
}

.countdown-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.countdown-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #2d3748;
}

.countdown-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f7fafc;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  transition: all 0.2s;
}

.countdown-modal-close:hover {
  background: #edf2f7;
  color: #2d3748;
}

.countdown-modal-body {
  padding: 24px;
}

.countdown-modal-body .countdown-type-selector {
  width: 100%;
  justify-content: center;
}

.countdown-modal-body .form-row {
  flex-direction: column;
  align-items: stretch;
}

.countdown-modal-body .form-row label {
  width: 100%;
}

.countdown-modal-body .form-row input {
  width: 100%;
}

.countdown-modal-body .form-row button {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 1rem;
}

/* Geri Sayım Tip Seçici */
.countdown-type-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: #f7fafc;
  padding: 4px;
  border-radius: 8px;
  width: fit-content;
}

.countdown-type-btn {
  padding: 10px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #718096;
  border-radius: 6px;
  transition: all 0.2s;
}

.countdown-type-btn.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.countdown-type-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
}

.countdown-form-range {
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px 12px 6px;
  border-radius: 10px;
  margin-bottom: 10px;
  border-left: 5px solid;
  background: #f8fafc;
  border-left-color: #718096;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.countdown-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Öncelik renkleri */
.countdown-item.priority-high {
  border-left-color: #c53030 !important;
}

.countdown-item.priority-medium {
  border-left-color: #d69e2e !important;
}

.countdown-item.priority-low {
  border-left-color: #2f855a !important;
}

/* Action buttons (hidden by default) */
.countdown-actions {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  border-top: 1px solid #e2e8f0;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.countdown-item.expanded .countdown-actions {
  max-height: 70px;
  opacity: 1;
  padding: 12px 16px;
}

/* Series Edit Mode */
.series-edit-mode {
  display: none;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.series-edit-mode.active {
  display: block;
}

.series-edit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #edf2f7;
  font-weight: 600;
  font-size: 0.95rem;
  color: #2d3748;
}

.series-edit-back {
  background: none;
  border: none;
  color: #4299e1;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.series-edit-back:hover {
  background: rgba(66, 153, 225, 0.1);
}

.series-edit-mode .series-events {
  max-height: 300px;
  overflow-y: auto;
}

.series-edit-mode .series-event-actions.visible {
  opacity: 1;
}

/* Eski stiller - uyumluluk için korunuyor */
.countdown-item.series-item .countdown-actions {
  padding: 0 16px;
}

.countdown-item.series-item.expanded .countdown-actions {
  padding: 12px 16px;
}

.countdown-edit-btn,
.countdown-delete-btn {
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}

.countdown-edit-btn {
  background: #4299e1;
  color: white;
}

.countdown-edit-btn:hover {
  background: #3182ce;
}

.countdown-delete-btn {
  background: #fc8181;
  color: white;
}

.countdown-delete-btn:hover {
  background: #f56565;
}

/* Header Row - with badge */
.countdown-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

/* Başlık satırı */
.countdown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.countdown-icon {
  font-size: 1.3rem;
}

.countdown-header strong {
  font-size: 1.05rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

/* Badge Stilleri */
.countdown-badge,
.countdown-status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-waiting {
  background: rgba(160, 174, 192, 0.2);
  color: #a0aec0;
}

.badge-active {
  background: rgba(214, 158, 46, 0.15);
  color: #d69e2e;
}

.badge-remaining {
  background: rgba(66, 153, 225, 0.15);
  color: #4299e1;
}

.badge-today {
  background: rgba(229, 62, 62, 0.15);
  color: #e53e3e;
}

.badge-passed {
  background: rgba(160, 174, 192, 0.15);
  color: #a0aec0;
}

.badge-completed {
  background: rgba(72, 187, 120, 0.15);
  color: #48bb78;
}

@keyframes pulse-badge {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

/* Tarih satırı */
.countdown-date-row {
  width: 100%;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.countdown-date-row span {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.2;
}

/* Tek tarihli geri sayım durumları */
.countdown-item.single-item.normal {
  background: #f8fafc;
  border-left-color: #718096;
}

.countdown-item.single-item.soon {
  background: #fffff0;
  border-left-color: #d69e2e;
}

.countdown-item.single-item.very-soon {
  background: #fff8e6;
  border-left-color: #ed8936;
}

.countdown-item.single-item.tomorrow {
  background: #fff5f5;
  border-left-color: #e53e3e;
  animation: pulse-border 1.5s ease-in-out infinite;
}

.countdown-item.single-item.today {
  background: #fff5f5;
  border-left-color: #c53030;
  animation: pulse-border 1s ease-in-out infinite;
}

.countdown-item.single-item.over {
  background: #f0f0f0;
  border-left-color: #a0aec0;
  opacity: 0.7;
}

/* Tek tarihli için eski sil butonu - gizle */
.countdown-item.single-item>button.warn {
  display: none;
}

/* İki tarihli için eski sil butonu - gizle */
.countdown-item.range-item>button.warn {
  display: none;
}

/* İki tarihli (range) geri sayım durumları */
.countdown-item.range-item {
  gap: 12px;
}

.countdown-item.range-item.not-started {
  background: #f8fafc;
  border-left-color: #718096;
}

.countdown-item.range-item.in-progress {
  background: #fffff0;
  border-left-color: #d69e2e;
}

.countdown-item.range-item.ending-soon {
  background: #fff8e6;
  border-left-color: #ed8936;
  animation: pulse-border 1.5s ease-in-out infinite;
}

.countdown-item.range-item.ending-today {
  background: #fff5f5;
  border-left-color: #e53e3e;
  animation: pulse-border 1s ease-in-out infinite;
}

.countdown-item.range-item.completed {
  background: #f0fff4;
  border-left-color: #38a169;
}

/* Progress Bar */
.countdown-range-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.countdown-progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.countdown-progress-bar {
  flex: 1;
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.countdown-progress-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, #4299e1 0%, #38b2ac 100%);
}

.countdown-item.range-item.ending-soon .countdown-progress-fill {
  background: linear-gradient(90deg, #ed8936 0%, #f6ad55 100%);
}

.countdown-item.range-item.ending-today .countdown-progress-fill {
  background: linear-gradient(90deg, #e53e3e 0%, #fc8181 100%);
}

.countdown-item.range-item.completed .countdown-progress-fill {
  background: linear-gradient(90deg, #38a169 0%, #68d391 100%);
}

.countdown-progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

.countdown-range-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.countdown-extra {
  font-size: 0.85rem;
  color: #718096;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.2;
}

/* Pulse animasyonu */
@keyframes pulse-border {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.85;
  }
}

.countdown-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.countdown-info strong {
  font-size: 1rem;
}

.countdown-info span {
  font-size: 0.85rem;
  color: #666;
}

.countdown-status {
  display: flex;
  align-items: center;
  width: 100%;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.countdown-days {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

/* Renk kodları - tek tarih */
.countdown-item.single-item.soon .countdown-days {
  color: #d69e2e;
}

.countdown-item.single-item.very-soon .countdown-days {
  color: #ed8936;
}

.countdown-item.single-item.tomorrow .countdown-days {
  color: #e53e3e;
}

.countdown-item.single-item.today .countdown-days {
  color: #c53030;
}

/* Renk kodları - tarih aralığı */
.countdown-item.range-item.not-started .countdown-days {
  color: #718096;
}

.countdown-item.range-item.in-progress .countdown-days {
  color: #d69e2e;
}

.countdown-item.range-item.ending-soon .countdown-days {
  color: #ed8936;
}

.countdown-item.range-item.ending-today .countdown-days {
  color: #e53e3e;
}

.countdown-item.range-item.completed .countdown-days {
  color: #38a169;
}

/* ==================== */
/* FLIP-CLOCK SAYAÇ */
/* ==================== */

.flip-clock-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 6px 0 4px;
}

.flip-clock-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flip-clock-digit {
  width: 42px;
  height: 48px;
  background: transparent;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: inherit;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  letter-spacing: -1px;
}

/* Separator (iki nokta) */
.flip-clock-separator {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 2px;
  height: 48px;
}

.flip-clock-separator span {
  width: 4px;
  height: 4px;
  background: #a0aec0;
  border-radius: 50%;
}

/* Geçmiş (bitti) durumu */
.countdown-item.over .flip-clock-digit,
.countdown-item.completed .flip-clock-digit {
  opacity: 0.5;
}

/* Bugün veya yarın - kalan süre az */
.countdown-item.today .flip-clock-digit,
.countdown-item.tomorrow .flip-clock-digit,
.countdown-item.ending-today .flip-clock-digit {
  color: #e53e3e;
}

.countdown-item.today .flip-clock-separator span,
.countdown-item.tomorrow .flip-clock-separator span,
.countdown-item.ending-today .flip-clock-separator span {
  background: #e53e3e;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* Yaklaşan */
.countdown-item.very-soon .flip-clock-digit,
.countdown-item.ending-soon .flip-clock-digit {
  color: #dd6b20;
}

/* Başarıyla tamamlandı */
.countdown-item.range-item.completed .flip-clock-digit {
  color: #38a169;
}

/* Responsive - Küçük ekranlar */
@media (max-width: 400px) {
  .flip-clock-container {
    gap: 3px;
  }

  .flip-clock-digit {
    width: 36px;
    height: 42px;
    font-size: 1.3rem;
    border-radius: 6px;
  }

  .flip-clock-separator {
    height: 42px;
    gap: 6px;
  }

  .flip-clock-separator span {
    width: 5px;
    height: 5px;
  }
}

/* ==================== */
/* ETKİNLİK SERİSİ */
/* ==================== */

/* Seri Etkinlikler Bölümü */
.series-events-section {
  width: 100%;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.series-events-section h4 {
  margin: 0 0 12px 0;
  color: #4a5568;
  font-size: 0.95rem;
}

.series-event-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.series-event-inputs label {
  width: 100%;
}

.series-event-inputs input {
  width: 100%;
}

.series-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 150px;
  overflow-y: auto;
}

.series-events-list:empty {
  display: none;
}

.series-event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.series-event-item:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.series-event-item.passed {
  opacity: 0.6;
  border-left: 3px solid #a0aec0;
}

.series-event-item.today {
  border-left: 3px solid #48bb78;
  background: #f0fff4;
}

.series-event-item.future {
  border-left: 3px solid #667eea;
}

.series-event-item .event-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.series-event-item .event-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2d3748;
}

.series-event-item .event-date {
  font-size: 0.8rem;
  color: #718096;
}

.series-event-item .event-status {
  font-size: 0.75rem;
  color: #667eea;
  font-weight: 500;
}

.series-event-item.passed .event-status {
  color: #a0aec0;
}

.series-event-item.today .event-status {
  color: #38a169;
  font-weight: 600;
}

.series-event-item .event-actions {
  display: flex;
  gap: 4px;
}

.series-event-item .event-edit-btn,
.series-event-item .event-delete-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.series-event-item .event-edit-btn:hover {
  background: rgba(102, 126, 234, 0.15);
}

.series-event-item .event-delete-btn:hover {
  background: rgba(229, 62, 62, 0.15);
}

.series-events-empty {
  text-align: center;
  padding: 20px;
  color: #a0aec0;
  font-style: italic;
}

#seriesEventsList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 0;
}

#addSeriesEventBtn.editing {
  background: #48bb78;
}

#addSeriesEventBtn.editing:hover {
  background: #38a169;
}

#cancelEditEventBtn {
  background: #e2e8f0;
  color: #4a5568;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 8px;
}

#cancelEditEventBtn:hover {
  background: #cbd5e0;
}

.series-event-inputs button {
  margin-top: 4px;
}

/* Seri Görünümü (Liste) - Eski stil (uyumluluk için) */
.countdown-item.series-item {
  background: #f8fafc;
  border-left-color: #667eea;
  padding: 10px 0 0 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
  max-width: 100%;
  box-sizing: border-box;
}

/* Series kartında header ve date-row padding */
.countdown-item.series-type .countdown-header,
.countdown-item.series-type .countdown-date-row,
.countdown-item.series-type .countdown-range-content {
  padding-left: 16px;
  padding-right: 16px;
}

/* Series Info Row - yan yana düzen */
.series-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  gap: 12px;
}

.series-event-count {
  font-size: 0.85rem;
  color: #718096;
  background: rgba(0, 0, 0, 0.06);
  padding: 6px 12px;
  border-radius: 6px;
  line-height: 1.2;
  font-weight: 500;
}

/* Events Toggle Button */
.series-events-toggle {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background: #667eea;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  gap: 6px;
}

.series-events-toggle:hover {
  background: #5a67d8;
}

.series-events-toggle .toggle-icon {
  transition: transform 0.3s;
  font-size: 0.7rem;
}

/* Seri Kart Info - eski (uyumluluk için) */
.series-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 16px;
  background: #f8fafc;
  border-top: 1px solid #edf2f7;
  font-size: 0.85rem;
  color: #718096;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.2;
  margin: 0;
}

/* Events Container - Collapsible */
.series-events-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
}

.series-events-container.expanded {
  max-height: 2000px;
  overflow-x: hidden;
  opacity: 1;
}

/* Etkinlik listesi animasyonu */
.series-events-container .series-events {
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

.series-events-container.expanded .series-events {
  transform: translateY(0);
}

/* Seri Events (kullanılıyor) */
.series-events {
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.series-event {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.series-event:last-child {
  border-bottom: none;
}

.series-event-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
}

.series-event-content {
  flex: 1;
}

.series-event-name {
  font-weight: 500;
  color: #2d3748;
}

.series-event-date {
  font-size: 0.85rem;
  color: #718096;
}

.series-event-status {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.series-event-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.series-event:hover .series-event-actions,
.series-event:focus-within .series-event-actions {
  opacity: 1;
}

/* Mobilde her zaman görünür */
@media (max-width: 768px) {
  .series-event-actions {
    opacity: 1;
  }
}

.series-event-actions button {
  padding: 6px 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.series-event-actions .event-edit-btn:hover {
  background: #e6fffa;
}

.series-event-actions .event-delete-btn:hover {
  background: #fed7d7;
}

.series-event.passed {
  opacity: 0.6;
}

.series-event.passed .series-event-status {
  background: #e2e8f0;
  color: #718096;
}

.series-event.today .series-event-status {
  background: #fed7d7;
  color: #c53030;
  animation: pulse-border 1s ease-in-out infinite;
}

.series-event.upcoming .series-event-status {
  background: #fef3c7;
  color: #d69e2e;
}

.series-event.future .series-event-status {
  background: #e6fffa;
  color: #319795;
}

.series-add-more {
  padding: 10px 14px;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}

.series-add-more button {
  width: 100%;
  padding: 10px;
  background: #4a5568;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.series-add-more button:hover {
  background: #2d3748;
}

/* Seriye Etkinlik Ekleme Modal */
.series-add-modal {
  display: none;
  padding: 12px 14px;
  background: #edf2f7;
  border-top: 1px solid #e2e8f0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.series-add-modal.active {
  display: block;
}

.series-add-modal .series-add-event {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  max-width: 100%;
}

.series-add-modal .series-add-event input {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.series-add-modal-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.series-add-modal-buttons button {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.series-add-modal-buttons button.secondary {
  background: #e2e8f0;
  border: none;
  color: #4a5568;
}

.series-add-modal-buttons button.secondary:hover {
  background: #cbd5e0;
}

.series-add-modal-buttons button.primary {
  background: #667eea;
  border: none;
  color: #fff;
}

.series-add-modal-buttons button.primary:hover {
  background: #5a67d8;
}

/* Seriye Etkinlik Düzenleme Modal */
.series-edit-modal {
  display: none;
  padding: 12px 14px;
  background: #e6fffa;
  border-top: 1px solid #81e6d9;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.series-edit-modal.active {
  display: block;
}

.series-edit-modal .series-edit-event {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  max-width: 100%;
}

.series-edit-modal .series-edit-event input {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 1px solid #81e6d9;
  border-radius: 6px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.series-edit-modal-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.series-edit-modal-buttons button {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.series-edit-modal-buttons button.secondary {
  background: #e2e8f0;
  border: none;
  color: #4a5568;
  cursor: pointer;
}

.series-edit-modal-buttons button.primary {
  background: #38a169;
  border: none;
  color: #fff;
  cursor: pointer;
}

.muted {
  color: #6b7280;
  font-size: 0.9rem;
}

/* ==================== */
/* DERSLERİM SAYFASI */
/* ==================== */
.add-course-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.add-course-form input {
  flex: 1;
  min-width: 150px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.add-course-form button {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 400px) {
  .add-course-form {
    flex-direction: column;
  }

  .add-course-form input {
    width: 100%;
  }

  .add-course-form button {
    width: 100%;
  }
}

.my-course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--card);
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 4px solid var(--accent);
  transition: all 0.2s;
}

.my-course-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.my-course-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.my-course-actions button {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.my-courses-empty {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.my-courses-empty-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* Ders Programı - Dropdown */
.schedule-select {
  width: auto;
  padding: 8px 2px;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  text-align: -webkit-center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.schedule-select[data-empty="true"] {
  /* Boş seçenekte tamamen görünmez */
  opacity: 0;
  min-width: 100%;
}

.schedule-select:hover,
.schedule-select[data-empty="true"]:hover {
  background: rgba(43, 108, 176, 0.1);
  opacity: 1;
}

.schedule-select:focus,
.schedule-select[data-empty="true"]:focus {
  outline: none;
  background: rgba(43, 108, 176, 0.15);
  opacity: 1;
}

.schedule-select option {
  padding: 8px;
}

/* ==================== */
/* YAPILACAKLAR SAYFASI */
/* ==================== */
.todo-form {
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.todo-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.todo-form-row:last-child {
  margin-bottom: 0;
}

.todo-form input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
}

.todo-form select {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  background: var(--card);
  min-width: 120px;
}

.todo-form input[type="date"] {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
}

.todo-form button {
  white-space: nowrap;
}

.todo-filters {
  margin-bottom: 16px;
}

.todo-item.priority-high {
  border-left-color: #c53030;
}

.todo-item.priority-medium {
  border-left-color: #d69e2e;
}

.todo-item.priority-low {
  border-left-color: #2f855a;
}

.todo-item.completed {
  opacity: 0.6;
  background: var(--bg);
}

.todo-item.completed .todo-title {
  text-decoration: line-through;
  color: #888;
}

.todo-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ddd;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
}

.todo-checkbox:hover {
  border-color: var(--accent);
  background: rgba(43, 108, 176, 0.1);
}

.todo-item.completed .todo-checkbox {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.todo-content {
  flex: 1;
  min-width: 0;
}

.todo-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text);
}

.todo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #666;
}

.todo-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.todo-date.overdue {
  color: #c53030;
  font-weight: 600;
}

.todo-date.today {
  color: #d69e2e;
  font-weight: 600;
}

.todo-date.upcoming {
  color: #2f855a;
}

/* Todo Main Content - Expandable Layout */
.todo-main-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.todo-item {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--card);
  border-radius: 12px;
  margin-bottom: 10px;
  border-left: 4px solid;
  transition: all 0.3s ease;
  cursor: pointer;
}

.todo-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.todo-actions {
  display: flex;
  gap: 12px;
  padding: 0;
  border-top: 1px solid #e2e8f0;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  width: 100%;
}

.todo-item.expanded .todo-actions {
  max-height: 70px;
  opacity: 1;
  padding-top: 12px;
  margin-top: 12px;
}

.todo-edit-btn,
.todo-delete-btn {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.todo-edit-btn {
  background: #4299e1;
  color: white;
}

.todo-edit-btn:hover {
  background: #3182ce;
}

.todo-delete-btn {
  background: #e53e3e;
  color: white;
}

.todo-delete-btn:hover {
  background: #c53030;
}

.todo-empty {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.todo-empty-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* Alt Görevler (Subtasks) */
.subtask-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.subtask-progress-bar {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.subtask-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4299e1, #38b2ac);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.subtask-progress-text {
  font-size: 0.8rem;
  color: #718096;
  white-space: nowrap;
}

.subtasks-container {
  margin-top: 8px;
}

.subtask-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subtask-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  font-size: 0.9rem;
}

.subtask-item.completed {
  opacity: 0.6;
}

.subtask-item.completed .subtask-title {
  text-decoration: line-through;
  color: #888;
}

.subtask-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #cbd5e0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  transition: all 0.2s;
}

.subtask-checkbox:hover {
  border-color: var(--accent);
  background: rgba(43, 108, 176, 0.1);
}

.subtask-item.completed .subtask-checkbox {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.subtask-title {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.subtask-delete {
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: #a0aec0;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.subtask-delete:hover {
  background: #fed7d7;
  color: #c53030;
}

.subtask-add {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.subtask-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #f7fafc;
}

.subtask-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.subtask-add-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.subtask-add-btn:hover {
  background: #2c5aa0;
}

/* Not Hesaplama */
.grade-calculator {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.grade-input-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.grade-input-row label {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.grade-input-row input {
  width: 120px;
}

.grade-input-row input[type="text"] {
  width: 200px;
}

.grade-input-row select {
  width: auto;
  max-width: 100%;
  padding: 8px;
  font-size: 0.9rem;
}

/* Ek Bileşenler */
.grade-section-header {
  font-weight: 600;
  font-size: 0.95rem;
  color: #4a5568;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.grade-section-hint {
  font-weight: normal;
  font-size: 0.8rem;
  color: #718096;
}

.extra-components-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.extra-component-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f7fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.extra-component-item .component-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.9rem;
}

.extra-component-item .component-weight {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.extra-component-item input {
  width: 70px;
  padding: 6px 8px;
  font-size: 0.85rem;
}

.extra-component-item .remove-component-btn {
  background: #fc8181;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.extra-component-item .remove-component-btn:hover {
  background: #e53e3e;
}

.extra-component-add {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.extra-component-add input[type="text"] {
  flex: 1;
  min-width: 120px;
  padding: 8px;
  font-size: 0.9rem;
}

.extra-component-add input[type="number"] {
  width: 60px;
  padding: 8px;
  font-size: 0.9rem;
}

.extra-component-info {
  font-size: 0.8rem;
  margin-top: 4px;
  color: #718096;
}

button.secondary {
  background: #718096;
}

button.secondary:hover {
  opacity: 0.9;
}

#gradeResult {
  margin-top: 16px;
}

.grade-result-box {
  padding: 16px;
  border-radius: 8px;
  margin-top: 12px;
}

.grade-result-box.pass {
  background: #f0fff4;
  border: 2px solid #2f855a;
}

.grade-result-box.fail {
  background: #fff5f5;
  border: 2px solid #c53030;
}

.grade-result-box.warning {
  background: #fffff0;
  border: 2px solid #d69e2e;
}

.grade-result-box.info {
  background: #ebf8ff;
  border: 2px solid #3182ce;
}

.grade-result-box h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.grade-result-box p {
  margin: 4px 0;
  font-size: 0.95rem;
}

.grade-result-box .big-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent);
}

/* Kayıtlı dersler listesi */
.saved-grade-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #f8fafc;
  border-left: 4px solid #718096;
}

.saved-grade-item.status-pass {
  border-left-color: #2f855a;
}

.saved-grade-item.status-fail {
  border-left-color: #c53030;
}

.saved-grade-item.status-pending {
  border-left-color: #d69e2e;
}

.saved-grade-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.saved-grade-info strong {
  font-size: 1rem;
}

.saved-grade-info span {
  font-size: 0.85rem;
  color: #666;
}

.saved-grade-info .extra-components-summary {
  color: var(--accent);
  font-size: 0.75rem;
}

.saved-grade-actions {
  display: flex;
  gap: 6px;
}

/* ==================== */
/* NOT HESAPLAMA YENİ TEMA */
/* ==================== */

/* Not Hesaplama Arama Kutusu */
.search-box.grade-search {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.search-box.grade-search input {
  flex: 1;
}

/* Not Hesaplama Filtre Dropdown */
.grade-filter-dropdown {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: none;
}

.grade-filter-dropdown.active {
  display: block;
  animation: slideDown 0.2s ease;
}

/* Not Hesaplama FAB */
.grade-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
}

.grade-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.grade-fab:active {
  transform: translateY(-1px) scale(1.02);
}

/* Not Hesaplama Modal */
.grade-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  padding-top: 60px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.grade-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.grade-modal {
  background: var(--card);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(-30px);
  transition: transform 0.3s ease;
}

.grade-modal-overlay.active .grade-modal {
  transform: translateY(0);
}

.grade-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.grade-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #2d3748;
}

.grade-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f7fafc;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  transition: all 0.2s;
}

.grade-modal-close:hover {
  background: #edf2f7;
  color: #2d3748;
}

.grade-modal-body {
  padding: 24px;
}

.grade-modal-body .grade-calculator {
  margin-top: 0;
}

/* Grade Form Sections */
.grade-form-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.grade-form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a5568;
}

.grade-select,
.grade-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s;
  background: #fff;
}

.grade-select:focus,
.grade-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.grade-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .grade-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Grade Modal Actions */
.grade-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.grade-action-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.grade-action-btn.calculate {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  color: white;
}

.grade-action-btn.calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.grade-action-btn.save {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
}

.grade-action-btn.save:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

/* Modal içindeki stil güncellemeleri */
.grade-modal-body .grade-section-header {
  margin-top: 16px;
  padding-top: 16px;
}

.grade-modal-body .extra-component-add {
  flex-wrap: wrap;
}

.grade-modal-body .extra-component-add input[type="text"] {
  flex: 1;
  min-width: 120px;
}

.grade-modal-body .extra-component-info {
  margin-bottom: 0;
}

/* Kayıtlı Ders Kartları - Geri Sayım Teması */
.saved-grade-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px 12px 6px;
  border-radius: 10px;
  margin-bottom: 10px;
  border-left: 5px solid;
  background: #f8fafc;
  border-left-color: #718096;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.saved-grade-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Durum bazlı kart renkleri - Sadece kenar çizgisi değişiyor, kart rengi sabit */
.saved-grade-item.status-pending {
  border-left-color: #d69e2e;
}

.saved-grade-item.status-pass {
  border-left-color: #38a169;
}

.saved-grade-item.status-fail {
  border-left-color: #e53e3e;
}

.saved-grade-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.saved-grade-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.saved-grade-info strong {
  font-size: 1.05rem;
  color: #2d3748;
  word-wrap: break-word;
}

.saved-grade-info span {
  font-size: 0.85rem;
  color: #666;
}

.saved-grade-info .extra-components-summary {
  color: var(--accent);
  font-size: 0.75rem;
}

.saved-grade-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.saved-grade-badge.pass {
  background: #d1fae5;
  color: #047857;
}

.saved-grade-badge.fail {
  background: #fecaca;
  color: #b91c1c;
}

.saved-grade-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

/* Kayıtlı Ders Aksiyon Butonları - Geri Sayım Gibi Genişleme */
.saved-grade-actions {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  border-top: 1px solid #e2e8f0;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.saved-grade-item.expanded .saved-grade-actions {
  max-height: 70px;
  opacity: 1;
  padding: 12px 16px;
}

.saved-grade-edit-btn,
.saved-grade-delete-btn {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.saved-grade-edit-btn {
  background: #4299e1;
  color: white;
}

.saved-grade-edit-btn:hover {
  background: #3182ce;
}

.saved-grade-delete-btn {
  background: #fc8181;
  color: white;
}

.saved-grade-delete-btn:hover {
  background: #f56565;
}

/* Boş Durum */
.grades-empty {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.grades-empty-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* Ayarlar Sayfası - Menü Kartları */
.settings-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.settings-menu-item:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  transform: translateX(4px);
}

.settings-menu-item:active {
  transform: translateX(2px);
}

.settings-menu-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
  border-radius: 10px;
  flex-shrink: 0;
}

.settings-menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-menu-title {
  font-weight: 600;
  font-size: 1rem;
  color: #2d3748;
}

.settings-menu-desc {
  font-size: 0.85rem;
  color: #718096;
}

.settings-menu-arrow {
  font-size: 1.5rem;
  color: #a0aec0;
  font-weight: 300;
}

.settings-menu-item.danger {
  border-color: #fed7d7;
}

.settings-menu-item.danger:hover {
  background: #fff5f5;
  border-color: #feb2b2;
}

.settings-menu-item.danger .settings-menu-icon {
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.settings-menu-item.danger .settings-menu-title {
  color: var(--danger);
}

/* Ayarlar Alt Sayfa Stilleri */
.settings-subpage {
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.settings-subpage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.settings-subpage-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.settings-back-btn {
  padding: 8px 14px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #4a5568;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-back-btn:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

/* Orijinal Ayarlar Stilleri */
.settings-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.settings-section h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: #2d3748;
}

.settings-item {
  margin-bottom: 12px;
}

.settings-item label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 6px;
}

.settings-item input,
.settings-item select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
}

.settings-item input:disabled {
  background: #f7fafc;
  color: #718096;
}

.settings-item input:focus,
.settings-item select:focus {
  outline: none;
  border-color: var(--accent);
}

.settings-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-btn {
  background: var(--accent);
  color: #fff;
}

.settings-btn:hover {
  opacity: 0.9;
}

.settings-btn.secondary {
  background: #edf2f7;
  color: #4a5568;
}

.settings-btn.secondary:hover {
  background: #e2e8f0;
}

.settings-btn.danger {
  background: #fff5f5;
  color: var(--danger);
  border: 1px solid #fed7d7;
}

.settings-btn.danger:hover {
  background: #feb2b2;
  color: #742a2a;
}

/* Hesap Bağlama Stilleri */
.google-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #333;
  border: 2px solid #e2e8f0;
  margin-top: 10px;
}

.google-link-btn:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

.google-link-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.linked-providers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.provider-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: 8px;
  font-size: 0.9rem;
}

.provider-item.not-linked {
  background: #f7fafc;
  border-color: #e2e8f0;
  color: #718096;
}

.provider-item .check {
  color: var(--success);
  font-weight: bold;
}

.link-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.link-message.success {
  background: #f0fff4;
  color: var(--success);
}

.link-message.error {
  background: #fff5f5;
  color: var(--danger);
}

/* Şifre Bağlama */
.link-password-section {
  background: #f7fafc;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.link-password-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.link-password-input:focus {
  outline: none;
  border-color: var(--accent);
}

.settings-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-zone {
  background: #fff5f5;
  margin-top: 24px;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #fed7d7;
}

.danger-zone h3 {
  color: var(--danger);
  margin: 0 0 10px 0;
}

.danger-zone p {
  color: #666;
  margin: 0 0 16px 0;
  font-size: 0.9rem;
}

/* Tema Butonları */
.theme-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-btn {
  padding: 12px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  color: #333;
}

.theme-btn:hover {
  border-color: var(--accent);
}

.theme-btn.active {
  border-color: var(--accent);
  background: #ebf4ff;
  color: var(--accent);
  font-weight: 600;
}

/* Tema Varyasyonları */
body.theme-dark {
  --bg: #1a202c;
  --card: #2d3748;
  --text: #e2e8f0;
  color: #e2e8f0;
}

body.theme-dark .card,
body.theme-dark .sidebar,
body.theme-dark .auth-card {
  background: #2d3748;
  color: #e2e8f0;
}

body.theme-dark .sidebar-header {
  border-color: #4a5568;
}

body.theme-dark .nav-list>li {
  border-color: #4a5568;
}

body.theme-dark .nav-link {
  color: #e2e8f0;
}

body.theme-dark .nav-link:hover {
  background: #4a5568;
}

body.theme-dark .nav-link.active {
  background: #4a5568;
  color: #90cdf4;
}

body.theme-dark .nav-group {
  border-color: #4a5568;
}

body.theme-dark .nav-group-header {
  color: #e2e8f0;
}

body.theme-dark .nav-group-header:hover {
  background: #4a5568;
}

body.theme-dark .nav-group-header.open {
  background: #3d4a5c;
}

body.theme-dark .nav-submenu {
  background: #1a202c;
}

body.theme-dark .nav-submenu li {
  border-color: #2d3748;
}

body.theme-dark .nav-submenu .nav-link::before {
  color: #4a5568;
}

body.theme-dark input,
body.theme-dark select {
  background: #4a5568;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark input::placeholder {
  color: #a0aec0;
}

body.theme-dark table {
  background: #2d3748;
}

body.theme-dark table th {
  background: #4a5568;
  color: #fff;
  font-weight: 600;
}

body.theme-dark table td {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark table td input,
body.theme-dark table td input[type="text"],
body.theme-dark table td input[type="time"] {
  background: #2d3748 !important;
  color: #e2e8f0 !important;
  border-color: #4a5568 !important;
}

body.theme-dark .muted {
  color: #a0aec0;
}

body.theme-dark label {
  color: #e2e8f0;
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4 {
  color: #e2e8f0;
}

body.theme-dark p {
  color: #cbd5e0;
}

/* Dark Theme - Ayarlar Menü Kartları */
body.theme-dark .settings-menu-item {
  background: #2d3748;
  border-color: #4a5568;
}

body.theme-dark .settings-menu-item:hover {
  background: #3d4a5c;
  border-color: #718096;
}

body.theme-dark .settings-menu-icon {
  background: linear-gradient(135deg, #3d4a5c 0%, #4a5568 100%);
}

body.theme-dark .settings-menu-title {
  color: #e2e8f0;
}

body.theme-dark .settings-menu-desc {
  color: #a0aec0;
}

body.theme-dark .settings-menu-arrow {
  color: #718096;
}

body.theme-dark .settings-menu-item.danger {
  border-color: #9b2c2c;
}

body.theme-dark .settings-menu-item.danger:hover {
  background: #742a2a;
  border-color: #c53030;
}

body.theme-dark .settings-menu-item.danger .settings-menu-icon {
  background: linear-gradient(135deg, #742a2a 0%, #9b2c2c 100%);
}

body.theme-dark .settings-subpage-header {
  border-color: #4a5568;
}

body.theme-dark .settings-back-btn {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .settings-back-btn:hover {
  background: #4a5568;
  border-color: #718096;
}

body.theme-dark .settings-section h3 {
  color: #e2e8f0;
}

body.theme-dark .settings-item label {
  color: #e2e8f0;
}

body.theme-dark .settings-item input,
body.theme-dark .settings-item select {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .settings-item input:disabled {
  background: #1a202c;
  color: #a0aec0;
  cursor: not-allowed;
}

body.theme-dark .settings-btn.secondary {
  background: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .google-link-btn {
  background: #2d3748;
  color: #e2e8f0;
  border-color: #4a5568;
}

body.theme-dark .google-link-btn:hover {
  background: #4a5568;
}

body.theme-dark .provider-item {
  background: #22543d;
  border-color: #276749;
  color: #c6f6d5;
}

body.theme-dark .provider-item.not-linked {
  background: #2d3748;
  border-color: #4a5568;
  color: #a0aec0;
}

body.theme-dark .link-message.success {
  background: #22543d;
  color: #9ae6b4;
}

body.theme-dark .link-message.error {
  background: #742a2a;
  color: #feb2b2;
}

body.theme-dark .link-password-section {
  background: #2d3748;
  border-color: #4a5568;
}

body.theme-dark .link-password-input {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .theme-btn {
  background: #4a5568;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .theme-btn.active {
  border-color: #90cdf4;
  background: #2c5282;
  color: #90cdf4;
}

body.theme-dark .absence-row {
  background: #3d4a5c;
  color: #e2e8f0;
}

body.theme-dark .absence-row.status-safe {
  border-left-color: #48bb78;
}

body.theme-dark .absence-row.status-warning {
  border-left-color: #ecc94b;
}

body.theme-dark .absence-row.status-failed {
  border-left-color: #fc8181;
}

body.theme-dark .absence-header strong {
  color: #f7fafc;
}

body.theme-dark .absence-info span {
  color: #a0aec0;
}

body.theme-dark .absence-info .semester-ended {
  color: #68d391;
}

body.theme-dark .absence-actions {
  border-top-color: #4a5568;
}

/* Koyu tema - Derslerim */
body.theme-dark .add-course-form input {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .my-course-item {
  background: #3d4a5c;
}

body.theme-dark .my-course-name {
  color: #e2e8f0;
}

body.theme-dark .schedule-select {
  color: #e2e8f0;
  background: transparent;
}

body.theme-dark .schedule-select:hover {
  background: rgba(66, 153, 225, 0.1);
}

body.theme-dark .schedule-select:focus {
  background: #2d3748;
}

body.theme-dark .schedule-select option {
  background: #2d3748;
  color: #e2e8f0;
}

/* Koyu tema - Yapılacaklar */
body.theme-dark .todo-form {
  background: #3d4a5c;
}

body.theme-dark .todo-form input,
body.theme-dark .todo-form select {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .todo-item {
  background: #3d4a5c;
}

body.theme-dark .todo-item.completed {
  background: #2d3748;
}

body.theme-dark .todo-title {
  color: #e2e8f0;
}

body.theme-dark .todo-meta {
  color: #a0aec0;
}

body.theme-dark .todo-checkbox {
  border-color: #4a5568;
}

body.theme-dark .todo-checkbox:hover {
  border-color: var(--accent);
  background: rgba(66, 153, 225, 0.2);
}

body.theme-dark .todo-actions {
  border-top-color: #4a5568;
}

body.theme-dark .todo-edit-btn {
  background: #4299e1;
}

body.theme-dark .todo-edit-btn:hover {
  background: #3182ce;
}

body.theme-dark .todo-delete-btn {
  background: #e53e3e;
}

body.theme-dark .todo-delete-btn:hover {
  background: #c53030;
}

/* Koyu tema - Alt Görevler */
body.theme-dark .subtask-item {
  background: rgba(255, 255, 255, 0.05);
}

body.theme-dark .subtask-checkbox {
  border-color: #4a5568;
}

body.theme-dark .subtask-title {
  color: #e2e8f0;
}

body.theme-dark .subtask-input {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .subtask-input:focus {
  background: #3d4a5c;
}

body.theme-dark .subtask-progress-bar {
  background: #4a5568;
}

body.theme-dark .subtask-delete {
  color: #718096;
}

body.theme-dark .subtask-delete:hover {
  background: rgba(252, 129, 129, 0.2);
  color: #fc8181;
}

/* Koyu tema - Kayıtlı Dersler */
body.theme-dark .saved-grade-item {
  background: #3d4a5c;
  color: #e2e8f0;
}

body.theme-dark .saved-grade-item.status-pass {
  border-left-color: #38a169;
}

body.theme-dark .saved-grade-item.status-fail {
  border-left-color: #e53e3e;
}

body.theme-dark .saved-grade-item.status-pending {
  border-left-color: #d69e2e;
}

body.theme-dark .saved-grade-info strong {
  color: #e2e8f0;
}

body.theme-dark .saved-grade-info span {
  color: #a0aec0;
}

/* Koyu tema - Ek Bileşenler */
body.theme-dark .grade-section-header {
  color: #e2e8f0;
  border-top-color: #4a5568;
}

body.theme-dark .grade-section-hint {
  color: #a0aec0;
}

body.theme-dark .extra-component-item {
  background: #2d3748;
  border-color: #4a5568;
}

body.theme-dark .extra-component-item .component-name {
  color: #e2e8f0;
}

body.theme-dark .extra-component-add input {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .extra-component-info {
  color: #a0aec0;
}

body.theme-dark .help-tooltip {
  background: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .help-tooltip::before {
  border-bottom-color: #4a5568;
}

body.theme-dark .danger-zone {
  background: #2d2020;
  border-color: #742a2a;
}

body.theme-dark .danger-zone h3 {
  color: #fc8181;
}

body.theme-dark .danger-zone p {
  color: #feb2b2;
}

body.theme-dark .settings-btn.danger {
  background: #c53030;
  color: #fff;
}

body.theme-dark .absence-marked {
  color: #fc8181;
  background: rgba(252, 129, 129, 0.15);
}

body.theme-dark .countdown-card {
  background: #2d3748;
  color: #e2e8f0;
}

body.theme-dark .countdown-card h4 {
  color: #90cdf4;
}

body.theme-dark .countdown-card p {
  color: #e2e8f0;
}

body.theme-dark .countdown-card .countdown-date {
  color: #a0aec0;
}

body.theme-dark .countdown-card .countdown-remaining {
  color: #cbd5e0;
}

/* Koyu tema - Geri sayım tip seçici */
body.theme-dark .countdown-type-selector {
  background: #2d3748;
}

body.theme-dark .countdown-type-btn {
  color: #a0aec0;
}

body.theme-dark .countdown-type-btn.active {
  background: #4a5568;
  color: #90cdf4;
}

body.theme-dark .countdown-type-btn:hover:not(.active) {
  background: rgba(74, 85, 104, 0.5);
}

/* Koyu tema - Silme Onay Modal */
body.theme-dark .confirm-modal {
  background: #1a202c;
}

body.theme-dark .confirm-modal h3 {
  color: #e2e8f0;
}

body.theme-dark .confirm-modal .muted {
  color: #a0aec0;
}

body.theme-dark .confirm-cancel-btn {
  background: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .confirm-cancel-btn:hover {
  background: #718096;
}

/* Koyu tema - Yapılacaklar Arama ve Filtre */
body.theme-dark .search-box.todo-search {
  background: #2d3748;
  border-color: #4a5568;
}

body.theme-dark .search-box.todo-search:focus-within {
  border-color: #63b3ed;
  background: #1a202c;
}

body.theme-dark .search-box.todo-search input {
  color: #e2e8f0;
}

body.theme-dark .search-box.todo-search input::placeholder {
  color: #718096;
}

body.theme-dark .search-filter-btn {
  background: #2d3748;
  border-color: #4a5568;
  color: #a0aec0;
}

body.theme-dark .search-filter-btn:hover {
  background: #3d4a5c;
  border-color: #718096;
}

body.theme-dark .search-filter-btn.active {
  background: #4299e1;
  border-color: #4299e1;
  color: white;
}

body.theme-dark .todo-filter-dropdown,
body.theme-dark .countdown-filter-dropdown {
  background: #2d3748;
  border-color: #4a5568;
}

body.theme-dark .filter-section-title {
  color: #a0aec0;
}

body.theme-dark .filter-option {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .filter-option:hover {
  background: #3d4a5c;
  border-color: #718096;
}

body.theme-dark .filter-option.active {
  background: #4299e1;
  border-color: #4299e1;
}

body.theme-dark .filter-course-select {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .filter-course-select:focus {
  border-color: #63b3ed;
}

body.theme-dark .filter-actions {
  border-top-color: #4a5568;
}

body.theme-dark .filter-clear-btn {
  background: rgba(197, 48, 48, 0.2);
  color: #fc8181;
}

body.theme-dark .filter-clear-btn:hover {
  background: rgba(197, 48, 48, 0.3);
}

/* Koyu tema - Geri sayım modal */
body.theme-dark .countdown-modal {
  background: #1a202c;
}

body.theme-dark .countdown-modal-header {
  background: #1a202c;
  border-bottom-color: #2d3748;
}

body.theme-dark .countdown-modal-header h3 {
  color: #e2e8f0;
}

body.theme-dark .countdown-modal-close {
  background: #2d3748;
  color: #a0aec0;
}

body.theme-dark .countdown-modal-close:hover {
  background: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .countdown-fab {
  background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
  box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.3);
}

body.theme-dark .countdown-fab:hover {
  box-shadow: 0 8px 28px rgba(66, 153, 225, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Koyu tema - Yapılacaklar FAB & Modal */
body.theme-dark .todo-fab {
  background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
  box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.3);
}

body.theme-dark .todo-fab:hover {
  box-shadow: 0 8px 28px rgba(66, 153, 225, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.35);
}

body.theme-dark .todo-modal {
  background: #2d3748;
}

body.theme-dark .todo-modal-header {
  background: #2d3748;
  border-bottom-color: #4a5568;
}

body.theme-dark .todo-modal-header h3 {
  color: #e2e8f0;
}

body.theme-dark .todo-modal-close {
  background: #4a5568;
  color: #a0aec0;
}

body.theme-dark .todo-modal-close:hover {
  background: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .todo-modal-body .form-row label {
  color: #a0aec0;
}

body.theme-dark .todo-modal-body .form-row input,
body.theme-dark .todo-modal-body .form-row select {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .todo-modal-body .form-row input:focus,
body.theme-dark .todo-modal-body .form-row select:focus {
  border-color: #63b3ed;
}

body.theme-dark .todo-modal-body>button.primary {
  background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
}

/* Koyu tema - Modal Alt Görevler */
body.theme-dark .subtasks-section {
  border-top-color: #4a5568;
}

body.theme-dark .modal-subtasks-empty {
  background: #1a202c;
  color: #718096;
}

body.theme-dark .modal-subtask-item {
  background: #1a202c;
}

body.theme-dark .modal-subtask-item:hover {
  background: #2d3748;
}

body.theme-dark .modal-subtask-title {
  color: #e2e8f0;
}

body.theme-dark .modal-subtask-checkbox {
  border-color: #4a5568;
}

body.theme-dark .modal-subtask-checkbox:hover {
  border-color: #63b3ed;
}

body.theme-dark .modal-subtask-delete:hover {
  background: rgba(197, 48, 48, 0.2);
}

body.theme-dark .modal-subtask-add input {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .modal-subtask-add input:focus {
  border-color: #63b3ed;
}

body.theme-dark .modal-subtask-add button {
  background: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .modal-subtask-add button:hover {
  background: #718096;
}

body.theme-dark .subtasks-preview {
  background: rgba(99, 179, 237, 0.1);
}

body.theme-dark .subtasks-preview:hover {
  background: rgba(99, 179, 237, 0.15);
}

body.theme-dark .subtask-preview-item {
  color: #a0aec0;
}

body.theme-dark .subtask-preview-item.completed {
  color: #718096;
}

/* Koyu tema - Inline Alt Görevler */
body.theme-dark .subtasks-list-inline {
  background: transparent;
}

body.theme-dark .subtask-inline-item {
  background: #3d4a5c;
  border-color: #5a6a7d;
}

body.theme-dark .subtask-inline-item:hover {
  background: #4a5a6d;
  border-color: #7a8a9d;
}

body.theme-dark .subtask-inline-checkbox {
  border-color: #718096;
  background: #2d3748;
}

body.theme-dark .subtask-inline-item:hover .subtask-inline-checkbox {
  border-color: #63b3ed;
}

body.theme-dark .subtask-inline-item.completed .subtask-inline-checkbox {
  background: #48bb78;
  border-color: #48bb78;
}

body.theme-dark .subtask-inline-title {
  color: #e2e8f0;
}

body.theme-dark .subtask-inline-item.completed .subtask-inline-title {
  color: #718096;
}

/* Koyu tema - Geri sayım öğeleri */
body.theme-dark .countdown-item {
  background: #3d4a5c;
  color: #e2e8f0;
}

body.theme-dark .countdown-actions {
  border-top-color: #4a5568;
}

body.theme-dark .series-edit-mode {
  background: #2d3748;
  border-top-color: #4a5568;
}

body.theme-dark .series-edit-header {
  background: #1a202c;
  color: #e2e8f0;
}

body.theme-dark .series-edit-back {
  color: #63b3ed;
}

body.theme-dark .series-edit-back:hover {
  background: rgba(99, 179, 237, 0.1);
}

body.theme-dark .countdown-edit-btn {
  background: #4299e1;
}

body.theme-dark .countdown-delete-btn {
  background: #fc8181;
}

body.theme-dark .countdown-item strong {
  color: #e2e8f0;
}

body.theme-dark .countdown-item.single-item.normal {
  background: #3d4a5c;
  border-left-color: #718096;
}

body.theme-dark .countdown-item.single-item.soon,
body.theme-dark .countdown-item.range-item.in-progress {
  background: #4a4520;
}

body.theme-dark .countdown-item.single-item.very-soon,
body.theme-dark .countdown-item.range-item.ending-soon {
  background: #4a3520;
}

body.theme-dark .countdown-item.single-item.tomorrow,
body.theme-dark .countdown-item.single-item.today,
body.theme-dark .countdown-item.range-item.ending-today {
  background: #4a2020;
}

body.theme-dark .countdown-item.single-item.over {
  background: #2d3748;
}

body.theme-dark .countdown-item.range-item.not-started {
  background: #3d4a5c;
}

body.theme-dark .countdown-item.range-item.completed {
  background: #1c4532;
}

body.theme-dark .countdown-info span {
  color: #a0aec0;
}

body.theme-dark .countdown-date-row span {
  color: #a0aec0;
}

body.theme-dark .countdown-days {
  color: #e2e8f0;
}

body.theme-dark .countdown-item.single-item.soon .countdown-days,
body.theme-dark .countdown-item.range-item.in-progress .countdown-days {
  color: #faf089;
}

body.theme-dark .countdown-item.single-item.very-soon .countdown-days,
body.theme-dark .countdown-item.range-item.ending-soon .countdown-days {
  color: #fbd38d;
}

body.theme-dark .countdown-item.single-item.tomorrow .countdown-days,
body.theme-dark .countdown-item.single-item.today .countdown-days,
body.theme-dark .countdown-item.range-item.ending-today .countdown-days {
  color: #fc8181;
}

body.theme-dark .countdown-item.range-item.completed .countdown-days {
  color: #68d391;
}

body.theme-dark .countdown-progress-bar {
  background: #4a5568;
}

body.theme-dark .countdown-progress-text {
  color: #a0aec0;
}

/* Dark Mode - Badge Stilleri */
body.theme-dark .badge-waiting {
  background: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .badge-active {
  background: #744210;
  color: #fef3c7;
}

body.theme-dark .badge-warning {
  background: #9a3412;
  color: #fed7aa;
}

body.theme-dark .badge-danger {
  background: #991b1b;
  color: #fecaca;
}

body.theme-dark .badge-completed {
  background: #065f46;
  color: #d1fae5;
}

body.theme-dark .countdown-extra {
  background: rgba(255, 255, 255, 0.1);
  color: #a0aec0;
}

body.theme-dark .countdown-icon {
  opacity: 0.9;
}

/* Dark Mode - Etkinlik Serisi */
body.theme-dark .series-events-section {
  border-top-color: #4a5568;
}

body.theme-dark .series-events-section h4 {
  color: #e2e8f0;
}

body.theme-dark .series-event-item {
  background: #1a202c;
  border-color: #4a5568;
}

body.theme-dark .series-event-item:hover {
  background: #2d3748;
  border-color: #667eea;
}

body.theme-dark .series-event-item.passed {
  border-left-color: #4a5568;
}

body.theme-dark .series-event-item.today {
  background: rgba(72, 187, 120, 0.15);
  border-left-color: #68d391;
}

body.theme-dark .series-event-item.future {
  border-left-color: #667eea;
}

body.theme-dark .series-event-item .event-name {
  color: #e2e8f0;
}

body.theme-dark .series-event-item .event-date {
  color: #a0aec0;
}

body.theme-dark .series-event-item .event-status {
  color: #a78bfa;
}

body.theme-dark .series-event-item.passed .event-status {
  color: #718096;
}

body.theme-dark .series-event-item.today .event-status {
  color: #68d391;
}

body.theme-dark .series-event-item .event-edit-btn:hover {
  background: rgba(102, 126, 234, 0.25);
}

body.theme-dark .series-event-item .event-delete-btn:hover {
  background: rgba(229, 62, 62, 0.25);
}

body.theme-dark .series-events-empty {
  color: #718096;
}

body.theme-dark #cancelEditEventBtn {
  background: #4a5568;
  color: #e2e8f0;
}

body.theme-dark #cancelEditEventBtn:hover {
  background: #718096;
}

body.theme-dark .series-event-inputs input {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .countdown-item.series-item {
  background: #2d3748;
}

body.theme-dark .series-status-info {
  background: rgba(102, 126, 234, 0.15);
  border-bottom-color: rgba(102, 126, 234, 0.2);
}

body.theme-dark .series-status-text {
  color: #e2e8f0;
}

body.theme-dark .series-extra-info {
  background: rgba(255, 255, 255, 0.1);
  color: #a0aec0;
}

body.theme-dark .series-not-started .series-status-info {
  background: rgba(113, 128, 150, 0.2);
}

body.theme-dark .series-ending-soon .series-status-info {
  background: rgba(237, 137, 54, 0.2);
}

body.theme-dark .series-ending-soon .series-status-text {
  color: #ed8936;
}

body.theme-dark .series-ending-today .series-status-info {
  background: rgba(229, 62, 62, 0.2);
}

body.theme-dark .series-ending-today .series-status-text {
  color: #fc8181;
}

body.theme-dark .series-completed .series-status-info {
  background: rgba(56, 161, 105, 0.2);
}

body.theme-dark .series-completed .series-status-text {
  color: #68d391;
}

body.theme-dark .series-progress {
  background: rgba(102, 126, 234, 0.15);
}

body.theme-dark .series-progress-bar {
  background: #4a5568;
}

body.theme-dark .series-progress-text {
  color: #a78bfa;
}

body.theme-dark .series-event {
  border-bottom-color: #4a5568;
}

body.theme-dark .series-event-name {
  color: #e2e8f0;
}

body.theme-dark .series-event-date {
  color: #a0aec0;
}

body.theme-dark .series-event.passed .series-event-status {
  background: #4a5568;
  color: #a0aec0;
}

body.theme-dark .series-add-more {
  background: transparent;
}

body.theme-dark .series-add-more button {
  background: #667eea;
  color: white;
}

body.theme-dark .series-add-more button:hover {
  background: #5a67d8;
}

body.theme-dark .series-add-modal {
  background: #1a202c;
  border-top-color: #4a5568;
}

body.theme-dark .series-add-modal .series-add-event input {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .series-add-modal-buttons button.secondary {
  background: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .series-add-modal-buttons button.primary {
  background: #667eea;
}

/* Dark Mode - Seri Kartları */
body.theme-dark .series-card-info {
  background: #1a202c;
  border-top-color: #4a5568;
  color: #a0aec0;
}

body.theme-dark .series-info-row {
  background: transparent;
  border-top-color: #4a5568;
}

body.theme-dark .series-event-count {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

body.theme-dark .series-events-toggle {
  background: #667eea;
  color: white;
}

body.theme-dark .series-events-toggle:hover {
  background: #5a67d8;
}

body.theme-dark .series-event-actions .event-edit-btn:hover {
  background: rgba(56, 161, 105, 0.2);
}

body.theme-dark .series-event-actions .event-delete-btn:hover {
  background: rgba(229, 62, 62, 0.2);
}

body.theme-dark .series-edit-modal {
  background: #1a3a3a;
  border-top-color: #2d5a5a;
}

body.theme-dark .series-edit-modal .series-edit-event input {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .grade-result {
  color: #e2e8f0;
}

body.theme-dark .form-group label {
  color: #e2e8f0;
}

/* ==================== */
/* RESMİ TATİLLER STİLLERİ */
/* ==================== */
.holiday-form {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.holiday-form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.holiday-form-row:last-child {
  margin-bottom: 0;
}

.holiday-form-row input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
}

.holiday-form-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 140px;
}

.holiday-form-row label span {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

.holiday-form-row input[type="date"] {
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 100%;
}

.holiday-form-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.holiday-form-row button {
  padding: 12px 20px;
  white-space: nowrap;
}

.holiday-info-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid #bee3f8;
}

.holiday-info-icon {
  font-size: 2rem;
}

.holiday-info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.holiday-info-label {
  font-size: 0.85rem;
  color: #718096;
}

.holiday-info-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.holiday-info-sub {
  font-size: 0.85rem;
  color: #4a5568;
}

.holiday-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.holiday-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid #38b2ac;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.holiday-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.holiday-item.passed {
  opacity: 0.6;
  border-left-color: #a0aec0;
}

.holiday-item.active {
  border-left-color: #ed8936;
  background: #fffaf0;
}

.holiday-item.upcoming {
  border-left-color: #38b2ac;
}

.holiday-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.holiday-item-name {
  font-weight: 600;
  font-size: 1rem;
  color: #2d3748;
}

.holiday-item-dates {
  font-size: 0.85rem;
  color: #718096;
}

.holiday-item-status {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  margin-right: 12px;
}

.holiday-item.passed .holiday-item-status {
  background: #edf2f7;
  color: #718096;
}

.holiday-item.active .holiday-item-status {
  background: #feebc8;
  color: #c05621;
}

.holiday-item.upcoming .holiday-item-status {
  background: #c6f6d5;
  color: #276749;
}

.holiday-item-actions button {
  padding: 8px 14px;
  background: #fff5f5;
  color: var(--danger);
  border: 1px solid #fed7d7;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.holiday-item-actions button:hover {
  background: #feb2b2;
  color: #742a2a;
}

.holiday-empty {
  text-align: center;
  padding: 40px 20px;
  color: #a0aec0;
}

.holiday-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.holiday-empty-text {
  font-size: 0.95rem;
}

/* Yarım Gün Tatil */
.holiday-half-day-row {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 10px;
}

.holiday-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #4a5568;
}

.holiday-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.holiday-time-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: #ebf8ff;
  border-radius: 8px;
  width: 100%;
  border-left: 3px solid var(--accent);
}

.holiday-time-select label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.holiday-time-select input[type="time"] {
  padding: 8px 12px;
  border: 2px solid #bee3f8;
  border-radius: 6px;
  font-size: 0.95rem;
  min-width: 120px;
}

.holiday-time-hint {
  font-size: 0.8rem;
  color: #718096;
  font-style: italic;
}

.holiday-item-half-day {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #805ad5;
  background: #faf5ff;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

/* Dark Mode - Resmi Tatiller */
body.theme-dark .holiday-form {
  background: #2d3748;
  border-color: #4a5568;
}

body.theme-dark .holiday-checkbox-label {
  color: #e2e8f0;
}

body.theme-dark .holiday-time-select {
  background: #2c5282;
  border-left-color: #90cdf4;
}

body.theme-dark .holiday-time-select input[type="time"] {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .holiday-time-hint {
  color: #a0aec0;
}

body.theme-dark .holiday-item-half-day {
  background: rgba(128, 90, 213, 0.2);
  color: #b794f4;
}

body.theme-dark .holiday-form-row input {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .holiday-form-row label span {
  color: #a0aec0;
}

body.theme-dark .holiday-info-box {
  background: linear-gradient(135deg, #2c5282 0%, #285e61 100%);
  border-color: #4a5568;
}

body.theme-dark .holiday-info-label {
  color: #a0aec0;
}

body.theme-dark .holiday-info-value {
  color: #90cdf4;
}

body.theme-dark .holiday-info-sub {
  color: #e2e8f0;
}

body.theme-dark .holiday-item {
  background: #3d4a5c;
  box-shadow: none;
}

body.theme-dark .holiday-item-name {
  color: #e2e8f0;
}

body.theme-dark .holiday-item-dates {
  color: #a0aec0;
}

body.theme-dark .holiday-item.passed {
  background: #2d3748;
}

body.theme-dark .holiday-item.active {
  background: #4a4520;
}

body.theme-dark .holiday-item.upcoming {
  background: #234e52;
}

body.theme-dark .holiday-item.passed .holiday-item-status {
  background: #4a5568;
  color: #a0aec0;
}

body.theme-dark .holiday-item.active .holiday-item-status {
  background: #744210;
  color: #fbd38d;
}

body.theme-dark .holiday-item.upcoming .holiday-item-status {
  background: #276749;
  color: #9ae6b4;
}

body.theme-dark .holiday-item-actions button {
  background: rgba(252, 129, 129, 0.15);
  border-color: #fc8181;
  color: #fc8181;
}

body.theme-dark .holiday-empty {
  color: #718096;
}

/* Mobil - Geri Sayım Modal */
@media (max-width: 600px) {
  .countdown-header {
    flex-direction: column;
    align-items: stretch;
  }

  .countdown-fab {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .fab-icon {
    font-size: 1.8rem;
  }

  .countdown-modal-overlay {
    padding: 10px;
    padding-top: 20px;
  }

  .countdown-modal {
    max-height: calc(100vh - 40px);
  }

  .countdown-modal-header {
    padding: 16px 20px;
  }

  .countdown-modal-body {
    padding: 16px;
  }

  .countdown-type-selector {
    flex-direction: column;
    width: 100%;
  }

  .countdown-type-btn {
    text-align: center;
  }

  /* Yapılacaklar Modal - Mobil */
  .todo-fab {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .todo-modal-overlay {
    padding: 10px;
    padding-top: 20px;
  }

  .todo-modal {
    max-height: calc(100vh - 40px);
  }

  .todo-modal-header {
    padding: 16px 20px;
  }

  .todo-modal-body {
    padding: 16px;
  }
}

/* Mobil - Resmi Tatiller */
@media (max-width: 600px) {
  .holiday-form-row {
    flex-direction: column;
    gap: 10px;
  }

  .holiday-form-row input[type="text"],
  .holiday-form-row label {
    min-width: 100%;
  }

  .holiday-form-row button {
    width: 100%;
  }

  .holiday-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .holiday-item-status {
    margin-right: 0;
  }

  .holiday-item-actions {
    width: 100%;
  }

  .holiday-item-actions button {
    width: 100%;
  }
}

/* Koyu tema - Bugün Sayfası */
body.theme-dark .today-date {
  color: #a0aec0;
}

body.theme-dark .today-class-item {
  background: #3d4a5c;
}

body.theme-dark .today-class-item.active {
  background: #4a4520;
}

body.theme-dark .today-class-item.completed {
  background: #2d3748;
}

body.theme-dark .today-class-name {
  color: #e2e8f0;
}

body.theme-dark .today-class-room {
  color: #a0aec0;
}

body.theme-dark .today-class-absence {
  color: #a0aec0;
}

body.theme-dark .today-class-absence.warning {
  color: #ecc94b;
}

body.theme-dark .today-class-absence.failed {
  color: #fc8181;
}

body.theme-dark .today-class-absence.safe {
  color: #68d391;
}

/* Koyu tema - Mobil tablo sticky sütun */
body.theme-dark #scheduleTable th:first-child,
body.theme-dark #scheduleTable td:first-child {
  background: #2d3748 !important;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.3);
}

/* Mobil Uyumluluk */
@media (max-width: 600px) {
  .app-container {
    padding: 0;
    padding-top: 50px;
    /* Hamburger menü için */
  }

  /* Auth mobil */
  .auth-container {
    padding: 16px;
  }

  .auth-card {
    padding: 24px;
  }

  .auth-header h1 {
    font-size: 1.6rem;
  }

  .card {
    padding: 12px;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-row label {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .form-row input[type="date"],
  .form-row input[type="text"] {
    width: 100%;
    box-sizing: border-box;
  }

  .form-row button {
    width: 100%;
  }

  /* Tablo - mobilde daha iyi görünüm */
  .table-wrapper {
    margin: 0 -12px;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #scheduleTable {
    table-layout: auto;
    width: auto;
    font-size: 0.85rem;
  }

  #scheduleTable th,
  #scheduleTable td {
    padding: 8px 4px;
    white-space: nowrap;
  }

  #scheduleTable th:first-child,
  #scheduleTable td:first-child {
    position: sticky;
    left: 0;
    background: #f0f4f8;
    z-index: 1;
    min-width: 55px;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
  }

  #scheduleTable td:first-child {
    background: #fff;
  }

  td input {
    font-size: 0.85rem;
    padding: 8px 4px;
  }

  /* Özet tablosu */
  .summary-table {
    font-size: 0.75rem;
    min-width: 100%;
  }

  .summary-table th,
  .summary-table td {
    padding: 8px 6px;
    white-space: nowrap;
  }

  .summary-table th:first-child,
  .summary-table td:first-child {
    white-space: normal;
    word-break: break-word;
    max-width: 120px;
  }

  /* Devamsızlık kartları */
  .absence-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .absence-actions {
    width: 100%;
  }

  .absence-actions button {
    flex: 1;
  }

  button.small {
    padding: 10px;
  }

  /* Geri sayım kartları */
  .countdown-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .countdown-status {
    width: 100%;
    justify-content: space-between;
  }

  /* Container taşma engelle */
  .container {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Not hesaplama mobil */
  .grade-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .grade-input-row label {
    width: 100%;
  }

  .grade-input-row input {
    width: 100%;
    box-sizing: border-box;
  }

  .grade-input-row input[type="text"] {
    width: 100%;
  }

  .grade-input-row select {
    width: 100%;
    font-size: 0.9rem;
  }

  .grade-input-row button {
    width: 100%;
  }

  .saved-grade-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .saved-grade-actions {
    width: 100%;
  }

  .saved-grade-actions button {
    flex: 1;
  }

  /* Yapılacaklar mobil */
  .todo-form-row {
    flex-direction: column;
  }

  .todo-form select,
  .todo-form input[type="date"] {
    width: 100%;
  }

  .todo-item {
    flex-wrap: wrap;
  }

  .todo-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
    gap: 12px;
  }

  .todo-actions button {
    padding: 12px 16px;
    font-size: 1rem;
    min-width: 50px;
    min-height: 50px;
  }
}

/* ==================== */
/* KURULUM SİHİRBAZI */
/* ==================== */
.setup-wizard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.setup-wizard {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: wizardSlideIn 0.3s ease;
}

@keyframes wizardSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.setup-wizard-header {
  padding: 30px 30px 20px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.setup-wizard-header .wizard-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.setup-wizard-header h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: #1a202c;
}

.setup-wizard-header p {
  margin: 0;
  color: #718096;
  font-size: 0.95rem;
}

/* Progress Steps */
.setup-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 30px;
  background: #f7fafc;
}

.progress-step {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.3s;
}

.progress-step.active {
  background: var(--accent);
  transform: scale(1.2);
}

.progress-step.completed {
  background: var(--success);
}

/* Wizard Content */
.setup-wizard-content {
  padding: 30px;
}

.setup-step {
  display: none;
  animation: stepFadeIn 0.3s ease;
}

.setup-step.active {
  display: block;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.setup-step h3 {
  margin: 0 0 20px;
  font-size: 1.2rem;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 10px;
}

.setup-step h3 .step-icon {
  font-size: 1.5rem;
}

/* Setup Form Elements */
.setup-form-group {
  margin-bottom: 16px;
}

.setup-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 6px;
}

.setup-form-group input,
.setup-form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.setup-form-group input:focus,
.setup-form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.setup-date-row {
  display: flex;
  gap: 12px;
}

.setup-date-row .setup-form-group {
  flex: 1;
}

/* Ders Ekleme */
.setup-course-input {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.setup-course-input input {
  flex: 1;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
}

.setup-course-input button {
  padding: 12px 20px;
  border-radius: 8px;
  white-space: nowrap;
}

.setup-courses-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.setup-course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f0fff4;
  border-radius: 8px;
  border: 1px solid #9ae6b4;
}

.setup-course-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setup-course-name {
  font-weight: 500;
  color: #22543d;
}

.setup-course-classroom {
  font-size: 0.85rem;
  color: #718096;
}

.setup-course-item button {
  background: transparent;
  color: #c53030;
  padding: 4px 8px;
  font-size: 0.85rem;
  border: 1px solid #fed7d7;
  border-radius: 4px;
}

.setup-course-item button:hover {
  background: #fff5f5;
}

.setup-courses-empty {
  text-align: center;
  padding: 20px;
  color: #a0aec0;
  font-size: 0.9rem;
}

/* Feature Cards */
.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #f7fafc;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
}

.feature-card .feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-card .feature-text h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: #2d3748;
}

.feature-card .feature-text p {
  margin: 0;
  font-size: 0.85rem;
  color: #718096;
}

/* Wizard Footer */
.setup-wizard-footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 30px;
  border-top: 1px solid #e2e8f0;
  background: #f7fafc;
  border-radius: 0 0 16px 16px;
}

.setup-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setup-btn.secondary {
  background: #edf2f7;
  color: #4a5568;
}

.setup-btn.secondary:hover {
  background: #e2e8f0;
}

.setup-btn.primary {
  background: var(--accent);
  color: #fff;
}

.setup-btn.primary:hover {
  background: #2c5aa0;
}

.setup-btn.skip {
  background: transparent;
  color: #718096;
  padding: 12px 16px;
}

.setup-btn.skip:hover {
  color: #4a5568;
  background: #edf2f7;
}

/* Koyu tema - Kurulum Sihirbazı */
body.theme-dark .setup-wizard {
  background: #2d3748;
}

body.theme-dark .setup-wizard-header {
  border-color: #4a5568;
}

body.theme-dark .setup-wizard-header h2 {
  color: #e2e8f0;
}

body.theme-dark .setup-wizard-header p {
  color: #a0aec0;
}

body.theme-dark .setup-progress {
  background: #1a202c;
}

body.theme-dark .progress-step {
  background: #4a5568;
}

body.theme-dark .setup-step h3 {
  color: #e2e8f0;
}

body.theme-dark .setup-form-group label {
  color: #e2e8f0;
}

body.theme-dark .setup-form-group input,
body.theme-dark .setup-form-group select {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .setup-course-item {
  background: #22543d;
  border-color: #276749;
}

body.theme-dark .setup-course-name {
  color: #9ae6b4;
}

body.theme-dark .setup-course-classroom {
  color: #a0aec0;
}

body.theme-dark .setup-courses-empty {
  color: #718096;
}

body.theme-dark .feature-card {
  background: #1a202c;
}

body.theme-dark .feature-card .feature-text h4 {
  color: #e2e8f0;
}

body.theme-dark .feature-card .feature-text p {
  color: #a0aec0;
}

body.theme-dark .setup-wizard-footer {
  background: #1a202c;
  border-color: #4a5568;
}

body.theme-dark .setup-btn.secondary {
  background: #4a5568;
  color: #e2e8f0;
}

/* Ayarlar - Dönem ve Dersler Bölümü */
.settings-courses-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.settings-course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f7fafc;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.settings-course-item span {
  font-weight: 500;
}

.settings-course-item button {
  padding: 4px 10px;
  font-size: 0.8rem;
}

body.theme-dark .settings-course-item {
  background: #3d4a5c;
}

body.theme-dark .settings-course-item span {
  color: #e2e8f0;
}

/* ==================== */
/* PROFİL SAYFASI */
/* ==================== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.profile-email {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.profile-section {
  margin-bottom: 20px;
}

.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.profile-section-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #2d3748;
}

.profile-course-count {
  font-size: 0.85rem;
  color: #718096;
  background: #edf2f7;
  padding: 4px 10px;
  border-radius: 12px;
}

.profile-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e2e8f0;
}

.profile-stat-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.profile-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-stat-label {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

.profile-date-input {
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s;
}

.profile-date-input:focus {
  outline: none;
  border-color: var(--accent);
}

.profile-date-info {
  padding: 10px 14px;
  background: #ebf4ff;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 12px;
  display: none;
}

.profile-date-info.show {
  display: block;
}

.profile-save-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-save-btn:hover {
  background: #2c5aa0;
}

.profile-course-input {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.profile-course-input input {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
}

.profile-course-input input:first-child {
  flex: 2;
}

.profile-course-input input:focus {
  outline: none;
  border-color: var(--accent);
}

.profile-course-input button {
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.profile-courses-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.profile-course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.profile-course-item.editing {
  border-left-color: #ed8936;
  background: #fffaf0;
}

.profile-course-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.profile-course-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.profile-course-classroom {
  font-size: 0.8rem;
  color: #718096;
}

.profile-course-classroom .no-classroom {
  color: #a0aec0;
  font-style: italic;
}

.profile-course-actions {
  display: flex;
  gap: 6px;
}

.profile-course-item .edit-btn {
  padding: 6px 10px;
  background: #ebf8ff;
  color: var(--accent);
  border: 1px solid #bee3f8;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-course-item .edit-btn:hover {
  background: #bee3f8;
  color: #2c5282;
}

.profile-course-item .delete-btn {
  padding: 6px 10px;
  background: #fff5f5;
  color: var(--danger);
  border: 1px solid #fed7d7;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-course-item .delete-btn:hover {
  background: #feb2b2;
  color: #742a2a;
}

.profile-course-input .cancel-edit-btn {
  padding: 10px 14px;
  background: #718096;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: none;
}

.profile-course-input .cancel-edit-btn:hover {
  background: #4a5568;
}

#addProfileCourse.editing {
  background: #ed8936;
}

#addProfileCourse.editing:hover {
  background: #dd6b20;
}

.profile-courses-empty {
  text-align: center;
  padding: 30px 20px;
  color: #a0aec0;
}

.profile-courses-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

/* Koyu Tema - Profil */
body.theme-dark .profile-section-header h3 {
  color: #e2e8f0;
}

body.theme-dark .profile-course-count {
  background: #4a5568;
  color: #a0aec0;
}

body.theme-dark .profile-card {
  background: #2d3748;
  border-color: #4a5568;
}

body.theme-dark .profile-stat-label {
  color: #a0aec0;
}

body.theme-dark .profile-date-input {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .profile-date-info {
  background: #2c5282;
  color: #90cdf4;
}

body.theme-dark .profile-course-input input {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .profile-course-item {
  background: #3d4a5c;
  box-shadow: none;
}

body.theme-dark .profile-course-item.editing {
  background: #4a4520;
  border-left-color: #ed8936;
}

body.theme-dark .profile-course-name {
  color: #e2e8f0;
}

body.theme-dark .profile-course-classroom {
  color: #a0aec0;
}

body.theme-dark .profile-course-classroom .no-classroom {
  color: #718096;
}

body.theme-dark .profile-course-item .edit-btn {
  background: rgba(66, 153, 225, 0.15);
  border-color: #4299e1;
  color: #90cdf4;
}

body.theme-dark .profile-course-item .delete-btn {
  background: rgba(252, 129, 129, 0.15);
  border-color: #fc8181;
  color: #fc8181;
}

body.theme-dark .cancel-edit-btn {
  background: #4a5568;
}

body.theme-dark .profile-course-item button {
  background: rgba(252, 129, 129, 0.15);
  border-color: #fc8181;
  color: #fc8181;
}

/* Mobil - Profil */
@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
  }

  .profile-stat-row {
    flex-direction: column;
    gap: 12px;
  }

  .profile-course-input {
    flex-direction: column;
  }

  .profile-course-input button {
    width: 100%;
  }
}

/* Mobil - Kurulum Sihirbazı */
@media (max-width: 600px) {
  .setup-wizard-overlay {
    padding: 10px;
    align-items: flex-start;
    padding-top: 20px;
  }

  .setup-wizard {
    max-height: 95vh;
  }

  .setup-wizard-header {
    padding: 20px 20px 15px;
  }

  .setup-wizard-header .wizard-icon {
    font-size: 2.5rem;
  }

  .setup-wizard-header h2 {
    font-size: 1.3rem;
  }

  .setup-wizard-content {
    padding: 20px;
  }

  .setup-date-row {
    flex-direction: column;
    gap: 10px;
  }

  .setup-course-input {
    flex-direction: column;
  }

  .setup-course-input button {
    width: 100%;
  }

  .setup-wizard-footer {
    padding: 15px 20px;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .setup-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== */
/* BİLDİRİM AYARLARI */
/* ==================== */

.notification-status {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 15px;
}

.notification-status-icon {
  font-size: 2.5rem;
}

.notification-status-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-status-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.notification-status-desc {
  font-size: 0.85rem;
  color: #666;
}

.notification-status.enabled {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.notification-status.enabled .notification-status-title {
  color: #155724;
}

.notification-enable-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  font-weight: 600;
}

.notification-enable-btn:hover {
  opacity: 0.9;
}

.notification-disable-btn {
  background: #dc3545;
  color: white;
  border: none;
  width: 100%;
  padding: 12px;
}

.notification-blocked {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.notification-blocked p {
  margin: 0 0 5px 0;
}

.notification-type-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--bg);
}

.notification-type-item:last-child {
  border-bottom: none;
}

.notification-type-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.notification-type-label span:first-child {
  font-weight: 500;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toggle-switch input:checked+.toggle-slider:before {
  transform: translateX(24px);
}

/* Dark theme */
[data-theme="dark"] .notification-status {
  background: #2d3748;
}

[data-theme="dark"] .notification-status.enabled {
  background: linear-gradient(135deg, #1a472a 0%, #234d32 100%);
}

[data-theme="dark"] .notification-status.enabled .notification-status-title {
  color: #9ae6b4;
}

[data-theme="dark"] .notification-blocked {
  background: #744210;
  border-color: #d69e2e;
}

[data-theme="dark"] .toggle-slider {
  background-color: #4a5568;
}

/* Admin Duyuru Bölümü */
.settings-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  margin-top: 5px;
}

.settings-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.settings-input {
  resize: vertical;
  min-height: 80px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #374151;
}

.primary-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  font-weight: 600;
}

.primary-btn:hover {
  opacity: 0.9;
}

.settings-hint {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 10px;
}

#adminAnnouncementSection h3 {
  margin-bottom: 15px;
  color: #374151;
}

[data-theme="dark"] .settings-input {
  background: #374151;
  border-color: #4b5563;
  color: #f3f4f6;
}

[data-theme="dark"] .form-group label {
  color: #e5e7eb;
}

[data-theme="dark"] #adminAnnouncementSection h3 {
  color: #e5e7eb;
}

/* Admin Panel Stilleri */
.admin-link {
  /* Diğer menü öğeleriyle uyumlu - artık özel stil yok */
}

.admin-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
}

.admin-section h3 {
  margin: 0 0 5px 0;
  color: #374151;
}

.admin-desc {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0 0 15px 0;
}

.admin-btn {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.admin-btn.primary-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.admin-btn.secondary-btn {
  background: #e5e7eb;
  color: #374151;
}

.admin-btn:hover {
  opacity: 0.9;
}

.admin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-result {
  margin-top: 10px;
  font-size: 0.9rem;
  text-align: center;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.admin-stat-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #667eea;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 5px;
}

.notification-history {
  max-height: 300px;
  overflow-y: auto;
}

.notification-history-item {
  background: white;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid #667eea;
}

.notification-history-item .title {
  font-weight: 600;
  color: #374151;
}

.notification-history-item .body {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 5px 0;
}

.notification-history-item .meta {
  font-size: 0.8rem;
  color: #9ca3af;
}

.empty-state {
  text-align: center;
  color: #9ca3af;
  padding: 20px;
}

/* Dark theme admin */
[data-theme="dark"] .admin-section {
  background: #1f2937;
}

[data-theme="dark"] .admin-section h3 {
  color: #f3f4f6;
}

[data-theme="dark"] .admin-desc {
  color: #9ca3af;
}

[data-theme="dark"] .admin-stat-card {
  background: #374151;
}

[data-theme="dark"] .stat-label {
  color: #9ca3af;
}

[data-theme="dark"] .notification-history-item {
  background: #374151;
}

[data-theme="dark"] .notification-history-item .title {
  color: #f3f4f6;
}

[data-theme="dark"] .admin-btn.secondary-btn {
  background: #374151;
  color: #f3f4f6;
}

/* ==================== ADMIN PANEL STİLLERİ ==================== */

/* Admin Sayfa */
.admin-page {
  padding: 20px;
}

.admin-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.admin-header h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  color: #1f2937;
}

.admin-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: #f3f4f6;
  padding: 6px;
  border-radius: 12px;
}

.admin-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.admin-tab .tab-icon {
  font-size: 1.1rem;
}

.admin-tab:hover {
  color: #374151;
  background: rgba(255, 255, 255, 0.5);
}

.admin-tab.active {
  color: #667eea;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* Admin Card */
.admin-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.admin-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.admin-card-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
}

.admin-card-header h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  color: #1f2937;
  font-weight: 600;
}

.admin-card-desc {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.admin-card-body {
  padding: 20px;
}

/* Admin Form */
.admin-form-group {
  margin-bottom: 16px;
}

.admin-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.admin-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1f2937;
  background: #fff;
  transition: all 0.2s;
  box-sizing: border-box;
}

.admin-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.admin-input::placeholder {
  color: #9ca3af;
}

textarea.admin-input {
  resize: vertical;
  min-height: 80px;
}

/* Admin Buttons */
.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.admin-action-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.admin-action-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.admin-action-btn.secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.admin-action-btn.secondary:hover {
  background: #e5e7eb;
}

.admin-result {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

/* Admin Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.admin-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.admin-stat-item .stat-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
}

.admin-stat-item .stat-info {
  display: flex;
  flex-direction: column;
}

.admin-stat-item .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

.admin-stat-item .stat-label {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Notification History */
.notification-history {
  max-height: 300px;
  overflow-y: auto;
}

.notification-history-item {
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 10px;
}

.notification-history-item:last-child {
  margin-bottom: 0;
}

.notification-history-item .title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.notification-history-item .body {
  color: #4b5563;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.notification-history-item .meta {
  font-size: 0.8rem;
  color: #9ca3af;
}

.empty-state {
  text-align: center;
  color: #9ca3af;
  padding: 30px;
  font-size: 0.95rem;
}

/* ==================== ADMIN DARK THEME ==================== */

[data-theme="dark"] .admin-header {
  border-bottom-color: #374151;
}

[data-theme="dark"] .admin-header h2 {
  color: #f9fafb;
}

[data-theme="dark"] .admin-subtitle {
  color: #9ca3af;
}

[data-theme="dark"] .admin-tabs {
  background: #1f2937;
}

[data-theme="dark"] .admin-tab {
  color: #9ca3af;
}

[data-theme="dark"] .admin-tab:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .admin-tab.active {
  color: #a78bfa;
  background: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .admin-card {
  background: #1f2937;
  border-color: #374151;
}

[data-theme="dark"] .admin-card-header {
  background: #111827;
  border-bottom-color: #374151;
}

[data-theme="dark"] .admin-card-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

[data-theme="dark"] .admin-card-header h3 {
  color: #f9fafb;
}

[data-theme="dark"] .admin-card-desc {
  color: #9ca3af;
}

[data-theme="dark"] .admin-form-group label {
  color: #e5e7eb;
}

[data-theme="dark"] .admin-input {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}

[data-theme="dark"] .admin-input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

[data-theme="dark"] .admin-input::placeholder {
  color: #6b7280;
}

[data-theme="dark"] .admin-action-btn.primary {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

[data-theme="dark"] .admin-action-btn.primary:hover {
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.4);
}

[data-theme="dark"] .admin-action-btn.secondary {
  background: #374151;
  color: #e5e7eb;
  border-color: #4b5563;
}

[data-theme="dark"] .admin-action-btn.secondary:hover {
  background: #4b5563;
}

[data-theme="dark"] .admin-stat-item {
  background: #111827;
  border-color: #374151;
}

[data-theme="dark"] .admin-stat-item .stat-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

[data-theme="dark"] .admin-stat-item .stat-value {
  color: #f9fafb;
}

[data-theme="dark"] .admin-stat-item .stat-label {
  color: #9ca3af;
}

[data-theme="dark"] .notification-history-item {
  background: #111827;
  border-color: #374151;
}

[data-theme="dark"] .notification-history-item .title {
  color: #f9fafb;
}

[data-theme="dark"] .notification-history-item .body {
  color: #d1d5db;
}

[data-theme="dark"] .notification-history-item .meta {
  color: #6b7280;
}

[data-theme="dark"] .empty-state {
  color: #6b7280;
}

/* Kurulum Sihirbazı - Bildirim Adımı */
.setup-notification-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0;
}

.notification-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-preview .notification-icon {
  font-size: 2rem;
}

.notification-preview .notification-content strong {
  display: block;
  color: #374151;
}

.notification-preview .notification-content p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.setup-notification-status {
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
}

.setup-hint {
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
  margin-top: 15px;
}

/* Dark theme setup notification */
[data-theme="dark"] .setup-notification-card {
  background: #374151;
}

[data-theme="dark"] .notification-preview {
  background: #1f2937;
}

[data-theme="dark"] .notification-preview .notification-content strong {
  color: #f3f4f6;
}

[data-theme="dark"] .notification-preview .notification-content p {
  color: #9ca3af;
}

/* ==================== ADMIN MENÜ STİLLERİ ==================== */

/* Admin Ana Menü */
.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.admin-menu-item:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.admin-menu-item:active {
  transform: scale(0.98);
}

.admin-menu-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  margin-right: 16px;
  flex-shrink: 0;
}

.admin-menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-menu-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.admin-menu-desc {
  font-size: 0.85rem;
  color: #6b7280;
}

.admin-menu-arrow {
  font-size: 1.5rem;
  color: #9ca3af;
  font-weight: 300;
  margin-left: 10px;
}

/* Admin Alt Sayfa */
.admin-subpage {
  padding: 20px;
  background: #f3f4f6;
  min-height: 100vh;
}

body.theme-dark .admin-subpage {
  background: #1a202c !important;
}

.admin-subpage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.admin-subpage-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #1f2937;
}

.admin-back-btn {
  padding: 8px 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-back-btn:hover {
  background: #e5e7eb;
}

/* Admin Section (Yeni Yapı) */
.admin-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.admin-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.admin-section-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
}

.admin-section-header h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  color: #1f2937;
  font-weight: 600;
}

.admin-section-desc {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.admin-section-body {
  padding: 20px;
}

/* ==================== ADMIN DARK THEME ==================== */

/* body.theme-dark için (eski sistem) */
body.theme-dark .admin-menu-item {
  background: #1f2937 !important;
  border-color: #374151 !important;
}

body.theme-dark .admin-menu-item:hover {
  background: #374151 !important;
}

body.theme-dark .admin-menu-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

body.theme-dark .admin-menu-title {
  color: #f9fafb !important;
}

body.theme-dark .admin-menu-desc {
  color: #9ca3af !important;
}

body.theme-dark .admin-subpage-header {
  border-bottom-color: #374151 !important;
}

body.theme-dark .admin-subpage-header h2 {
  color: #f9fafb !important;
}

body.theme-dark .admin-back-btn {
  background: #374151 !important;
  border-color: #4b5563 !important;
  color: #e5e7eb !important;
}

/* Admin subpage card override - çok önemli! */
body.theme-dark .card.admin-subpage,
body.theme-dark section.card.admin-subpage,
body.theme-dark #page-admin-announcements,
body.theme-dark #page-admin-stats {
  background: #1a202c !important;
}

body.theme-dark .admin-section {
  background: #2d3748 !important;
  border-color: #4a5568 !important;
}

body.theme-dark .admin-section-header {
  background: #1a202c !important;
  border-bottom-color: #4a5568 !important;
}

body.theme-dark .admin-section-header h3 {
  color: #f9fafb !important;
}

body.theme-dark .admin-section-desc {
  color: #9ca3af !important;
}

body.theme-dark .admin-section-body {
  background: #2d3748 !important;
}

body.theme-dark .admin-form-group label {
  color: #e5e7eb !important;
}

body.theme-dark .admin-stat-item {
  background: #1a202c !important;
  border-color: #4a5568 !important;
}

body.theme-dark .admin-stat-item .stat-value {
  color: #f9fafb !important;
}

body.theme-dark .admin-stat-item .stat-label {
  color: #9ca3af !important;
}

body.theme-dark .admin-action-btn.secondary {
  background: #374151 !important;
  color: #e5e7eb !important;
  border-color: #4b5563 !important;
}

body.theme-dark .empty-state {
  color: #6b7280 !important;
}

body.theme-dark .admin-page h2,
body.theme-dark .admin-subpage h2 {
  color: #f9fafb !important;
}

/* Admin input ve textarea dark tema */
body.theme-dark .admin-input,
body.theme-dark .admin-subpage input,
body.theme-dark .admin-subpage textarea,
body.theme-dark #adminAnnouncementTitle,
body.theme-dark #adminAnnouncementBody,
body.theme-dark #page-admin-announcements input,
body.theme-dark #page-admin-announcements textarea {
  background: #1a202c !important;
  border-color: #4a5568 !important;
  color: #e2e8f0 !important;
}

body.theme-dark .admin-input::placeholder,
body.theme-dark #adminAnnouncementTitle::placeholder,
body.theme-dark #adminAnnouncementBody::placeholder {
  color: #6b7280 !important;
}

/* Bildirim geçmişi kartları dark tema */
body.theme-dark .notification-history-item,
body.theme-dark #notificationHistory>div {
  background: #1a202c !important;
  border-color: #4a5568 !important;
  color: #e2e8f0 !important;
}

body.theme-dark .notification-history-item .title,
body.theme-dark #notificationHistory .title {
  color: #f9fafb !important;
}

body.theme-dark .notification-history-item .body,
body.theme-dark #notificationHistory .body {
  color: #d1d5db !important;
}

body.theme-dark .notification-history-item .meta,
body.theme-dark #notificationHistory .meta {
  color: #9ca3af !important;
}

/* [data-theme="dark"] için (yeni sistem) */
[data-theme="dark"] .admin-menu-item {
  background: #1f2937 !important;
  border-color: #374151 !important;
}

[data-theme="dark"] .admin-menu-item:hover {
  background: #374151 !important;
}

[data-theme="dark"] .admin-menu-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

[data-theme="dark"] .admin-menu-title {
  color: #f9fafb !important;
}

[data-theme="dark"] .admin-menu-desc {
  color: #9ca3af !important;
}

[data-theme="dark"] .admin-subpage-header {
  border-bottom-color: #374151 !important;
}

[data-theme="dark"] .admin-subpage-header h2 {
  color: #f9fafb !important;
}

[data-theme="dark"] .admin-back-btn {
  background: #374151 !important;
  border-color: #4b5563 !important;
  color: #e5e7eb !important;
}

[data-theme="dark"] .admin-section {
  background: #2d3748 !important;
  border-color: #4a5568 !important;
}

[data-theme="dark"] .admin-section-header {
  background: #1a202c !important;
  border-bottom-color: #4a5568 !important;
}

[data-theme="dark"] .admin-section-header h3 {
  color: #f9fafb !important;
}

[data-theme="dark"] .admin-section-desc {
  color: #9ca3af !important;
}

[data-theme="dark"] .admin-section-body {
  background: #2d3748 !important;
}

[data-theme="dark"] .admin-form-group label {
  color: #e5e7eb !important;
}

[data-theme="dark"] .admin-stat-item {
  background: #1a202c !important;
  border-color: #4a5568 !important;
}

[data-theme="dark"] .admin-stat-item .stat-value {
  color: #f9fafb !important;
}

[data-theme="dark"] .admin-stat-item .stat-label {
  color: #9ca3af !important;
}

[data-theme="dark"] .admin-action-btn.secondary {
  background: #374151 !important;
  color: #e5e7eb !important;
  border-color: #4b5563 !important;
}

[data-theme="dark"] .empty-state {
  color: #6b7280 !important;
}

[data-theme="dark"] .admin-page h2,
[data-theme="dark"] .admin-subpage h2 {
  color: #f9fafb !important;
}

/* ==================== */
/* DEVAMSIZLIK DETAYI STİLLERİ */
/* ==================== */

/* Özet Kartları */
.absence-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.absence-summary-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  color: white;
}

.absence-summary-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.absence-summary-label {
  display: block;
  font-size: 11px;
  opacity: 0.9;
  margin-top: 4px;
}

/* Ders Bazlı Dağılım */
.absence-by-course-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.absence-course-item {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px;
}

.absence-course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.absence-course-name {
  font-weight: 600;
  font-size: 14px;
  color: #1a202c;
}

.absence-course-hours {
  font-size: 13px;
  color: #718096;
}

.absence-course-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.absence-course-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Tarih Bazlı Liste */
.absence-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.absence-history-item {
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
}

body.theme-dark .absence-history-item {
  background: #2d3748;
}

.absence-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.absence-history-header:hover {
  background: #edf2f7;
}

.absence-history-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #2d3748;
}

body.theme-dark .absence-history-date {
  color: #f7fafc;
}

.absence-history-date-icon {
  font-size: 16px;
}

.absence-history-count {
  background: #667eea;
  color: white;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.absence-history-content {
  display: none;
  padding: 0 12px 12px;
}

.absence-history-item.open .absence-history-content {
  display: block;
}

.absence-history-item.open .absence-history-header {
  background: #edf2f7;
}

body.theme-dark .absence-history-item.open .absence-history-header {
  background: #3d4a5c;
}

.absence-history-lessons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.absence-history-lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

body.theme-dark .absence-history-lesson {
  background: #1a202c;
  border-color: #4a5568;
}

.absence-history-time {
  font-weight: 600;
  font-size: 13px;
  color: #667eea;
  min-width: 50px;
}

body.theme-dark .absence-history-time {
  color: #a78bfa;
}

.absence-history-lesson-name {
  font-size: 13px;
  color: #4a5568;
}

body.theme-dark .absence-history-lesson-name {
  color: #e2e8f0;
}

.absence-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #718096;
}

body.theme-dark .absence-empty-state {
  color: #a0aec0;
}

.absence-empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.absence-empty-state-text {
  font-size: 14px;
}

/* Dark Theme - Devamsızlık Detayı */
body.theme-dark .absence-summary-card {
  background: linear-gradient(135deg, #4c51bf 0%, #6b46c1 100%);
}

body.theme-dark .absence-course-item {
  background: #2d3748;
}

body.theme-dark .absence-course-name {
  color: #f7fafc;
}

body.theme-dark .absence-course-hours {
  color: #a0aec0;
}

body.theme-dark .absence-course-bar {
  background: #4a5568;
}

body.theme-dark .absence-history-header:hover {
  background: #3d4a5c;
}

/* Dark Theme - İstatistikler Sayfası Başlıklar */
body.theme-dark #page-statistics-absence-detail .settings-section h3,
body.theme-dark #page-statistics-summary .settings-section h3 {
  color: #f7fafc;
}

body.theme-dark #page-statistics-absence-detail .settings-section,
body.theme-dark #page-statistics-summary .settings-section {
  border-color: #4a5568;
}

body.theme-dark #page-statistics-absence-detail .muted,
body.theme-dark #page-statistics-summary .muted {
  color: #a0aec0;
}

/* ==================== */
/* INLINE LOADING (Sayfa İçi) */
/* ==================== */
.inline-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #718096;
}

.inline-loading p {
  margin: 16px 0 0;
  font-size: 0.95rem;
}

body.theme-dark .inline-loading {
  color: #a0aec0;
}

/* Loading Spinner (Ortak) */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body.theme-dark .loading-spinner {
  border-color: #4a5568;
  border-top-color: var(--accent);
}

/* ==================== */
/* GLOBAL LOADING OVERLAY */
/* ==================== */
.global-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.global-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.global-loading-content {
  text-align: center;
  color: white;
}

.global-loading-logo {
  font-size: 4rem;
  margin-bottom: 12px;
  animation: pulse 1.5s ease-in-out infinite;
}

.global-loading-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.global-loading .loading-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* ==================== */
/* DEVAMSIZLIK FİLTRE DROPDOWN */
/* ==================== */
.absence-filter-dropdown {
  display: none;
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.2s ease;
}

.absence-filter-dropdown.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* DateTime Inputs - Tarih ve Saat yan yana */
.datetime-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.datetime-inputs input[type="date"],
.datetime-inputs input[type="time"] {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
}

.datetime-inputs input[type="time"] {
  max-width: 110px;
}

@media (max-width: 400px) {
  .datetime-inputs {
    flex-direction: column;
    gap: 6px;
  }

  .datetime-inputs input[type="date"],
  .datetime-inputs input[type="time"] {
    max-width: 100%;
    width: 100%;
  }
}

/* Mini Countdown - Series Event Timer */
.series-event-countdown {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: 'Segoe UI', monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.mini-countdown-unit {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.mini-cd-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  min-width: 18px;
  text-align: center;
}

.mini-cd-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: lowercase;
}

.mini-countdown-sep {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 1px;
}

.series-event-status.passed-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 8px;
}

/* Series event today için özel renk */
.series-event.today .series-event-countdown {
  background: rgba(255, 165, 0, 0.3);
}

.series-event.upcoming .series-event-countdown {
  background: rgba(255, 100, 100, 0.25);
}

@media (max-width: 400px) {
  .series-event-countdown {
    padding: 3px 6px;
  }

  .mini-cd-value {
    font-size: 0.75rem;
    min-width: 14px;
  }

  .mini-cd-label {
    font-size: 0.5rem;
  }
}

/* Holiday Item - Yeniden tasarlanmış kartlar */
.holiday-item {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid #4a5568;
  transition: all 0.3s ease;
}

.holiday-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.holiday-item-info {
  flex: 1;
}

.holiday-item-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.holiday-item-dates {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.holiday-item-half-day {
  font-size: 0.75rem;
  background: rgba(255, 165, 0, 0.2);
  color: #ffa500;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

.holiday-item-status {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
  white-space: nowrap;
}

/* Renk kodlaması */
.holiday-item.holiday-green {
  border-left-color: #48bb78;
  background: linear-gradient(135deg, #1a3a2a 0%, #1a202c 100%);
}

.holiday-item.holiday-green .holiday-item-status {
  background: rgba(72, 187, 120, 0.2);
  color: #68d391;
}

.holiday-item.holiday-yellow {
  border-left-color: #ecc94b;
  background: linear-gradient(135deg, #3a3520 0%, #1a202c 100%);
}

.holiday-item.holiday-yellow .holiday-item-status {
  background: rgba(236, 201, 75, 0.2);
  color: #f6e05e;
}

.holiday-item.holiday-red {
  border-left-color: #fc8181;
  background: linear-gradient(135deg, #3a2020 0%, #1a202c 100%);
}

.holiday-item.holiday-red .holiday-item-status {
  background: rgba(252, 129, 129, 0.2);
  color: #feb2b2;
}

.holiday-item.holiday-passed {
  border-left-color: #718096;
  opacity: 0.6;
}

.holiday-item.holiday-passed .holiday-item-status {
  background: rgba(113, 128, 150, 0.2);
  color: #a0aec0;
}

/* Holiday Flip Clock */
.holiday-flip-clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.holiday-flip-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
}

.holiday-flip-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Segoe UI', monospace;
  line-height: 1;
}

.holiday-flip-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-top: 4px;
}

.holiday-flip-sep {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
  margin-top: -10px;
}

.holiday-item.holiday-green .holiday-flip-clock {
  background: rgba(72, 187, 120, 0.15);
}

.holiday-item.holiday-yellow .holiday-flip-clock {
  background: rgba(236, 201, 75, 0.15);
}

.holiday-item.holiday-red .holiday-flip-clock {
  background: rgba(252, 129, 129, 0.15);
}

.holiday-item-actions {
  display: flex;
  justify-content: flex-end;
}

.holiday-item-actions button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.holiday-item-actions button:hover {
  background: rgba(252, 129, 129, 0.3);
}

@media (max-width: 400px) {
  .holiday-flip-unit {
    min-width: 32px;
  }

  .holiday-flip-value {
    font-size: 1.2rem;
  }

  .holiday-flip-label {
    font-size: 0.55rem;
  }
}

/* Holiday Form - Modern Tasarım */
.holiday-form {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.holiday-form label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.holiday-form input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 0.95rem;
  margin-top: 6px;
}

.holiday-form input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.holiday-form input[type="text"]:focus,
.holiday-form input[type="date"]:focus,
.holiday-form input[type="time"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.2);
}

.holiday-form .datetime-inputs input[type="date"],
.holiday-form .datetime-inputs input[type="time"] {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.holiday-half-day-row {
  margin-bottom: 16px;
}

.holiday-checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 8px !important;
}

.holiday-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.holiday-time-select {
  margin-top: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.holiday-time-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-top: 6px;
}

.holiday-form button.primary {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.holiday-form button.primary:hover {
  background: #2c5aa0;
  transform: translateY(-1px);
}

/* Holiday FAB - Floating Action Button */
.holiday-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%);
  border: none;
  color: #fff;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(43, 108, 176, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
}

.holiday-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(43, 108, 176, 0.5);
}

.holiday-fab span {
  line-height: 1;
  margin-top: -2px;
}

/* Holiday Modal Overlay */
.holiday-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.holiday-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Holiday Modal */
.holiday-modal {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

.holiday-modal-overlay.active .holiday-modal {
  transform: scale(1) translateY(0);
}

.holiday-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.holiday-modal-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}

.holiday-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.holiday-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.holiday-modal-body {
  padding: 20px;
}

.holiday-modal-body label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.holiday-modal-body input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 0.95rem;
  margin-top: 6px;
}

.holiday-modal-body input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.holiday-modal-body input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.2);
}

.holiday-modal-body .datetime-inputs input[type="date"],
.holiday-modal-body .datetime-inputs input[type="time"] {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.holiday-modal-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.holiday-modal-submit:hover {
  background: #2c5aa0;
  transform: translateY(-1px);
}

@media (max-width: 400px) {
  .holiday-fab {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 1.75rem;
  }
}

/* Holiday Item Actions Buttons */
.holiday-item-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.holiday-edit-btn,
.holiday-delete-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.holiday-edit-btn:hover {
  background: rgba(66, 153, 225, 0.3);
}

.holiday-delete-btn:hover {
  background: rgba(252, 129, 129, 0.3);
}