/* Theme Variables - Using your color scheme */


/* Admin Layout Styles */
.admin-layout {
  min-height: 100vh;
  background-color: var(--bg-color);
  font-family: var(--default-font);
}

.admin-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: 60px;
  backdrop-filter: blur(10px);
  background: var(--white-color);
  border-bottom: 1px solid var(--divider-color);
}

.admin-sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--white-color);
  border-right: 1px solid var(--divider-color);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1020;
  overflow-y: auto;
}

.admin-sidebar.open {
  transform: translateX(0);
}

.admin-main {
  margin-top: 60px;
  margin-left: 0;
  transition: margin-left 0.3s ease;
  background: var(--bg-color);
  min-height: calc(100vh - 60px);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1015;
}

.sidebar-content {
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  flex: 1;
  padding: 0.5rem 0;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  transition: all 0.2s ease;
  border-radius: 0;
  margin: 0.125rem 0;
  font-family: var(--default-font);
}

.nav-link:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
}

.nav-link.active {
  background: var(--accent-color);
  color: var(--primary-color);
  border-right: 3px solid var(--primary-color);
}

.nav-icon {
  margin-right: 12px;
  font-size: 1.1em;
  width: 20px;
  text-align: center;
}

.nav-text {
  font-weight: 500;
  flex: 1;
}

/* Add to your existing sidebar CSS */
.nav-group {
  margin-bottom: 1rem;
}

.nav-group-header {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280; /* gray-500 */
  margin-bottom: 0.25rem;
}

/* Optional: Add subtle separator between groups */
.nav-group:not(:last-child) {
  border-bottom: 1px solid #f3f4f6; /* gray-100 */
  padding-bottom: 0.5rem;
}

.sidebar-footer {
  padding: 1rem 0;
  background: var(--bg-color);
  border-top: 1px solid var(--divider-color);
}

/* Theme Utility Classes */
.theme-bg-primary { background: var(--primary-color) !important; }
.theme-bg-secondary { background-color: var(--bg-color) !important; }
.theme-bg-light { background-color: var(--bg-color) !important; }
.theme-bg-accent { background-color: var(--accent-color) !important; }
.theme-bg-success { background-color: var(--success-color) !important; }
.theme-bg-warning { background-color: var(--warning-color) !important; }
.theme-bg-info { background-color: var(--info-color) !important; }

.theme-text-primary { color: var(--primary-color) !important; }
.theme-text-secondary { color: var(--text-color) !important; }
.theme-text-accent { color: var(--accent-color) !important; }

.theme-border { border: 1px solid var(--divider-color) !important; }
.theme-btn-primary { 
  background: var(--primary-color) !important;
  border: none !important;
  color: var(--white-color) !important;
}
.theme-btn-accent { 
  background: var(--accent-color) !important;
  border: none !important;
  color: var(--primary-color) !important;
}
.theme-btn-success { 
  background-color: var(--success-color) !important;
  border: none !important;
  color: var(--white-color) !important;
}
.theme-btn-info { 
  background-color: var(--info-color) !important;
  border: none !important;
  color: var(--white-color) !important;
}

/* Card Enhancements */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-radius: 0.75rem;
  background: var(--white-color);
  font-family: var(--default-font);
}

.card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* Stats Cards */
.stats-card {
  transition: all 0.3s ease;
  border-left: 4px solid var(--accent-color);
}

.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Custom Badges */
.badge {
  font-weight: 500;
}

/* Form Enhancements */
.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(203, 202, 123, 0.25);
}

/* Button Enhancements */
.btn {
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-family: var(--default-font);
}

.theme-btn-primary:hover,
.theme-btn-accent:hover,
.theme-btn-success:hover,
.theme-btn-info:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Table Enhancements */
.table th {
  border-top: none;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--bg-color);
  font-family: var(--default-font);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--accent-font);
  color: var(--primary-color);
}

.text-muted {
  color: var(--text-color) !important;
}

/* Responsive Design - Mobile First */
@media (max-width: 991.98px) {
  .admin-header {
    height: 70px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  .admin-sidebar {
    top: 70px;
    width: 300px;
  }
  
  .admin-main {
    margin-top: 70px;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
    margin-left: 0.5rem;
    font-family: var(--accent-font);
    color: var(--primary-color) !important;
  }
  
  .navbar-toggler {
    padding: 0.5rem;
    margin-right: 0.5rem;
  }
  
  /* Improved responsive stats grid */
  .stats-card .card-body {
    padding: 1rem !important;
  }
  
  .stats-card h4 {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .stats-card {
    border-left: none;
    border-top: 4px solid var(--accent-color);
  }
  
  .stats-card .card-body {
    padding: 0.75rem !important;
  }
}

@media (min-width: 992px) {
  .admin-sidebar {
    transform: translateX(0);
  }
  
  .admin-main {
    margin-left: 280px;
  }
}

/* Custom Scrollbar */
.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: var(--bg-color);
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Ensure proper touch targets for mobile */
.navbar-toggler {
  min-height: 44px;
  min-width: 44px;
}

.nav-link {
  min-height: 44px;
}

.dropdown-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-family: var(--default-font);
}

/* Badge enhancements */
.badge {
  font-weight: 500;
  font-size: 0.75em;
}

/* List group enhancements */
.list-group-item {
  background: transparent;
  border-color: var(--divider-color);
}

/* Additional sidebar header styling */
.sidebar-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--divider-color);
}

.sidebar-header h5 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-family: var(--accent-font);
}

