/* Modern Minimalist Design System */
:root {
  --primary: #13234B;
  --primary-light: #1a2f5c;
  --primary-dark: #0e1a3a;
  --secondary: #64748b;
  --success: #00D8A3;
  --success-dark: #00b894;
  --warning: #f59e0b;
  --danger: #ef4444;
  --light: #f8fafc;
  --dark: #1e293b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --gradient-primary: linear-gradient(135deg, #18C3D5 0%, #00D8A3 100%);
  --gradient-success: linear-gradient(135deg, #00D8A3 0%, #00b894 100%);
  --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --gradient-info: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --gradient-dark: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  min-height: 100vh;
}

/* Alert Styles */
.alert {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow);
  font-weight: 500;
  margin: 1rem auto;
  max-width: 600px;
  text-align: center;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-left: 4px solid #10b981;
}

.alert-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border-left: 4px solid #3b82f6;
}

.alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-left: 4px solid #f59e0b;
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

.alert-secondary {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #475569;
  border-left: 4px solid #64748b;
}

/* Centered alerts for specific contexts */
.container .alert {
  margin: 1rem auto;
}

/* Toast-like notifications */
.alert-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Delivery banner */
.delivery-banner {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: none;
  border-left: 6px solid #00D8A3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.delivery-banner .delivery-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 20px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.delivery-banner .delivery-title {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.delivery-banner .delivery-text {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.4;
}

.delivery-banner .delivery-content {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  text-align: left;
  height: 100%;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .delivery-banner .delivery-content { 
    text-align: center; 
    justify-content: center;
    flex-direction: column;
    gap: 12px;
  }
  
  .delivery-banner .delivery-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* WhatsApp floating button - global */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  text-decoration: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: white;
}

.whatsapp-icon { display: flex; align-items: center; justify-content: center; }

@media (max-width: 768px) {
  .whatsapp-float { right: 16px; bottom: 16px; }
  .whatsapp-btn { width: 52px; height: 52px; }
}

