/* Admin Custom Styles */
:root {
  --primary-color: #3b82f6;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #0ea5e9;
  --light-bg: #f8fafc;
  --dark-bg: #0f172a;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Body */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--light-bg);
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow: var(--card-shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  border-radius: 12px 12px 0 0 !important;
  padding: 1rem 1.5rem;
}

.card-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark-bg);
}

.card-body {
  padding: 1.5rem;
}

/* Small Boxes */
.small-box {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.small-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-lg);
}

.small-box .inner {
  padding: 1.5rem;
}

.small-box h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.small-box p {
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
  font-weight: 500;
  opacity: 0.9;
}

.small-box .icon {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 3rem;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.small-box:hover .icon {
  opacity: 0.5;
  transform: scale(1.1);
}

.small-box-footer {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.9);
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.small-box-footer:hover {
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  text-decoration: none;
}

/* Gradient Cards */
.bg-gradient-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 12px;
}

.bg-gradient-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 12px;
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 12px;
}

.bg-gradient-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 12px;
}

.bg-gradient-info {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-radius: 12px;
}

/* Tables */
.table {
  border-radius: 8px;
  overflow: hidden;
}

.table thead th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark-bg);
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
}

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

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f8fafc;
}

/* Badges */
.badge {
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

.badge-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.badge-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.badge-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.badge-info {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.badge-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.badge-secondary {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.badge-light {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  transition: all 0.3s ease;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-info {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.btn-secondary {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #e2e8f0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--dark-bg);
}

.nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
}

.nav-link.active {
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
}

/* Sidebar */
.main-sidebar {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.brand-link {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  margin: 0.25rem 0.5rem;
  transition: all 0.3s ease;
}

.nav-sidebar .nav-link:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
}

.nav-sidebar .nav-link.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-icon {
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
}

/* Forms */
.form-control {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group label {
  font-weight: 600;
  color: var(--dark-bg);
  margin-bottom: 0.5rem;
}

/* List Group */
.list-group-item {
  border: none;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background: #f8fafc;
}

.list-group-item:last-child {
  border-bottom: none;
}

/* Progress Bars */
.progress {
  height: 1.5rem;
  border-radius: 8px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-bar {
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: var(--card-shadow);
}

.alert-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-left: 4px solid var(--success-color);
}

.alert-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  border-left: 4px solid var(--danger-color);
}

.alert-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
  border-left: 4px solid var(--warning-color);
}

.alert-info {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(2, 132, 199, 0.1) 100%);
  border-left: 4px solid var(--info-color);
}

/* Modal */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: var(--card-shadow-lg);
}

.modal-header {
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #e2e8f0;
}

.modal-footer {
  border-radius: 0 0 12px 12px;
  border-top: 1px solid #e2e8f0;
}

/* Footer */
.main-footer {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem;
  font-weight: 500;
}

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

.card, .small-box {
  animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .small-box h3 {
    font-size: 1.5rem;
  }
  
  .card-header {
    padding: 0.75rem 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .table thead th,
  .table tbody td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* Loading Spinner */
.spinner-border {
  border-color: var(--primary-color);
  border-right-color: transparent;
}

/* Code blocks */
code, pre {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
}

pre {
  overflow-x: auto;
}

/* Stats Cards Hover Effect */
.stats-card {
  transition: all 0.3s ease;
}

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

/* Table Row Animation */
.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transform: translateX(5px);
}
