/* Özel Stiller */
.nav-link.active {
  background-color: #1e293b;
  border-left-color: #fbbf24;
  color: #fbbf24;
}

/* Kart Hover Efekti */
.stat-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Bar Chart */
.bar-chart-container {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 260px;
  padding-bottom: 40px;
  position: relative;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  height: calc(100% - 32px);
}

.bar-pair {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 100%;
  justify-content: center;
  height: 100%;
}

.bar-fill {
  width: 16px;
  border-radius: 3px 3px 0 0;
  transition: height 0.6s ease-out;
  min-height: 2px;
  position: relative;
}

.bar-fill:hover::after {
  content: attr(data-value);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  margin-bottom: 4px;
  z-index: 10;
}

.bar-label {
  position: absolute;
  bottom: -32px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  text-align: center;
}

/* Tablo Stilleri */
.data-table th {
  background-color: #f8fafc;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
  background-color: #f1f5f9;
}

/* Program Tablosu */
.schedule-grid {
  display: grid;
  grid-template-columns: 80px repeat(5, 1fr);
  gap: 1px;
  background-color: #e2e8f0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.schedule-header {
  background-color: #f8fafc;
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}

.schedule-cell {
  background-color: white;
  padding: 8px;
  min-height: 80px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.schedule-cell:hover {
  background-color: #f0f9ff;
}

.schedule-cell.has-session {
  background-color: #ecfdf5;
}

.schedule-cell.has-session:hover {
  background-color: #d1fae5;
}

.schedule-cell.conflict {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
}

/* Badge Stilleri */
.badge-wrong {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-empty {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-course {
  background-color: #dbeafe;
  color: #1e40af;
}

/* Animasyonlar */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Print Stilleri */
@media print {
  #sidebar, #mobile-toggle, .no-print,
  #global-modal > div > div:first-child,
  #toast-container {
    display: none !important;
  }
  main {
    margin-left: 0 !important;
  }
  .module-section {
    display: block !important;
  }
  #global-modal {
    position: static !important;
    display: block !important;
    background: none !important;
    padding: 0 !important;
  }
  #global-modal > div {
    max-height: none !important;
    box-shadow: none !important;
    border: none !important;
  }
  .schedule-cell {
    min-height: auto;
    border: 1px solid #ccc;
  }
}

/* Toast */
.toast {
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