/* Gradient accent elements */
.gradient-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-gradient {
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-weight: 600;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #16b0c7 0%, #00c49a 100%);
  transform: translateY(-1px);
  color: white;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--dark);
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.card-header {
  background: white;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  padding: 1.25rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* Buttons */
.btn {
  border-radius: var(--radius);
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f1f3a 0%, #16a8c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(19, 35, 75, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(19, 35, 75, 0.3);
}

.btn-outline-danger {
  background: transparent;
  border: 2px solid var(--danger);
  color: var(--danger);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #d63031 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
  border: none;
  color: #212529;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #e0a800 0%, #ff8f00 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #00bcd4 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-info:hover {
  background: linear-gradient(135deg, #138496 0%, #00acc1 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(23, 162, 184, 0.3);
}

/* Forms */
.form-control {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: white;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
  outline: none;
}

.form-label {
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* Navbar */
.navbar {
  background: white !important;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark) !important;
}

.nav-link {
  color: var(--secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
  background: var(--light);
}

.navbar-text {
  color: var(--secondary) !important;
  font-weight: 500;
  margin-bottom: 0 !important;
}

.navbar-nav .nav-item {
  display: flex;
  align-items: center;
}

.navbar-nav .nav-link {
  padding: 0.5rem 0.75rem !important;
  margin: 0;
}

/* Alerts */
.alert {
  border: none;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-weight: 500;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Tables */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  background: var(--light);
  font-weight: 600;
  color: var(--dark);
  border: none;
  padding: 1rem;
}

.table td {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: #fafbfc;
}

/* Stats Cards */
.text-bg-primary {
  background: var(--gradient-dark) !important;
  color: white !important;
}

.text-bg-success {
  background: var(--gradient-primary) !important;
  color: white !important;
}

.text-bg-info {
  background: var(--gradient-primary) !important;
  color: white !important;
}

.text-bg-dark {
  background: var(--gradient-dark) !important;
  color: white !important;
}

/* Product Cards */
.card-img-top {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  object-fit: contain;
  background: #f8f9fa;
  max-height: 200px;
}

/* Logo Sizes */
.brand-logo {
  height: 44px;
  width: auto;
}

/* Auth logo styles moved to Auth Styles section below */

/* Responsive */
@media (max-width: 768px) {
  .card-body {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .table th,
  .table td {
    padding: 0.75rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  animation: fadeIn 0.3s ease;
}

/* Additional modern styles */
.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.border-0 {
  border: none !important;
}

.form-control-lg {
  padding: 1rem 1.25rem;
  font-size: 1rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

.fw-semibold {
  font-weight: 600 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.min-vh-100 {
  min-height: 100vh !important;
}

/* Auth pages specific */
.auth-logo {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Product cards enhancement */
.card-img-top {
  transition: none;
}

/* Stats cards enhancement */
.text-bg-primary .card-body,
.text-bg-success .card-body,
.text-bg-info .card-body,
.text-bg-dark .card-body {
  padding: 2rem;
}

.display-6 {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Table enhancements */
.table-responsive {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Accordion styling */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) !important;
  margin-bottom: 1rem;
}

.accordion-button {
  background: white;
  border: none;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background: var(--light);
  color: var(--primary);
}

.accordion-body {
  padding: 1.5rem;
}

/* Loading states */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Focus states */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 3px rgb(19 35 75 / 0.1);
}

/* Custom spacing */
.p-4 {
  padding: 2rem !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.mb-4 {
  margin-bottom: 2rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

/* Responsive improvements */
@media (max-width: 576px) {
  .auth-logo {
    height: 48px;
  }
  
  .display-6 {
    font-size: 2rem;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
}

/* Product image square container and zoom */
.product-image-container {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: #f8f9fa;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Navbar enhancements */
.navbar .nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
  position: relative;
}
.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -6px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}
.navbar .btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.navbar .btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(19, 35, 75, 0.3);
}

.navbar .btn-gradient {
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar .btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(19, 35, 75, 0.4);
}

/* Auth Styles */
.auth-card {
  animation: slideInUp 0.6s ease-out;
  transform: translateY(0);
}

.auth-logo-container {
  padding: 2rem 0 1rem 0;
  margin-bottom: 1rem;
}

.auth-logo {
  height: 100px;
  width: auto;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.auth-title {
  animation: fadeInDown 0.8s ease-out 0.2s both;
}

.auth-subtitle {
  animation: fadeInDown 0.8s ease-out 0.4s both;
}

.auth-form {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.auth-input {
  transition: all 0.3s ease;
  border: 2px solid var(--border);
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(19, 35, 75, 0.15);
  transform: translateY(-2px);
}

.auth-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(19, 35, 75, 0.3);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-btn::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 0.5s;
}

.auth-btn:hover::before {
  left: 100%;
}

.auth-link {
  transition: all 0.3s ease;
  position: relative;
}

.auth-link:hover {
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.auth-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
}

.auth-link:hover::after {
  width: 100%;
  left: 0;
}

.auth-alert {
  animation: shake 0.5s ease-in-out;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Admin Dashboard Styles */
.admin-dashboard {
  padding: 0;
}

.dashboard-header {
  /* Uniforme con .page-header */
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-title {
  /* Tamaño coherente con títulos de página */
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.3px;
}

.dashboard-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.25rem;
}

.dashboard-date .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

/* Stat Cards */
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.stat-card-primary::before {
  background: var(--gradient-primary);
}

.stat-card-success::before {
  background: var(--gradient-success);
}

.stat-card-info::before {
  background: var(--gradient-info);
}

.stat-card-warning::before {
  background: var(--gradient-warning);
}

.stat-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: white;
}

.stat-card-primary .stat-card-icon {
  background: var(--gradient-primary);
}

.stat-card-success .stat-card-icon {
  background: var(--gradient-success);
}

.stat-card-info .stat-card-icon {
  background: var(--gradient-info);
}

.stat-card-warning .stat-card-icon {
  background: var(--gradient-warning);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--secondary);
  margin: 0.5rem 0;
  font-weight: 500;
}

.stat-change {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Modern Cards */
.modern-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
}

.modern-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modern-card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modern-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  display: flex;
  align-items: center;
}

.modern-card-body {
  padding: 1.5rem;
}

/* Status Cards */
.status-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.status-pending {
  border-color: #f59e0b;
}

.status-confirmed {
  border-color: #3b82f6;
}

.status-delivered {
  border-color: #00D8A3;
}

.status-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
}

.status-pending .status-icon {
  background: var(--gradient-warning);
}

.status-confirmed .status-icon {
  background: var(--gradient-info);
}

.status-delivered .status-icon {
  background: var(--gradient-success);
}

.status-content {
  flex: 1;
}

.status-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1;
}

.status-label {
  font-size: 1rem;
  color: var(--secondary);
  margin: 0.25rem 0;
  font-weight: 500;
}

.status-detail {
  font-size: 0.875rem;
  color: var(--secondary);
  opacity: 0.8;
}

/* Metric Cards */
.metric-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.metric-primary {
  border-color: var(--primary);
}

.metric-success {
  border-color: var(--success);
}

.metric-info {
  border-color: #3b82f6;
}

.metric-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
}

.metric-primary .metric-icon {
  background: var(--gradient-primary);
}

.metric-success .metric-icon {
  background: var(--gradient-success);
}

.metric-info .metric-icon {
  background: var(--gradient-info);
}

.metric-content {
  flex: 1;
}

.metric-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--secondary);
  margin: 0.25rem 0 0 0;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard-title {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .status-number {
    font-size: 1.5rem;
  }
  
  .metric-number {
    font-size: 1.5rem;
  }
  
  .status-card,
  .metric-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Page Entry Animations */
.page-container {
  animation: pageSlideIn 0.6s ease-out;
}

.page-header {
  animation: fadeInDown 0.8s ease-out 0.2s both;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.page-header h1,
.page-header h2,
.page-header h3 {
  color: #ffffff;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.3px;
}

.page-header .page-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin: 0.25rem 0 0 0;
}

@media (max-width: 768px) {
  .page-header {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
  }
  .page-header h1,
  .page-header h2,
  .page-header h3 {
    font-size: 1.25rem;
  }
}

.page-content {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Navigation Animations */
.navbar {
  animation: slideInDown 0.5s ease-out;
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(19, 35, 75, 0.1), transparent);
  transition: left 0.5s;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  transform: translateY(-2px);
  color: var(--primary) !important;
}

.nav-link.active {
  transform: translateY(-1px);
}

/* Card Animations */
.card {
  animation: cardSlideIn 0.6s ease-out;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Table Animations */
.table {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.table tbody tr {
  animation: rowSlideIn 0.5s ease-out;
  animation-fill-mode: both;
}

.table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.table tbody tr:nth-child(5) { animation-delay: 0.5s; }

.table tbody tr:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Form Animations */
.form-control {
  transition: all 0.3s ease;
}

.form-control:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(19, 35, 75, 0.15);
}

/* Button Animations */
.btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::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 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Badge Animations */
.badge {
  animation: badgePulse 2s ease-in-out infinite;
}

/* Alert Animations */
.alert {
  animation: alertSlideIn 0.5s ease-out;
}

/* Modal Animations */
.modal {
  animation: modalFadeIn 0.3s ease-out;
}

.modal-dialog {
  animation: modalSlideIn 0.3s ease-out;
}

/* Dropdown Animations */
.dropdown-menu {
  animation: dropdownSlideIn 0.2s ease-out;
}

.dropdown-item {
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  transform: translateX(5px);
  background: var(--light);
}

.dropdown-item.active {
  background: var(--primary);
  color: white;
}

.dropdown-toggle::after {
  transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Stock dropdown specific styles */
#stockDropdown .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0;
}

#stockDropdown .dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0;
}

#stockDropdown .dropdown-item:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  transform: translateX(8px);
}

#stockDropdown .dropdown-item.active {
  background: var(--gradient-primary);
  color: white;
}



/* Layout para footer sticky */
html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  padding-top: 72px; /* espacio para navbar fixed */
}

main {
  flex: 1;
  margin-bottom: 2rem;
}

/* Footer styles */
.footer {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  border-top: 1px solid var(--border) !important;
  margin-top: 3rem;
}

/* Margen adicional para páginas de productos */
.page-content {
  margin-bottom: 2rem;
}

/* Margen para las tarjetas de productos */
.product-card {
  margin-bottom: 1.5rem;
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-muted) !important;
}

.footer i {
  color: var(--primary);
}

/* Marca en footer */
.footer .text-primary {
  color: var(--primary) !important;
}

.footer .opacity-75 {
  opacity: .75;
}

/* Category filter styles */
.category-filter-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.category-filter-card .form-control {
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.category-filter-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(19, 35, 75, 0.15);
}

.category-filter-card .btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.category-filter-card .btn-outline-secondary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-1px);
}

/* Product card category badge */
.product-card .badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
}

/* Filter info text */
.filter-info {
  background: var(--light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

/* Pagination Animations */
.pagination {
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.page-link {
  transition: all 0.3s ease;
}

.page-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Additional Keyframes */
@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rowSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

