/* Custom Styles and Animations */

/* Color Variables */
:root {
  --primary: #DC2626;
  --secondary: #F59E0B;
  --neutral: #374151;
  --light: #FEF7ED;
  --success: #10B981;
  --bg: #FFFFFF;
  --text: #1F2937;
  --border: #E5E7EB;
}


/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .navbar-brand {
  margin-right: 0;
  margin-left: auto;
}

[dir="rtl"] .dropdown-menu {
  right: auto;
  left: 0;
}

/* Global Styles */
* {
  transition: all 0.3s ease;
}

body {
  background-color: var(--bg);
  color: var(--text);
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease forwards;
}

.animate-fadeInRight {
  animation: fadeInRight 0.6s ease forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.5s ease forwards;
}

.animate-pulse-custom {
  animation: pulse 2s infinite;
}

/* Custom Components */
.hero-overlay {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.8) 0%, rgba(245, 158, 11, 0.6) 100%);
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #B91C1C 100%);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #D97706 100%);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
}

/* Navigation Dropdown */
.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Form Styles */
.form-input {
  background-color: var(--bg);
  border: 2px solid var(--border);
  color: var(--text);
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Menu Item Card */
.menu-item {
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.menu-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}





/* Progress Bar */
.progress-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  height: 4px;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .mobile-menu.active {
    transform: translateX(0);
  }
}

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

::-webkit-scrollbar-track {
  background: var(--border);
}

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

::-webkit-scrollbar-thumb:hover {
  background: #B91C1C;
}

/* Badge Styles */
.badge-veg {
  background-color: var(--success);
  color: white;
}

.badge-non-veg {
  background-color: var(--primary);
  color: white;
}

/* Notification Styles */
.notification {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

/* Counter Animation */
.counter {
  font-variant-numeric: tabular-nums;
}