/* AgroConnect - Custom CSS for Modern Design with FaunaFlora styles */

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

/* CSS Variables for consistent theming */
:root {
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --primary-300: #86efac;
  --primary-400: #4ade80;
  --primary-500: #22c55e;
  --primary-600: #16a34a;
  --primary-700: #15803d;
  --primary-800: #166534;
  --primary-900: #14532d;
  
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: #94a3b8;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;
  
  --accent-50: #fef3c7;
  --accent-100: #fde68a;
  --accent-200: #fcd34d;
  --accent-300: #fbbf24;
  --accent-400: #f59e0b;
  --accent-500: #d97706;
  --accent-600: #b45309;
  --accent-700: #92400e;
  --accent-800: #78350f;
  --accent-900: #451a03;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px 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);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Figtree', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1D1F1E;
  background: white;
  min-height: 100vh;
}

/* Dark Mode Base Styles */
body.dark {
  color: #f1f5f9;
  background: #0f172a;
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
  color: #f9fafb;
}

/* Ensure gradient extends to footer */
html, body {
  height: 100%;
}

/* Dark mode gradient override for homepage only */
.dark body:has(.hero) {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* Force dark background for stats section in dark mode */
.dark .py-20.lg\\:py-32.bg-gradient-to-br {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* Keep light mode gradient for homepage */
body:has(.hero) {
  background: linear-gradient(135deg, #f0fdf4 0%, #fef3c7 50%, #dcfce7 100%) !important;
}

/* Dark mode cards */
.dark .card {
  background: #1e293b;
  border-color: #334155;
}

/* Dark mode body background */
.dark body {
  background-color: #0f172a !important;
}

/* Dark mode sections */
.dark section {
  background: #0f172a;
}

/* Override gradient sections in dark mode */
.dark .py-20 {
  background-color: #0f172a !important;
}

.dark .card-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-bottom-color: #334155;
}

.dark .card-body {
  background: #1e293b;
}

.dark .card-footer {
  background: #0f172a;
  border-top-color: #334155;
}

/* Dark mode text colors */
.dark .text-gray-900 {
  color: #f9fafb;
}

.dark .text-gray-700 {
  color: #d1d5db;
}

.dark .text-gray-600 {
  color: #9ca3af;
}

.dark .text-gray-500 {
  color: #6b7280;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-900);
  letter-spacing: -0.025em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Enhanced button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-600) 0%, var(--secondary-700) 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--secondary-700) 0%, var(--secondary-800) 100%);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-600);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--primary-600);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary-600);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Enhanced card styles */
.card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--secondary-200);
  transition: all 0.3s ease;
  overflow: visible;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-200);
}

.card-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--secondary-200);
  background: linear-gradient(135deg, var(--secondary-50) 0%, white 100%);
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--secondary-200);
  background: var(--secondary-50);
}

/* Enhanced form styles */
.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
  color: #1f2937;
}

/* Styled selects to match design */
.form-select,
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  color: #1f2937;
}

.form-select:hover {
  border-color: var(--primary-400);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
  transform: translateY(-1px);
}

.form-select option {
  color: var(--secondary-800);
  font-size: 0.95rem;
}

/* Notification list items */
.notification-item {
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.notification-item.unread {
  background-color: rgba(34, 197, 94, 0.08);
}

.notification-item.read {
  background-color: rgba(15, 23, 42, 0.03);
  opacity: 0.8;
}

.form-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
  position: relative;
}

/* Checkbox styling */
input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #15803d;
  cursor: pointer;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--secondary-700);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Enhanced navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--secondary-200);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

/* Navbar for main pages - transparent to show gradient */
.navbar-main-page {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Navbar for other pages - white background in light mode */
.navbar-other-pages {
  background: white !important;
}

/* Dark mode navigation - solid background for all pages */
.dark .navbar-main-page,
.dark .navbar-other-pages {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom-color: #334155 !important;
}

/* Navbar scroll effect */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--primary-200);
}

/* Ensure navbar stays on top */
.navbar {
  will-change: transform;
  transform: translateZ(0);
}

/* Navbar transitions */
.navbar {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              background-color 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

/* Mobile navbar adjustments */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-600);
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--primary-700);
  transform: scale(1.05);
}

.nav-link {
  color: var(--secondary-700);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary-600);
  background: var(--primary-50);
  transform: translateY(-1px);
}

/* Enhanced hero section - FaunaFlora style */
.hero {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #065f46 100%);
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 80px);
  padding-top: 3rem;
  padding-bottom: 6rem;
}

/* FaunaFlora inspired button styles */
.btn-fauna {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 200ms ease;
}

.btn-fauna-primary {
  color: white;
  background-color: #15803d;
  border: 1px solid #15803d;
}

.btn-fauna-primary:hover {
  background-color: #166534;
  border-color: #166534;
}

.btn-fauna-outline {
  color: #15803d;
  background-color: transparent;
  border: 1px solid #15803d;
}

.btn-fauna-outline:hover {
  color: white;
  background-color: #15803d;
}

/* Ensure hero extends to footer without white bar */
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-50) 50%, var(--primary-100) 100%);
  z-index: -1;
}

/* Remove any white background from main content */
main {
  background: transparent !important;
}

