/* ==========================================
   WLTeaching - Vuexy Inspired Theme
   Colors: Red Light (#FF6B6B, #FFE0E0) + White (#FFFFFF)
   ========================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   CSS Variables for Theme Colors
   ========================================== */
:root {
  /* Primary Colors */
  --primary-color: #fd734e;
  --primary-light: #FFE0E0;
  --primary-dark: #E55555;
  --primary-gradient: linear-gradient(135deg, #FF6B6B 0%, #FFE0E0 100%);
  --green-color: #28C76F;
  --green-dark: #218838;
  --orange-color: #fd734e;
  --gray-color: #6C7293;
  
  /* Secondary Colors */
  --secondary-color: #6C7293;
  --secondary-light: #f5f5f5;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #f5f5f5;
  --medium-gray: #E9ECEF;
  --dark-gray: #6C757D;
  --text-dark: #2D3748;
  --text-muted: #718096;
  
  /* Status Colors */
  --success: #28C76F;
  --success-light: #E8F8F5;
  --warning: #FF9F43;
  --warning-light: #FFF4E6;
  --danger: #EA5455;
  --danger-light: #FFEAEA;
  --info: #00CFE8;
  --info-light: #E0F7FA;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ==========================================
   Base Styles
   ========================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dark);
 background: linear-gradient(273deg, rgb(255, 255, 255) 0%, rgba(245, 244, 244, 0.89) 100%); visibility: visible;

  padding: 0px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   Navigation Styles
   ========================================== */
/* Cart and Notification Badges */
.cart-badge,
.notification-badge {
  font-size: 0.65em;
  min-width: 19px;
  height: 19px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  padding: 0 !important;
  line-height: 1;
  font-weight: 600;
  top: -8px !important;
  right: -1px !important;
}

.notification-dropdown {
  width: 300px;
  max-height: 300px;
  overflow-y: auto;
}

/* Custom scrollbar for dropdown menus */
.notification-dropdown::-webkit-scrollbar {
  width: 6px;
}

.notification-dropdown::-webkit-scrollbar-track {
  background: var(--light-gray);
}

.notification-dropdown::-webkit-scrollbar-thumb {
  background: var(--medium-gray);
  border-radius: 3px;
}

.notification-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--dark-gray);
}

/* Navigation Search Input Group */
.navbar .input-group {
  min-width: 250px;
}

@media (max-width: 768px) {
  .navbar .input-group {
    min-width: 200px;
    margin: 0.5rem 0;
  }
}
.navbar {
  background: transparent ;
  padding: 0.75rem 1.5rem;
  min-height: 50px;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.1rem 1rem;
  margin: 0 0.25rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background-color: var(--primary-light);
}

.navbar-nav .nav-link i {
  margin-right: 0.375rem;
  font-size: 0.875rem;
}

/* Dropdown Styles */
.dropdown-menu {
  border: 1px solid var(--medium-gray);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

/* ==========================================
   Modern Card Styles (Glassmorphism & Vuexy-inspired)
   ========================================== */
.card {
  border: 1px solid rgba(255, 107, 107, 0.1);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  background-color: var(--white);
  overflow: hidden;
  position: relative;
}
a{
    text-decoration: none;
    color: inherit;
}


.card:hover {
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.15);
  
  border-color: rgba(255, 107, 107, 0.2);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--medium-gray);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  background-color: var(--light-gray);
  border-top: 1px solid var(--medium-gray);
  padding: 1rem 1.5rem;
}

/* ==========================================
   Enhanced Button Styles (Vuexy-inspired)
   ========================================== */
.btn {
  font-weight: 500;
  border-radius: var(--border-radius-md);
 
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.875rem;
}

.btn i {
  margin-right: 0.05rem;
  font-size: 0.875rem;
}
    .paypal-button-container{
      width:100% !important;
    }
/* Primary Button */
.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-normal);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--dark-gray);
  color: var(--white);
}

/* Success Button */
.btn-success {
  background-color: var(--success);
  color: var(--white);
}

.btn-success:hover {
  background-color: #20A85C;
  color: var(--white);
}

/* Danger Button */
.btn-danger {
  background-color: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background-color: #D64545;
  color: var(--white);
}

/* Warning Button */
.btn-warning {
  background-color: var(--warning);
  color: var(--white);
}

.btn-warning:hover {
  background-color: #E6883A;
  color: var(--white);
}

/* Info Button */
.btn-info {
  background-color: var(--info);
  color: var(--white);
}

.btn-info:hover {
  background-color: #00B8CC;
  color: var(--white);
}
.inter{
    font-family: 'Inter', sans-serif;
}

