/* Talep Al - Modern Tasarım Sistemi */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --primary: #1428a0;
  --primary-hover: #0f1e7a;
  --primary-light: #e8ecfa;
  --accent: #1428a0;
  --surface: #f0f4fc;
  --surface-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #c5cef5;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --shadow-hover: 0 25px 50px -12px rgb(0 0 0 / 0.15);
}

* {
  font-family: var(--font-sans);
}

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

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

.animate-delay-1 { animation-delay: 0.05s; }
.animate-delay-2 { animation-delay: 0.1s; }
.animate-delay-3 { animation-delay: 0.15s; }
.animate-delay-4 { animation-delay: 0.2s; }

/* Card hover */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(20, 40, 160, 0.15);
}

/* Glass morphism */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Gradient text - Samsung paleti */
.gradient-text {
  background: linear-gradient(135deg, #1428a0 0%, #0f1e7a 50%, #0a1255 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Samsung gradient arka plan */
.gradient-bg {
  background: linear-gradient(135deg, #1428a0 0%, #0f1e7a 50%, #0a1255 100%);
}

/* Glass card */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Koyu Samsung logo paleti - tüm kartlar (bayi/kullanıcı) */
.card-samsung-dark {
  background: linear-gradient(180deg, #0f1e7a 0%, #0a1255 100%) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: #f1f5f9;
}
.card-samsung-dark thead { background-color: #060c33 !important; }
.card-samsung-dark thead th { color: #94a3b8 !important; }
.card-samsung-dark tbody tr { background-color: transparent; }
.card-samsung-dark tbody tr:hover { background-color: rgba(255,255,255,0.06) !important; }
.card-samsung-dark tbody td { color: #e2e8f0 !important; }
.card-samsung-dark .border-b { border-color: rgba(255,255,255,0.15) !important; }
.card-samsung-dark .divide-y > * { border-color: rgba(255,255,255,0.1) !important; }
.card-samsung-dark input, .card-samsung-dark select, .card-samsung-dark textarea {
  background-color: #0a1255 !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: #f1f5f9 !important;
}
.card-samsung-dark input::placeholder, .card-samsung-dark textarea::placeholder { color: #94a3b8; }
.card-samsung-dark label { color: #e2e8f0 !important; }
.card-samsung-dark h1, .card-samsung-dark h2, .card-samsung-dark h3, .card-samsung-dark h4 { color: #fff !important; }
.card-samsung-dark .text-slate-700 { color: #e2e8f0 !important; }
.card-samsung-dark .text-slate-800 { color: #e2e8f0 !important; }
.card-samsung-dark .text-slate-600 { color: #94a3b8 !important; }
.card-samsung-dark .text-slate-500 { color: #94a3b8 !important; }
.card-samsung-dark .text-primary-600 { color: #93c5fd !important; }
.card-samsung-dark .bg-primary-100 { background-color: rgba(255,255,255,0.2) !important; }
.card-samsung-dark .text-primary-700 { color: #e2e8f0 !important; }
.card-samsung-dark .bg-red-50 { background-color: rgba(220,38,38,0.2) !important; }
.card-samsung-dark .text-red-700 { color: #fca5a5 !important; }
.card-samsung-dark .border-red-100 { border-color: rgba(220,38,38,0.4) !important; }

/* Bölüm başlığı kartı - Samsung (bayi/kullanıcı) */
.section-header-card {
  background: linear-gradient(180deg, #0f1e7a 0%, #0a1255 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 1rem;
  padding: 0.875rem 1.25rem;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}
.section-header-card i { color: #93c5fd; }
.section-header-card a { color: #93c5fd; }
.section-header-card a:hover { color: #fff; }
.section-header-card .section-desc { font-size: 0.7rem; font-weight: 400; color: rgba(255,255,255,0.6); margin-top: 0.15rem; }

/* Modern input focus - Samsung mavi */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 40, 160, 0.2);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Mobil bottom nav - Samsung paleti (bayi/kullanıcı) */
.mobile-bottom-nav {
  background: linear-gradient(180deg, #0f1e7a 0%, #0a1255 50%, #060c33 100%);
  border-top: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.mobile-bottom-nav .mobile-nav-item {
  color: #94a3b8;
  transition: color 0.2s;
}
.mobile-bottom-nav .mobile-nav-item i,
.mobile-bottom-nav .mobile-nav-item span {
  color: inherit;
}
.mobile-bottom-nav .mobile-nav-item:hover {
  color: #fff;
}
.mobile-bottom-nav .mobile-nav-active {
  color: #fff !important;
}
.mobile-bottom-nav .mobile-nav-active i,
.mobile-bottom-nav .mobile-nav-active span {
  color: #fff !important;
}
.mobile-bottom-nav .mobile-nav-logout {
  color: #94a3b8;
}
.mobile-bottom-nav .mobile-nav-logout:hover {
  color: #f87171;
}

/* Footer - Samsung logo paleti */
.footer-samsung {
  background: linear-gradient(180deg, #0f1e7a 0%, #0a1255 100%);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Mobil bottom nav - iOS safe area */
.safe-area-pb {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* ===== Mobil Uyumlu Kart Sistemi ===== */
@media (max-width: 768px) {
  .table-mobile-cards {
    display: block;
  }
  .table-mobile-cards thead {
    display: none;
  }
  .table-mobile-cards tbody {
    display: block;
  }
  .table-mobile-cards tbody tr {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #0f1e7a 0%, #0a1255 100%);
    box-shadow: 0 4px 6px -1px rgba(20, 40, 160, 0.08);
    transition: box-shadow 0.2s;
  }
  .table-mobile-cards tbody tr:hover {
    box-shadow: 0 4px 12px -2px rgba(20, 40, 160, 0.3);
    background: linear-gradient(180deg, #1428a0 0%, #0f1e7a 100%);
  }
  .table-mobile-cards tbody tr:last-child {
    margin-bottom: 0;
  }
  .table-mobile-cards tbody td {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border: none;
    gap: 0.5rem;
  }
  .table-mobile-cards tbody td:first-child {
    padding-top: 0;
  }
  .table-mobile-cards tbody td:last-child {
    padding-bottom: 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
  }
  .table-mobile-cards tbody td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    flex-shrink: 0;
  }
  .table-mobile-cards tbody td .flex {
    justify-content: flex-end;
  }
  .table-mobile-cards tbody td.hidden {
    display: flex !important;
  }
  .table-mobile-cards tbody td[data-label=""]::before {
    display: none;
  }
  .mobile-card-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-right: 0.5rem;
  }
  .mobile-card-header::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
  }
  .mobile-card-header .mobile-card-icon {
    display: inline-flex;
    align-items: center;
    order: -1;
  }
  .mobile-card-header .mobile-card-icon i {
    font-size: 0.875rem;
  }
  .table-mobile-cards tbody td:has(.mobile-card-header)::before {
    display: none;
  }
  .card-grid-responsive {
    grid-template-columns: 1fr !important;
  }
  main {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-bottom: 2rem !important;
  }
  .touch-target {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Line clamp - uzun metinleri kısalt */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tablo overflow - yedek */
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1rem;
  padding: 0 1rem;
}
@media (min-width: 769px) {
  .table-scroll-wrap { margin: 0; padding: 0; }
}

/* Samsung mobil kartlar - masaüstü ile aynı palet */
.table-mobile-cards tbody tr {
  border-color: var(--border);
}

/* ===== Admin Talepler - Modern Kart Tasarımı ===== */
.admin-talepler-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.admin-talepler-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}
@media (min-width: 640px) {
  .admin-talepler-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.admin-talepler-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-talepler-title i {
  color: var(--primary);
}
.admin-talepler-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.admin-talepler-select {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  font-size: 0.875rem;
  background: #fff;
  color: #334155;
  min-height: 40px;
}
.admin-talepler-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 40, 160, 0.15);
}
.admin-talepler-clear {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.admin-talepler-clear:hover {
  background: rgba(20, 40, 160, 0.08);
}
.admin-talepler-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-talepler-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-talepler-table thead {
  background: #f1f5f9;
}
.admin-talepler-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #475569;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: 1px solid #e2e8f0;
}
.admin-talepler-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
.admin-talepler-table tbody tr:hover {
  background: #f8fafc;
}
.admin-talepler-table td {
  padding: 0.875rem 1rem;
  color: #334155;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}
.admin-talepler-table .admin-talepler-muted {
  font-size: 0.75rem;
  color: #64748b;
}
.admin-talepler-fiyat {
  font-weight: 600;
  color: #0f172a;
}
.admin-talepler-sikayet {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Durum badge'leri - net renkler */
.admin-talepler-badge {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
}
.admin-talepler-badge-aktif {
  background: #dbeafe;
  color: #1d4ed8;
}
.admin-talepler-badge-satildi {
  background: #dcfce7;
  color: #15803d;
}
.admin-talepler-badge-iptal {
  background: #f1f5f9;
  color: #64748b;
}
.admin-talepler-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.admin-talepler-countdown i {
  opacity: 0.9;
}
.admin-talepler-actions {
  white-space: nowrap;
}
.admin-talepler-btn {
  display: inline-flex;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
  margin: 0 0.125rem 0.25rem 0;
}
.admin-talepler-btn:active {
  transform: scale(0.98);
}
.admin-talepler-btn-primary {
  background: #e0e7ff;
  color: #3730a3;
}
.admin-talepler-btn-primary:hover {
  background: #c7d2fe;
}
.admin-talepler-btn-amber {
  background: #fef3c7;
  color: #b45309;
}
.admin-talepler-btn-amber:hover {
  background: #fde68a;
}
.admin-talepler-btn-danger {
  background: #fee2e2;
  color: #b91c1c;
}
.admin-talepler-btn-danger:hover {
  background: #fecaca;
}
.admin-talepler-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9375rem;
}

/* Admin talepler - Mobil kart görünümü */
@media (max-width: 768px) {
  .admin-talepler-card {
    min-width: 0;
    overflow-x: hidden;
  }
  .admin-talepler-header {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .admin-talepler-filters {
    flex-direction: column;
    width: 100%;
  }
  .admin-talepler-select {
    width: 100%;
    min-height: 44px;
  }
  .admin-talepler-table-wrap {
    padding: 0 1rem 1rem;
    overflow-x: visible;
  }
  .admin-talepler-table {
    display: block;
    width: 100%;
  }
  .admin-talepler-table thead {
    display: none;
  }
  .admin-talepler-table tbody {
    display: block;
  }
  .admin-talepler-table tbody tr {
    display: block;
    margin: 0 0 1rem 0;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .admin-talepler-table tbody tr:last-child {
    margin-bottom: 0;
  }
  .admin-talepler-table td {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
    box-sizing: border-box;
  }
  .admin-talepler-table td:last-child {
    border-bottom: none;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid #e2e8f0;
  }
  .admin-talepler-table td::before {
    content: attr(data-label);
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
  }
  .admin-talepler-table td.admin-talepler-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .admin-talepler-table td.admin-talepler-actions::before {
    width: 100%;
    margin-bottom: 0.25rem;
  }
  .admin-talepler-table td.admin-talepler-actions .admin-talepler-btn {
    justify-content: center;
    margin: 0;
    min-height: 44px;
    width: 100%;
  }
  .admin-talepler-sikayet {
    max-width: none;
    white-space: normal;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Dashboard kartları - iç içe girmeyi önle */
.dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem 1.25rem;
}
.dashboard-card-grid > * {
  min-width: 0;
  overflow: hidden;
}
