/* 
* Date: 2025-05-14
* Author Name: Alok
* File Name: admin.css
* Purpose: Styles for admin interface
*/

/* Global Admin Styles */
:root{
  --primary-900:#3c3c3c;--primary-800:#606060;--primary-700:#818181;--primary-600:#979797;--primary-500:#c2c2c2;--primary-400:#dedede;--primary-300:#f0f0f0;--primary-200:#f5f5f5;--primary-100:#fafafa;--primary-50:#ffffff;
  --secondary-900:#ed842a;--secondary-800:#f3aa38;--secondary-700:#f6c141;--secondary-600:#f9d949;--secondary-500:#f7e74b;--secondary-400:#f9ec64;--secondary-300:#fcf180;--secondary-200:#fdf5a3;--secondary-100:#fef9c8;--secondary-50:#fefde8;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: none;
}

.admin-header {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 45%, var(--secondary-900) 100%);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.admin-header .navbar-brand {
  font-weight: 700;
  color: #fff;
}

.admin-header .navbar-brand .brand-logo,
.navbar-brand .brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}

.admin-header .navbar-nav .nav-link {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.admin-header .navbar-nav .nav-link:hover,
.admin-header .navbar-nav .nav-link.active {
  color: #fff;
}

.admin-content {
  padding: 2rem 0;
  min-height: calc(100vh - 120px);
}

.admin-card {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
  margin-bottom: 1.5rem;
}

.admin-card:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.admin-card .card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-weight: 600;
}

.admin-card .card-header .btn-icon {
  padding: 0.25rem 0.5rem;
  margin-left: 0.5rem;
}

.admin-table {
  margin-bottom: 0;
}

.admin-table th {
  font-weight: 600;
  border-top: none;
}

.admin-table td {
  vertical-align: middle;
}

/* Admin Dashboard */
.stats-card {
  border-radius: 0.5rem;
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.2s;
}

.stats-card:hover {
  transform: translateY(-5px);
}

.stats-card .stats-icon {
  font-size: 2rem;
  opacity: 0.2;
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
}

.stats-card .stats-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.stats-card .stats-title {
  font-size: 0.9rem;
  color: rgba(0,0,0,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Login Form */
.login-card {
  max-width: 400px;
  margin: 5rem auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.login-card .card-header {
  background-color: #fff;
  text-align: center;
  padding: 2rem 1rem 1rem;
  border: none;
}

.login-logo {
  margin-bottom: 1rem;
  width: 80px;
}

.login-title {
  font-weight: 700;
  margin-bottom: 0;
}

.login-card .card-body {
  padding: 2rem;
}

.login-card .form-group {
  margin-bottom: 1.5rem;
}

.login-card .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.login-card .form-control {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.login-card .btn-primary {
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  width: 100%;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1060;
}

.toast {
  width: 350px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-header {
  padding: 0.5rem 1rem;
}

.toast-body {
  padding: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .admin-content {
    padding: 1rem 0;
  }
  
  .stats-card {
    margin-bottom: 1rem;
  }
  
  .stats-card .stats-value {
    font-size: 2rem;
  }
  
  .admin-card {
    margin-bottom: 1rem;
  }
}