/* Outline Buttons */
.btn-outline-primary {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: var(--white);
}

.btn-outline-secondary {
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  background-color: transparent;
}

.btn-outline-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* Button Sizes */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* ==========================================
   Form Styles
   ========================================== */
.form-control,
.form-select {
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius-md);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  background-color: var(--white);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
  outline: 0;
}

.form-label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.input-group-text {
  background-color: var(--light-gray);
  border: 1px solid var(--medium-gray);
  color: var(--text-muted);
}

/* ==========================================
   Badge Styles
   ========================================== */
.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: var(--border-radius-xl);
}
.badge-small {
  font-size: 0.55rem;
  font-weight: 500;
  padding: 0.275rem 0.55rem !important;
  border-radius: var(--border-radius-xl);
}
.badge.bg-primary {
  background-color: var(--primary-color) !important;
}

.badge.bg-success {
  background-color: var(--success) !important;
}

.badge.bg-danger {
  background-color: var(--danger) !important;
}

.badge.bg-warning {
  background-color: var(--warning) !important;
}

.badge.bg-info {
  background-color: var(--info) !important;
}

.badge.bg-light {
  background-color: var(--medium-gray) !important;
  color: var(--text-dark) !important;
}

/* ==========================================
   Table Styles
   ========================================== */
.table {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table thead th {
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--medium-gray);
  font-weight: 600;
  color: var(--text-dark);
  padding: 1rem;
  font-size: 0.875rem;
}

.table tbody tr {
  border-bottom: 1px solid var(--medium-gray);
  transition: all var(--transition-fast);
}

.table tbody tr:hover {
  background-color: var(--light-gray);
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

/* ==========================================
   Alert Styles
   ========================================== */
.alert {
  border: none;
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert-success {
  background-color: var(--success-light);
  color: var(--success);
}

.alert-danger {
  background-color: var(--danger-light);
  color: var(--danger);
}

.alert-warning {
  background-color: var(--warning-light);
  color: var(--warning);
}

.alert-info {
  background-color: var(--info-light);
  color: var(--info);
}

/* ==========================================
   Breadcrumb Styles
   ========================================== */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}

.breadcrumb-item {
  font-size: 0.875rem;
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: " ● ";
  color: var(--green-color);
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

/* Mobile breadcrumb truncation */
@media (max-width: 768px) {
  .breadcrumb {
    white-space: nowrap;
    overflow: hidden;
  }
  
  .breadcrumb-item {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
  
  .breadcrumb-item.active {
    max-width: 250px;
  }
  
  .breadcrumb-item + .breadcrumb-item::before {
    padding: 0 0.25rem;
    white-space: nowrap;
  }
}

/* ==========================================
   Pagination Styles
   ========================================== */
.pagination {
  gap: 0.25rem;
}

.page-link {
  border: 1px solid var(--medium-gray);
  color: var(--text-dark);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.page-link:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* ==========================================
   Modal Styles
   ========================================== */
.modal-content {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  border-bottom: 1px solid var(--medium-gray);
  padding: 1.25rem 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--medium-gray);
  padding: 1rem 1.5rem;
}

/* ==========================================
   Sidebar Styles (for dashboard)
   ========================================== */
.sidebar {
  background-color: var(--white);
  border-right: 1px solid var(--medium-gray);
  min-height: calc(100vh - 70px);
  padding: 1.5rem 0;
}

.sidebar .nav-link {
  color: var(--text-dark);
  padding: 0.75rem 1.5rem;
  margin: 0.125rem 1rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.sidebar .nav-link i {
  margin-right: 0.75rem;
  width: 1.25rem;
  text-align: center;
}

/* ==========================================
   Dashboard Card Styles
   ========================================== */
.dashboard-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 107, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 3px 6px rgba(255, 107, 107, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  overflow: hidden;
}

.dashboard-card:hover {
  box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
  border-color: var(--primary-color);
}

.dashboard-card .card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border: none;
  font-weight: 600;
}

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

.dashboard-stat {
  text-align: center;
  padding: 1.5rem;
}

.dashboard-stat .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.dashboard-stat .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-stat:hover .stat-number {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.dashboard-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-lg);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.dashboard-card .card-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.dashboard-card .card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Activity Timeline */
.activity-timeline {
  position: relative;
  padding-left: 2rem;
}

.activity-timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
}

.activity-item {
  position: relative;
  padding: 1rem 0;
  margin-left: 1rem;
}

.activity-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 1.25rem;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.activity-item:hover::before {
  transform: scale(1.3);
  transition: transform 0.3s ease;
}

/* Progress Bars */
.progress-modern {
  height: 8px;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.1);
  overflow: hidden;
}

.progress-modern .progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  transition: width 0.6s ease;
  position: relative;
}