.sidebar-header small {
  color: var(--text-color);
  font-size: 0.875em;
  font-family: var(--default-font);
}

/* Navbar brand styling */
.navbar-brand {
  font-family: var(--accent-font);
  color: var(--primary-color) !important;
  font-weight: 700;
}

/* Dropdown enhancements */
.dropdown-menu {
  border: 1px solid var(--divider-color);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  font-family: var(--default-font);
}

.dropdown-item {
  color: var(--text-color);
}

.dropdown-item:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
}

.mobile-frame {
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.mobile-frame::-webkit-scrollbar {
  width: 6px;
}

.mobile-frame::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}


/* Floating Action Buttons - Reusable Component */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1050;
}

.floating-actions-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white-color);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  border: 1px solid var(--divider-color);
  backdrop-filter: blur(10px);
}

.floating-btn {
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 140px;
  transition: all 0.3s ease;
  border: none !important;
  font-family: var(--default-font);
}

.floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.floating-btn:active {
  transform: translateY(0);
}

/* Section Headers - Reusable */
.section-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}


.section-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  margin-top: 0.5rem;
}

/* Image Upload Component - Reusable */
.image-upload-component .input-group {
  border-radius: 8px;
  overflow: hidden;
}

.image-upload-component .form-control {
  border-right: none;
  border: 2px solid var(--divider-color);
  border-radius: 8px;
}

.image-upload-component .btn-outline-secondary {
  border-left: none;
  border-color: var(--divider-color);
  border-radius: 0 8px 8px 0;
}

.image-preview .img-thumbnail {
  border-radius: 8px;
  border: 2px solid var(--divider-color);
  transition: all 0.3s ease;
}

.image-preview .img-thumbnail:hover {
  border-color: var(--accent-color);
  transform: scale(1.02);
}

.image-upload-component .small-preview .img-thumbnail {
  max-height: 60px !important;
}

/* Enhanced Form Controls */
.form-control, .form-select {
  border: 2px solid var(--divider-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--default-font);
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(203, 202, 123, 0.2);
  background-color: var(--white-color);
}

.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: var(--default-font);
}


/* Card Header Enhancement */
.card-header {
  background: linear-gradient(135deg, var(--bg-color), var(--white-color));
  border-bottom: 1px solid var(--divider-color);
  padding: 1.25rem 1.5rem;
}

.card-header h5 {
  color: var(--primary-color);
  font-weight: 700;
  font-family: var(--accent-font);
  margin-bottom: 0;
}

/* Feature Cards Enhancement */
.feature-card {
  border-left: 4px solid var(--accent-color) !important;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}





/* Remove duplicate X buttons - ensure only one remove button per item */
.d-flex.gap-2.align-items-start > .btn-outline-danger:last-child {
  flex-shrink: 0;
}

/* Ensure proper spacing in feature cards */
.feature-card .card-header .btn-outline-danger {
  margin-left: auto;
}

/* Responsive Design for Floating Actions */
@media (max-width: 991.98px) {
  .floating-actions {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .floating-actions-container {
    padding: 12px;
    border-radius: 10px;
  }
  
  .floating-btn {
    min-width: 120px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  

}

/* Loading states */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}



/* components/BeautifulToast.css */
.beautiful-toast-container {
  /* Container positioning */
  top: 1rem;
  right: 1rem;
}

.beautiful-toast {
  /* Base toast styles */
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e7eb;
  padding: 16px;
  min-height: 80px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.beautiful-toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Custom content styles */
.custom-toast-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-icon.success {
  background: #dcfce7;
  color: #16a34a;
}

.toast-icon.error {
  background: #fee2e2;
  color: #dc2626;
}

.toast-icon.warning {
  background: #fef3c7;
  color: #d97706;
}

.toast-icon.info {
  background: #dbeafe;
  color: #2563eb;
}

.toast-text {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 4px;
  line-height: 1.2;
}

.toast-message {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

/* Progress bar */
.toast-progress {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 3px;
}

/* Close button customization */
.Toastify__close-button {
  color: #9ca3af;
  opacity: 0.7;
  align-self: flex-start;
  margin-top: -4px;
  margin-right: -4px;
}

.Toastify__close-button:hover {
  color: #374151;
  opacity: 1;
}

/* Success toast specific */
.Toastify__toast--success {
  border-left-color: #10b981;
}

.Toastify__toast--success::before {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Error toast specific */
.Toastify__toast--error {
  border-left-color: #ef4444;
}

.Toastify__toast--error::before {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Warning toast specific */
.Toastify__toast--warning {
  border-left-color: #f59e0b;
}

.Toastify__toast--warning::before {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Info toast specific */
.Toastify__toast--info {
  border-left-color: #3b82f6;
}

.Toastify__toast--info::before {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  .beautiful-toast {
    background: #1f2937;
    border-color: #374151;
    color: white;
  }
  
  .toast-title {
    color: #f9fafb;
  }
  
  .toast-message {
    color: #d1d5db;
  }
  
  .Toastify__close-button {
    color: #9ca3af;
  }
  
  .Toastify__close-button:hover {
    color: #f3f4f6;
  }
}

/* Animation improvements */
.Toastify__toast {
  animation-duration: 0.4s;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .beautiful-toast-container {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
  }
  
  .beautiful-toast {
    border-radius: 8px;
    padding: 12px;
    min-height: 70px;
  }
  
  .custom-toast-content {
    gap: 8px;
  }
  
  .toast-icon {
    width: 28px;
    height: 28px;
  }
}