/* EDS Admin Panel - Custom Styles */

:root {
  --eds-blue: #3F51B5;
  --eds-red: #E53935;
  --eds-blue-dark: #303F9F;
  --eds-blue-light: #E8EAF6;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
}

/* Navbar customization */
.navbar-brand {
  font-weight: 700;
  color: white !important;
  font-size: 1.5rem;
}

.navbar {
  background: linear-gradient(135deg, var(--eds-blue) 0%, var(--eds-blue-dark) 100%) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: white !important;
  background-color: rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* Stats cards */
.stats-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.stats-card .card-body {
  padding: 1.5rem;
}

.stats-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stats-icon.blue { background-color: var(--eds-blue); }
.stats-icon.green { background-color: #4CAF50; }
.stats-icon.orange { background-color: #FF9800; }
.stats-icon.purple { background-color: #9C27B0; }

.stats-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.stats-label {
  color: #7f8c8d;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

/* Tables */
.table-custom {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.table-custom thead {
  background-color: var(--eds-blue-light);
}

.table-custom thead th {
  border: none;
  font-weight: 600;
  color: var(--eds-blue);
  padding: 1rem;
}

.table-custom tbody tr {
  transition: background-color 0.2s;
}

.table-custom tbody tr:hover {
  background-color: #f8f9fa;
}

/* Badges */
.badge-active {
  background-color: #4CAF50;
}

.badge-inactive {
  background-color: #757575;
}

.badge-danger {
  background-color: #E53935;
  color: white;
}

.badge-admin {
  background-color: var(--eds-blue);
}

.badge-user {
  background-color: #607D8B;
}

/* Buttons */
.btn-eds-primary {
  background-color: var(--eds-blue);
  border-color: var(--eds-blue);
  color: white;
}

.btn-eds-primary:hover {
  background-color: var(--eds-blue-dark);
  border-color: var(--eds-blue-dark);
  color: white;
}

.btn-eds-danger {
  background-color: var(--eds-red);
  border-color: var(--eds-red);
  color: white;
}

.btn-eds-danger:hover {
  background-color: #d32f2f;
  border-color: #d32f2f;
  color: white;
}

/* Action buttons in table */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-header {
  background-color: white;
  border-bottom: 2px solid var(--eds-blue-light);
  font-weight: 600;
  color: var(--eds-blue);
}

/* Promotion cards */
.promo-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.promo-card:hover {
  transform: scale(1.02);
}

.promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Loading spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner-overlay.show {
  display: flex;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}

/* Login page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--eds-blue-light) 0%, #ffffff 100%);
}

.login-card {
  width: 100%;
  max-width: 450px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.login-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--eds-blue) 0%, var(--eds-blue-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 16px rgba(63, 81, 181, 0.3);
}

.login-logo i {
  color: white;
  font-size: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-card {
    margin-bottom: 1rem;
  }
  
  .table-responsive {
    font-size: 0.9rem;
  }
}