.progress-modern .progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, .2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, .2) 50%,
    rgba(255, 255, 255, .2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 30px 30px;
  animation: move 2s linear infinite;
}

@keyframes move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 30px 30px;
  }
}

/* Badge Enhancements */
.badge {
  font-weight: 500;
  letter-spacing: 0.025em;
}

.badge-outline {
  background: transparent;
  border: 1px solid currentColor;
}

/* Table Enhancements */
.table-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-modern th {
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  border: none;
  padding: 1rem;
}

.table-modern td {
  padding: 0.875rem 1rem;
  border-color: rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}

.table-modern tbody tr:hover {
  background: rgba(255, 107, 107, 0.02);
}

/* Dropdown Enhancements */
.dropdown-menu-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 107, 0.1);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 9999 !important;
  min-width: 200px;
}

.dropdown-menu {
  z-index: 9999 !important;
}

.dropdown {
  position: relative;
}

.dropdown-item-modern {
  transition: all var(--transition-fast);
  border-radius: var(--border-radius-sm);
  margin: 0 0.0rem;
}

.dropdown-item-modern:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, 
    rgba(255, 107, 107, 0.1) 25%, 
    rgba(255, 107, 107, 0.2) 50%, 
    rgba(255, 107, 107, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--border-radius-sm);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Utility Classes */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-element {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Success Messages */
.success-pulse {
  animation: success-pulse 0.6s ease-out;
}

@keyframes success-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

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

::-webkit-scrollbar-track {
  background: rgba(255, 107, 107, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Expandable Search Styles */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-toggle {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.search-toggle:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.search-form {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1000;
  min-width: 300px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

.search-form .input-group {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.1);
  overflow: hidden;
}

.search-form .form-control {
  border: none;
  background: transparent;
  box-shadow: none;
}

.search-form .form-control:focus {
  background: transparent;
  box-shadow: none;
  border: none;
}

.search-form .btn {
  border: none;
  background: transparent;
}

.search-form .btn:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

/* Enhanced Dropdown Animations */
.dropdown-menu-modern {
  animation: dropdownFadeIn 0.3s ease-out;
  transform-origin: top;
}

@keyframes dropdownFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px) scaleY(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}



#sellerDropdown + .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  transform: rotate(45deg);
  border-radius: 2px;
}

#adminDropdown + .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
  transform: rotate(45deg);
  border-radius: 2px;
}

/* Mobile responsive search */
@media (max-width: 768px) {
  .search-form {
    min-width: 250px;
  }
  
  .search-container {
    position: static;
  }
  
  .search-form {
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    min-width: auto;
  }
}

/* Icon-only User Dropdown Styling */
#userDropdown {
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
}
#sellerDropdown {
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
}

#userDropdown:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  transform: scale(1.1);
}

#userDropdown i {
  font-size: 1.25rem;
}

/* Notification Icon Styling */
#notificationsDropdown {
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
}

#notificationsDropdown:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  transform: scale(1.1);
}

#notificationsDropdown i {
  font-size: 1.25rem;
}



@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

/* Enhanced Notification Dropdown */
.notification-dropdown {
  min-width: 320px;
  max-height: 400px;
  overflow-y: auto;
}

.notification-dropdown .dropdown-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.notification-dropdown .dropdown-item:hover {
  background: var(--primary-light);
}

/* Remove dropdown arrow for icon-only dropdowns */
#userDropdown.dropdown-toggle::after,
#notificationsDropdown.dropdown-toggle::after {
  display: none;
}

/* Spacing adjustments for right-aligned items */
.navbar-nav .nav-item:last-child {
  margin-left: 0rem;
}
.product-title-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3em; /* Fixed height for exactly 2 lines */
    line-height: 1.5;
}
.navbar-nav .nav-item:nth-last-child(2) {
  margin-right: 0rem;
}

/* Two-Tier Navigation System */
.navbar-top {
  padding: 0.1rem 0;
}

.navbar-categories {
  background: var(--secondary-light);
  padding: 0.05rem 0;
}