/* Specific fix for homepage gradient */
body:has(.hero) {
  background: linear-gradient(135deg, #f0fdf4 0%, #fef3c7 50%, #dcfce7 100%) !important;
}

body:has(.hero) main {
  background: linear-gradient(135deg, #f0fdf4 0%, #fef3c7 50%, #dcfce7 100%) !important;
}

/* Force gradient on homepage */
.hero + * {
  background: linear-gradient(135deg, #f0fdf4 0%, #fef3c7 50%, #dcfce7 100%) !important;
}

/* Remove any white backgrounds */
.card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  right: -10%;
  bottom: -50%;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 60px,
      rgba(255, 255, 255, 0.03) 60px,
      rgba(255, 255, 255, 0.03) 62px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 60px,
      rgba(255, 255, 255, 0.02) 60px,
      rgba(255, 255, 255, 0.02) 62px
    );
  opacity: 1;
  z-index: 0;
  animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

/* Animated blobs for CTA section */
@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Enhanced statistics cards */
.stat-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--secondary-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item {
  transition: all 0.3s ease;
  padding: 1.5rem;
  border-radius: 1rem;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a7f3d0 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
}

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

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-900);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--secondary-600);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Enhanced product cards */
.product-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--secondary-200);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-200);
}

.product-image {
  height: 12rem;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  position: relative;
  overflow: hidden;
}

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

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

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--primary-600);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
}

.product-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--secondary-700);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-content {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-900);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-600);
  margin-bottom: 0.5rem;
}

.product-unit {
  color: var(--secondary-600);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Enhanced dashboard styles */
.dashboard-header {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.dashboard-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.dashboard-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.dashboard-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Enhanced table styles */
.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.table th {
  background: linear-gradient(135deg, var(--secondary-50) 0%, var(--secondary-100) 100%);
  color: var(--secondary-700);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--secondary-200);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--secondary-200);
  color: var(--secondary-800);
}

.table tbody tr:hover {
  background: var(--primary-50);
}

/* Enhanced status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pending {
  background: var(--accent-100);
  color: var(--accent-800);
}

.status-active {
  background: var(--primary-100);
  color: var(--primary-800);
}

.status-completed {
  background: var(--secondary-100);
  color: var(--secondary-800);
}

/* Enhanced loading states */
.loading {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--secondary-300);
  border-radius: 50%;
  border-top-color: var(--primary-600);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Enhanced animations */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 0;
  }
  
  .dashboard-title {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .product-card {
    margin-bottom: 1rem;
  }
}

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

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

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

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

/* Enhanced focus states */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

/* Enhanced shadows for depth */
.shadow-soft {
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.shadow-medium {
  box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-strong {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15), 0 2px 10px -2px rgba(0, 0, 0, 0.1);
}

/* Enhanced gradients */
.gradient-primary {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-700) 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-700) 100%);
}

/* Enhanced text styles */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding: 0.2em 0 0.25em 0;
  line-height: 1.4;
}

/* Enhanced spacing utilities */
.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

/* Enhanced border utilities */
.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, var(--primary-500), var(--accent-500)) 1;
}

/* Enhanced backdrop blur */
.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Enhanced glass effect */
.glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Mobile chatbot optimizations */
@media (max-width: 640px) {
  #assistant-bubble {
    bottom: 1rem !important;
    right: 1rem !important;
  }
  
  #assistant-panel {
    max-height: calc(100vh - 6rem) !important;
    width: calc(100vw - 2rem) !important;
    max-width: none !important;
  }
  
  #assistant-messages {
    max-height: 12rem !important;
  }
  
  #chat-pane {
    max-height: calc(100vh - 8rem) !important;
  }
  
  /* Ensure chatbot doesn't interfere with mobile navigation */
  #assistant-bubble {
    z-index: 30 !important;
  }
  
  /* Make text more readable on small screens */
  #assistant-panel .text-sm {
    font-size: 0.875rem !important;
  }
  
  #assistant-panel .text-xs {
    font-size: 0.75rem !important;
  }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 768px) {
  #assistant-panel {
    width: 24rem !important;
    max-width: calc(100vw - 4rem) !important;
  }
}

/* Payment success page mobile optimizations */
@media (max-width: 640px) {
  .payment-success-container {
    padding: 1rem !important;
  }
  
  .payment-success-card {
    margin: 0 !important;
    border-radius: 1rem !important;
  }
  
  .payment-success-header {
    padding: 1.5rem 1rem !important;
  }
  
  .payment-success-content {
    padding: 1rem !important;
  }
  
  .payment-success-buttons {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  .payment-success-buttons a {
    width: 100% !important;
    justify-content: center !important;
  }
  
  .payment-success-details {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  .payment-success-steps {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}

/* Payment success page tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
  .payment-success-container {
    padding: 2rem !important;
  }
  
  .payment-success-details {
    grid-template-columns: 1fr 1fr !important;
  }
  
  .payment-success-steps {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Notifications panel responsive optimizations */
@media (max-width: 640px) {
  #notifications-dropdown {
    width: calc(100vw - 2rem) !important;
    max-width: 20rem !important;
    margin: 0.5rem !important;
  }
  
  #notifications-dropdown .flex {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  #notifications-dropdown .flex > div {
    margin-top: 0.5rem !important;
  }
  
  #notifications-dropdown button {
    width: 100% !important;
    text-align: center !important;
    padding: 0.5rem !important;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  #notifications-dropdown {
    width: 22rem !important;
  }
}

@media (min-width: 769px) {
  #notifications-dropdown {
    width: 24rem !important;
  }
}

/* Hide arrows from number inputs */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

input[type=number] {
  -moz-appearance: textfield; /* Firefox */
  appearance: none;
}
