/* Modern Gracato Design System */
:root {
  --primary-color: #EA4D8E;
  --primary-hover: #d43a7e;
  --bg-color: #f4f6f9;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
  --success: #10b981;
  --danger: #ef4444;
  --font-main: 'Barlow', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
}

body {
  background-color: var(--bg-color);
  font-family: var(--font-main);
  color: var(--text-dark);
  margin: 0;
  padding-bottom: 100px;
  line-height: 1.6;
}

/* Background Image Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('img/dashboard.jpg') no-repeat center center fixed;
  background-size: cover;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

.container-padding {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Premium Cards */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.2s ease;
}

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

.logo {
  max-width: 180px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

h4 {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

h5 {
  font-weight: 600;
  color: var(--text-dark);
}

.badge-custom {
  background-color: #ECFDF5;
  color: var(--success);
  padding: 0.5em 1em;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9em;
}

/* Modern Form Elements */
.form-control {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.2s;
  background-color: #f9fafb;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(234, 77, 142, 0.2);
  outline: none;
  background-color: white;
}

/* Buttons */
.btn-orange {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(234, 77, 142, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-orange:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(234, 77, 142, 0.4);
}

/* Navbar */
.navbar-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 0;
}

/* Product Cards */
.product-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.product-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  line-height: 1.25;
  font-weight: 400;
  display: block;
}

/* Carrito Sticky */
.carrito-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid #f3f4f6;
}

.carrito-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f9fafb;
}

.remove-btn {
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s;
}

.remove-btn:hover {
  color: var(--danger);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Login Page Specific */
.login-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-page .card {
  max-width: 400px;
  width: 100%;
}

/* Dashboard Utils */
.category-title {
  position: relative;
  display: inline-block;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Glassmorphism Classes */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom transitions */
.transition-smooth {
  transition: all 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Status colors */
.status-pendiente {
  color: #f59e0b;
  font-weight: 700;
}

.status-en-proceso {
  color: #3b82f6;
  font-weight: 700;
}

.status-cancelado {
  color: var(--danger);
  font-weight: 700;
}

.status-entregado {
  color: var(--success);
  font-weight: 700;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  appearance: textfield;
}

/* Utility to ensure cards stay aligned */
.product-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.action-area {
  margin-top: auto;
}

.btn-add {
  background: #f3f4f6;
  color: var(--text-dark);
  border: none;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  font-weight: 600;
  transition: 0.2s;
}

.btn-add:hover {
  background: var(--primary-color);
  color: white;
}