/* Search Bar Styling */
.search-form-top {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.search-input-group {
  border-radius: 5px;
  display: flex;
  width: 100%;
  -webkit-box-shadow: 0px 0px 5px 0px rgba(194,194,194,0.3);
  -moz-box-shadow: 0px 0px 5px 0px rgba(194,194,194,0.3);
  box-shadow: 0px 0px 5px 0px rgba(194,194,194,0.3);
}

.search-input-wrapper {
  flex: 13;
}

.input-search {
  padding: 10px;
  border-radius: 6px 0px 0px 6px;
  font-size: 0.9em;
  border: 0px;
  border-radius: 0px;
}

.input-search:focus {
  box-shadow: none;
  border: 0px;
  outline: none;
}

.input-search::placeholder {
  color: #6c757d;
}

.search-button-wrapper {
  flex: 2;
}

.btn-search {
  background: var(--green-color);
  width: 100%;
  color: #fff;
  border-radius: 0px 2px 2px 0px;
  padding: 2px;
  border: 0px;
  font-weight: 600;
  font-size: 0.9em;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-green{
  background: var(--green-color);
  color: #fff;
  border-radius: 5px;
  padding: 7px 15px;
  border: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: all var(--transition-fast);
}
.btn-green:hover {
  background: #20A85C;
  color: #fff;
}

.btn-orange{
  background: var(--orange-color);
  color: #fff;
  border-radius: 5px;
  padding: 7px 15px;
  border: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: all var(--transition-fast);
}
.btn-orange:hover {
  background: #e6883a;
  color: #fff;
}
.btn-gray{
  background: var(--gray-color);
  color: #fff;
  border-radius: 5px;
  padding: 7px 15px;
  border: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: all var(--transition-fast);
}
.btn-gray:hover {
  background: #6c757d;
  color: #fff;
}

.btn-search:hover {
  background: #fd734e;
  color: #fff;
}

/* Top Navigation Links */
.top-nav-links {
  display: flex;
  gap: 1.5rem;
}

.top-nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  padding: 0.5rem 0;
}

.top-nav-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Category Navigation */
.category-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-link {
  color: white !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  padding: 0.1rem 0.9rem !important;
  border-radius: 0;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.category-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.category-link.active {
  background: rgba(255, 255, 255, 0.15);
  border-bottom-color: white;
  color: white !important;
}

.category-link i {
  margin-right: 0.5rem;
  font-size: 0.875rem;
}

/* Language Dropdown */
.flag-icon {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}
.orange-text{
    color: var(--orange-color);
    font-weight: 600;
}
.green-text{
    color: var(--green-color);
    font-weight: 600;
}

/* User Navigation Section */
.user-nav-section {
  gap: 0.75rem;
}

.user-nav-section .dropdown {
  position: relative;
}

.user-nav-section .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  border-radius: 8px;
}

.user-nav-section .nav-link:hover {
  background: white;
  color: var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .search-container {
    margin: 1rem 0;
    order: 3;
  }
  
  .top-nav-links {
    display: none;
  }
  
  .category-nav {
    justify-content: center;
    text-align: center;
  }
  
  .category-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem;
  }
  
  .search-form-top {
    max-width: 100%;
  }
  
  .search-input-group {
    margin-left: 10px;
  }
  
  .navbar-top .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar-brand {
    margin-bottom: 1rem;
  }
}

@media (max-width: 992px) {
  .navbar-categories .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .category-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem;
  }
}

.dashboard-card .card-change {
  font-size: 0.875rem;
  font-weight: 500;
}

.dashboard-card .card-change.positive {
  color: var(--success);
}

.dashboard-card .card-change.negative {
  color: var(--danger);
}

/* ==========================================
   Custom Bootstrap Grid for 5 columns (like TeachersPayTeachers)
   ========================================== */
@media (min-width: 1200px) {
  .col-xl-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* ==========================================
   TeachersPayTeachers Style Book Cards
   ========================================== */
.tpt-book-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.tpt-book-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.tpt-book-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tpt-book-card:hover .tpt-book-image img {
  transform: scale(1.05);
}

.tpt-book-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

.tpt-book-placeholder i {
  font-size: 3rem;
  opacity: 0.7;
}

.tpt-book-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tpt-book-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 36px;
}

.tpt-seller-info {
  margin-bottom: 8px;
}

.tpt-seller-link {
  font-size: 12px;
  color: #666;
  text-decoration: none;
  font-weight: 500;
}

.tpt-seller-link:hover {
  color: #333;
  text-decoration: underline;
}

.tpt-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 4px;
}

