/* Ömür Plastik & Ambalaj - Yönetim (Admin) Paneli Arayüz Stilleri */

/* Giriş Kartı (Login Card) */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, var(--secondary) 0%, #1a1a2e 100%);
  padding: 24px;
}

.login-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  color: white;
}

.login-card h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.5px;
}

.login-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-align: center;
  margin-bottom: 30px;
}

.login-card label {
  color: rgba(255, 255, 255, 0.8);
}

.login-card .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.login-card .form-control:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

/* Admin Dashboard Düzeni */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background-color: var(--bg-light);
}

/* Sol Menü (Sidebar) */
.admin-sidebar {
  background-color: var(--secondary);
  color: white;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo i {
  color: var(--primary);
  font-size: 24px;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-menu-item:hover, .admin-menu-item.active {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(179, 29, 29, 0.12);
}

.admin-logout {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.admin-logout:hover {
  color: var(--primary);
}

/* Ana İçerik Alanı */
.admin-content {
  padding: 40px;
  overflow-y: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.admin-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
}

/* İstatistik Kartları Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-info h3 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-info p {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background-color: rgba(179, 29, 29, 0.1);
  color: var(--primary);
}

.stat-card:nth-child(2) .stat-icon {
  background-color: rgba(46, 196, 182, 0.1);
  color: #2ec4b6;
}

.stat-card:nth-child(3) .stat-icon {
  background-color: rgba(255, 159, 67, 0.1);
  color: #ff9f43;
}

.stat-card:nth-child(4) .stat-icon {
  background-color: rgba(230, 57, 70, 0.1);
  color: #e63946;
}

/* Panel Kartı (Tablolar için container) */
.admin-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 30px;
}

.admin-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-card-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.admin-card-body {
  padding: 24px;
}

/* Tablo Stilleri */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table.admin-table th, table.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

table.admin-table th {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  background-color: var(--bg-light);
}

table.admin-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

/* Status Rozetleri (Status Badges) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.badge-pending {
  background-color: #fef3c7;
  color: #d97706;
}

.badge-processing {
  background-color: #dbeafe;
  color: #2563eb;
}

.badge-shipped {
  background-color: #ffedd5;
  color: #ea580c;
}

.badge-delivered {
  background-color: #dcfce7;
  color: #16a34a;
}

.badge-cancelled {
  background-color: #fee2e2;
  color: #dc2626;
}

/* Görsel Seçici ve Önizleme */
.image-preview-box {
  width: 120px;
  height: 120px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-light);
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-box span {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
}

/* Düzenleme Butonları */
.action-btn-group {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-btn.edit {
  background-color: #dbeafe;
  color: #2563eb;
}

.action-btn.edit:hover {
  background-color: #2563eb;
  color: white;
}

.action-btn.delete {
  background-color: #fee2e2;
  color: #dc2626;
}

.action-btn.delete:hover {
  background-color: #dc2626;
  color: white;
}

.action-btn.view {
  background-color: #f3e8ff;
  color: #9333ea;
}

.action-btn.view:hover {
  background-color: #9333ea;
  color: white;
}

/* =============================================
   MÜKEMMEL MOBİL RESPONSIVE ADMİN PANELİ STİLLERİ
   ============================================= */

@media (max-width: 1024px) {
  .admin-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .admin-sidebar {
    display: flex !important;
    position: relative;
    height: auto;
    width: 100%;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    sticky: relative;
    top: 0;
    z-index: 100;
  }

  .admin-sidebar-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
  }

  .admin-logo {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .admin-menu {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    padding: 4px 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .admin-menu::-webkit-scrollbar {
    display: none;
  }

  .admin-menu-item {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
  }

  .admin-menu-item.active {
    background: var(--primary);
    color: white;
  }

  .admin-content {
    padding: 16px 12px !important;
    width: 100%;
  }

  .admin-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 20px;
  }

  .admin-header button {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .table-responsive {
    overflow-x: auto;
    width: 100%;
    display: block;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 640px;
  }

  .admin-card {
    border-radius: var(--radius-md);
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .modal-overlay .modal {
    width: 95% !important;
    max-height: 94vh !important;
    padding: 16px !important;
  }

  .modal-overlay .form-group[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* =============================================
   ADMIN SITE SETTINGS TABS
   ============================================= */
.settings-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-tab-nav {
  display: flex;
  gap: 8px;
  background-color: var(--bg-white);
  padding: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 8px;
}

.settings-tab-nav::-webkit-scrollbar {
  display: none;
}

.settings-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.settings-tab-btn i {
  font-size: 16px;
}

.settings-tab-btn:hover {
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.settings-tab-btn.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.settings-tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.settings-tab-panel.active {
  display: block;
}

.slider-edit-block {
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.slider-edit-block:hover {
  border-color: rgba(179, 29, 29, 0.2) !important;
  transform: translateY(-2px);
}

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