.tpt-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tpt-price-current {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.tpt-price-free {
  font-size: 16px;
  font-weight: bold;
  color: #28a745;
}

.tpt-price-old {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.tpt-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tpt-stars {
  display: flex;
  gap: 1px;
  margin-bottom: 2px;
}

.tpt-star-filled {
  color: #ffc107;
  font-size: 12px;
}

.tpt-star-empty {
  color: #e0e0e0;
  font-size: 12px;
}

.tpt-rating-text {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
}

.tpt-action-form {
  margin-top: auto;
}

.tpt-add-to-cart-btn {
  width: 100%;
  background-color: #28a745;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tpt-add-to-cart-btn:hover {
  background-color: #218838;
}

.tpt-view-btn {
  display: block;
  width: 100%;
  background-color: #007bff;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.tpt-view-btn:hover {
  background-color: #0056b3;
  color: white;
  text-decoration: none;
}

.tpt-owned-badge {
  background-color: #17a2b8;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.tpt-admin-view, .tpt-seller-view {
  background-color: #f8f9fa;
  color: #6c757d;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tpt-book-image {
    height: 180px;
  }
  
  .tpt-book-title {
    font-size: 13px;
  }
  
  .tpt-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .tpt-rating {
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .tpt-book-image {
    height: 160px;
  }
}

/* ==========================================
   Original Book Card Styles (keeping for backward compatibility)
   ========================================== */
.book-cover-image {
  height: 250px;
  object-fit: cover;
}

.book-cover-placeholder {
  height: 250px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.book-cover-placeholder i {
  font-size: 3rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}
.dropdown-toggle::after{
    display: none !important;
}
.book-cover-placeholder:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.book-cover-placeholder:hover i {
  opacity: 1;
  transform: scale(1.1);
}

/* Small book placeholder for cards */
.book-cover-placeholder-sm {
  height: 150px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  border-bottom: 1px solid #e9ecef;
}

.book-cover-placeholder-sm i {
  font-size: 2rem;
  opacity: 0.7;
}

/* Extra small book placeholder for thumbnails */
.book-cover-placeholder-xs {
  height: 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  border-bottom: 1px solid #e9ecef;
}

.book-cover-placeholder-xs i {
  font-size: 1.5rem;
  opacity: 0.7;
}

.category-badge {
  background-color: var(--primary-color) !important;
  color: white !important;
}

/* Dynamic category colors will be handled via JavaScript */
.book-card {
  transition: all var(--transition-normal);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.book-card .card-img-top {
  transition: transform var(--transition-normal);
}

.book-card:hover .card-img-top {
  transform: scale(1.05);
}

.book-card .card-body {
  padding: 1.25rem;
}

.book-card .book-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.book-card .book-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.book-card .book-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.book-card .book-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* ==========================================
   Category Filter Styles
   ========================================== */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.category-filter-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--medium-gray);
  background-color: var(--white);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
}

.category-filter-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
}

.category-filter-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.category-filter-btn i {
  margin-right: 0.375rem;
}

.category-filter-btn .badge {
  margin-left: 0.375rem;
  font-size: 0.7rem;
}

/* ==========================================
   Search and Filter Styles
   ========================================== */
.search-filters {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.search-filters .form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ==========================================
   Footer Styles
   ========================================== */
.footer {
  background-color: var(--white);
  border-top: 1px solid var(--medium-gray);
  padding: 2rem 0;
  margin-top: auto;
}

/* ==========================================
   Hero Section Styles
   ========================================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
  padding: 4rem 2rem;
  border: 1px solid var(--medium-gray);
}

.hero-image-container {
  position: relative;
}

.hero-image-container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius-xl);
  opacity: 0.1;
  z-index: -1;
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary-light {
  background-color: var(--primary-light) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.shadow-custom {
  box-shadow: var(--shadow-md);
}

.rounded-custom {
  border-radius: var(--border-radius-lg);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .dashboard-card {
    padding: 1rem;
  }
  
  .category-filters {
    justify-content: center;
  }
  
  .search-filters {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .dashboard-card .card-value {
    font-size: 1.5rem;
  }
}

/* ==========================================
   Animation Classes
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==========================================
   Modern Loading States & Micro-interactions
   ========================================== */
/* Skeleton Loading */
.loading-skeleton {
  background: linear-gradient(90deg, var(--medium-gray) 25%, var(--light-gray) 50%, var(--medium-gray) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Button Click Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }
  20% {
    transform: scale(25, 25);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

.btn:focus:not(:active)::after {
  animation: ripple 0.6s ease-out;
}


/* ==========================================
   Modern Footer Styles
   ========================================== */
.footer-modern {
    background: #f8f9fa;
    padding: 60px 0 0 0;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    color: #2c2c2c;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-logo-text {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
}

.social-media-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #6c757d;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.newsletter-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.newsletter-heading {
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 20px;
    line-height: 1.4;
}

.newsletter-form {
    margin-top: 20px;
}

.newsletter-input-group {
    display: flex;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.newsletter-input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #2c2c2c;
    outline: none;
}

.newsletter-input::placeholder {
    color: #6c757d;
}

.newsletter-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.newsletter-btn:hover {
    background: #e11a1a;
    transform: translateY(-1px);
}

.footer-bottom {
    background: #ffffff;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #e9ecef;
}

.copyright-text {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
    font-weight: 400;
}

/* Responsive Footer Styles */
@media (max-width: 768px) {
    .footer-modern {
        padding: 40px 0 0 0;
        margin-top: 40px;
    }
    
    .newsletter-section {
        padding: 20px;
    }
    
    .newsletter-heading {
        font-size: 16px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-btn {
        border-radius: 0 0 8px 8px;
    }
    
    .social-media-links {
        justify-content: center;
        margin-top: 20px;
    }
    
    .footer-brand {
        text-align: center;
    }
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
  .navbar,
  .sidebar,
  .btn,
  .pagination {
    display: none !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid var(--medium-gray) !important;
  }
}

/* ==========================================
   Seller Dashboard Styles
   ========================================== */

/* Dashboard Cards */
.dashboard-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

/* Inline Statistics Styles - Like Reference Image */
.stats-inline-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.stats-inline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.stat-inline-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.stat-inline-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-inline-icon-sales {
    background: #6c5ce7;
}

.stat-inline-icon-revenue {
    background: #fd79a8;
}

.stat-inline-icon-views {
    background: #74b9ff;
}

.stat-inline-icon-books {
    background: #00b894;
}

.stat-inline-icon-customers {
    background: #e17055;
}

/* Gray versions for yesterday's stats */
.stat-inline-icon-gray {
    background: #b2b2b2;
}

.stat-inline-number {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--theme-color);
    line-height: 1;
}

.stat-inline-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-left: 0.25rem;
}

.stat-inline-separator {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 1rem;
}

.stat-comparison-inline {
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-comparison-inline.stat-up {
    color: var(--success);
}

.stat-comparison-inline.stat-down {
    color: var(--danger);
}

.stat-comparison-inline i {
    font-size: 0.8rem;
}

/* Responsive adjustments for inline stats */
@media (max-width: 768px) {
    .stats-inline-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stat-inline-separator {
        display: none;
    }
    
    .stat-inline-item {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .stat-inline-number {
        font-size: 1.5rem;
    }
    
    .stat-inline-label {
        font-size: 0.9rem;
    }
}

/* 5-column layout for statistics */
.col-md-2-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    display: flex;
}

@media (min-width: 768px) {
    .col-md-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (max-width: 767.98px) {
    .col-md-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .col-md-2-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Row alignment fixes */
.row.g-3 {
    align-items: stretch;
}

.row.g-3 > * {
    display: flex;
}

/* Dashboard Statistics (overall stats) */
.dashboard-stat {
    text-align: center;
    padding: 2rem 1rem;
}

.dashboard-stat .card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    font-size: 2rem;
}

.dashboard-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.dashboard-stat .stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card header styles */
.dashboard-card .card-header {
    background: linear-gradient(135deg, var(--secondary-light), var(--medium-gray));
    border-bottom: 1px solid var(--medium-gray);
    padding: 1rem 1.5rem;
}

.dashboard-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

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

/* Badge styles */
.badge {
    padding: 0.5rem 0.5rem;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Store header specific styles */
.store-theme .card-body {
    padding: 2rem;
}

/* Charts and tables */
.table-responsive {
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--text-muted);
    padding: 1rem 0.75rem;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
}

/* Quick actions */
.btn-lg {
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .dashboard-card .card-body {
        padding: 1rem;
    }
    
    .store-theme .card-body {
        padding: 1.5rem;
    }
}

/* Animation improvements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.dashboard-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Hover effects for interactive elements */
.btn:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Chart container styles */
.dashboard-card .card-body {
    padding: 1.5rem;
    position: relative;
}

.dashboard-card .card-body canvas {
    width: 100% !important;
    height: 300px !important;
    max-height: 350px;
    min-height: 250px;
}

#dailySalesChart {
    height: 300px !important;
    width: 100% !important;
}

#bookViewsChart {
    height: 280px !important;
    width: 100% !important;
}

/* Chart card specific styles */
.dashboard-card .card-header {
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.dashboard-card .card-header h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

.dashboard-card .card-body {
    padding: 1.5rem;
    position: relative;
}

/* Chart loading state */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.chart-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--theme-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/error message styles */
.alert {
    border-radius: var(--border-radius-md);
    border: none;
    box-shadow: var(--shadow-sm);
}

/* Store theme dynamic styles integration */
.theme-color {
    color: var(--primary-color) !important;
}

.bg-theme {
    background: var(--primary-gradient) !important;
}

.text-purple {
    color: #6f42c1 !important;
}

/* Additional dashboard enhancements */
.card.shadow {
    box-shadow: var(--shadow-md) !important;
}

.card-header.py-3 {
    padding: 1rem 1.5rem !important;
    background: var(--secondary-light);
    border-bottom: 1px solid var(--medium-gray);
}

.font-weight-bold {
    font-weight: 600 !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-gray-300 {
    color: #D1D5DB !important;
}

/* Button improvements */
.btn-primary {
    background: var(--green-color);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-color) 100%);
    transform: translateY(-1px);
}

.btn-info {
    background: linear-gradient(135deg, var(--info) 0%, #00B8CC 100%);
    border: none;
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #E6871E 100%);
    border: none;
    color: var(--white);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #1F9954 100%);
    border: none;
    color: var(--white);
}
.auth-modal .nav-link {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-modal .nav-link.active {
    background-color: var(--primary-color, #0d6efd);
    color: white !important;
}

.auth-modal .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.auth-modal .form-control:focus {
    border-color: var(--primary-color, #0d6efd);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.auth-modal .btn {
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-modal .btn-primary {
    background: linear-gradient(45deg, var(--primary-color, #0d6efd), #0056b3);
    border: none;
}

.auth-modal .btn-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    border: none;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.success-animation {
    animation: successPulse 1.5s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Compact star rating input */
.rating-input {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    font-size: 1rem;
    /* smaller icons */
    color: #adb5bd;
    /* muted */
    cursor: pointer;
    transition: color .15s ease-in-out, transform .15s ease-in-out;
}

.rating-input label:hover,
.rating-input label:focus {
    color: #ffc107;
    transform: translateY(-1px);
    outline: none;
}

.rating-input input[type="radio"]:checked~label {
    color: #adb5bd;
    /* reset others after checked */
}

/* Highlight stars up to selected */
#rate-1:checked~label[for="rate-1"],
#rate-2:checked~label[for="rate-1"],
#rate-2:checked~label[for="rate-2"],
#rate-3:checked~label[for="rate-1"],
#rate-3:checked~label[for="rate-2"],
#rate-3:checked~label[for="rate-3"],
#rate-4:checked~label[for="rate-1"],
#rate-4:checked~label[for="rate-2"],
#rate-4:checked~label[for="rate-3"],
#rate-4:checked~label[for="rate-4"],
#rate-5:checked~label {
    color: #ffc107;
}

.cursor-pointer {
    cursor: pointer;
}

/* Gallery thumbnail hover effects */
.gallery-thumb {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    border: 2px solid transparent;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--primary-color, #007bff);
    opacity: 0.9;
}

.gallery-thumb:active {
    transform: scale(0.98);
}

#main-gallery-image {
    transition: opacity 0.3s ease;
}

/* Summary panel spacing tweaks */
.product-summary .rating i { font-size: 0.9rem; }
.product-summary .rating { margin-bottom: 0.25rem; }
.product-summary .title { margin-bottom: 0.5rem; }
.product-summary .seller { margin-bottom: 0.75rem; }
.product-summary .price-block { margin-bottom: 0.5rem; }
.product-summary .save { margin-top: 0.25rem; }
.product-summary .actions { margin-top: 0.75rem; }

/* Custom tab styling - Orange active tabs */
.nav-tabs .nav-link.active {
    color: #ff6b35 !important;
    border-color: #dee2e6 #dee2e6 #fff !important;
    border-bottom-color: #fff !important;
    background-color: #fff;
}

.nav-tabs .nav-link:hover {
    color: #ff6b35 !important;
}

.nav-tabs .nav-link {
    color: #6c757d;
    transition: color 0.15s ease-in-out;
}

/* ==========================================
   View-Specific Styles (Moved from View Files)
   ========================================== */

/* Seller Profile Page Styles */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.btn-outline-success, .btn-outline-primary, .btn-outline-info, .btn-outline-warning {
    border-width: 1px;
    transition: all 0.2s ease;
}
.btn-outline-success:hover, .btn-outline-primary:hover, .btn-outline-info:hover, .btn-outline-warning:hover {
    transform: translateY(-1px);
}
.form-control {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
    border-color: #6c757d;
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.1);
}
.badge {
    font-weight: 500;
}

/* DMCA Page Styles */
.dmca-content h3 {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 0.5rem;
}
.dmca-content section {
    scroll-margin-top: 100px;
}
.dmca-content ol, .dmca-content ul {
    padding-left: 1.5rem;
}
.dmca-content li {
    margin-bottom: 0.5rem;
}
.alert-info {
    background-color: #e3f2fd;
    border-color: #90caf9;
    color: #0d47a1;
}
.orange-bg{
    background-color: var(--orange-color) !important;
    color: white !important;
  }
  .green-bg{
    background-color: var(--green-color) !important;
    color: white !important;
  }
.alert-info .alert-heading {
    color: #1976d2;
}

/* 404 Error Page Styles */
.error-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}
.error-code {
    font-size: 8rem;
    font-weight: bold;
    color: #6c757d;
    line-height: 1;
}
.error-message {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 2rem;
}
.error-icon {
    color: #dc3545;
    font-size: 4rem;
    margin-bottom: 1rem;
}
.btn-home {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
}

/* Help Page Styles */
.help-category {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.help-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

/* Privacy Page Styles */
.privacy-content h3 {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 0.5rem;
}
.privacy-content h5 {
    color: #6c757d;
    font-weight: 600;
}
.privacy-content section {
    scroll-margin-top: 100px;
}
.privacy-content ul {
    padding-left: 1.5rem;
}
.privacy-content li {
    margin-bottom: 0.5rem;
}

/* Terms Page Styles */
.terms-content h3 {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 0.5rem;
}
.terms-content section {
    scroll-margin-top: 100px;
}
.terms-content ul {
    padding-left: 1.5rem;
}
.terms-content li {
    margin-bottom: 0.5rem;
}

/* Error Page Global Styles */
body.error-page {
    background-color: #f8f9fa;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   Modern File Upload Components
   ========================================== */

.file-upload-modern {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafbfc;
    position: relative;
    cursor: pointer;
}

.file-upload-modern:hover {
    border-color: var(--primary-color);
    background: rgba(253, 115, 78, 0.05);
}

.file-upload-modern.dragover {
    border-color: var(--primary-color);
    background: rgba(253, 115, 78, 0.1);
    transform: scale(1.02);
}

.file-upload-modern .upload-icon {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.file-upload-modern .upload-text {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.file-upload-modern .upload-hint {
    color: #adb5bd;
    font-size: 0.875rem;
}

.file-upload-modern input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.file-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

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

.file-preview-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
}

.file-preview-item .file-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: var(--primary-color);
    font-size: 2rem;
}

.file-preview-item .remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.file-preview-item .remove-file:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.file-preview-item .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.toast {
        min-width: 300px;
    }

    .toast.success {
        border-left: 4px solid #28a745;
    }

    .toast.error {
        border-left: 4px solid #dc3545;
    }

    .toast.info {
        border-left: 4px solid #17a2b8;
    }

    .toast.warning {
        border-left: 4px solid #ffc107;
    }

    .cart-item-preview {
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }

    .cart-item-preview:last-child {
        border-bottom: none;
    }

    .offcanvas-footer {
        background-color: #f8f9fa;
    }

    /* Old Price Styling */
    .old-price {
        font-size: 0.9em;
        opacity: 0.8;
    }

    .price-container {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .price-display {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    /* Responsive price display */
    @media (max-width:800px){
           .mobile-w100{
            width: 100%!important;
        }
    }
    @media (max-width: 576px) {
        .mobile-w100{
            width: 100%!important;
        }

        .price-container,
        .price-display {
            flex-direction: column;
            align-items: flex-start;
        }

        .old-price {
            margin-right: 0 !important;
            margin-bottom: 2px;
        }
    }

    /* Dynamic Header Styles */
    .navbar-top {
        position: relative;
        transition: all 0.3s ease-in-out;
        background-color: transparent !important;
        backdrop-filter: none;
        border-bottom: 1px solid transparent;
        top: 0;
    }

    .navbar-top.header-scrolled {
        background-color: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        width: 100%;
    }

    /* Ensure content doesn't jump when header becomes fixed */
    body.header-fixed-active {
        padding-top: 90px;
        transition: padding-top 0.3s ease-in-out;
    }

    /* Smooth transitions for all header elements */
    .navbar-brand,
    .navbar-nav,
    .search-container {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Improved logo transition when scrolled */
    .navbar-top.header-scrolled .navbar-brand img {
        height: 50px !important;
        transition: height 0.3s ease;
    }

    /* Wishlist Badge Styling */
    .wishlist-badge {
        font-size: 0.6rem;
        min-width: 1.2rem;
        height: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

  