/* Reset and base styles */
:root {
  --primary: #4f46e5;
  --secondary: #818cf8;
  --accent: #10b981;
  --custom-icon: #4a4a4a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: #f4f4f4;
  padding: 1rem;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

main {
  padding-top: 4rem; /* Adjust based on header height */
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  /* position: fixed; */
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
}

.page {
  display: none;
}

.page.active {
  display: block;
}
/* Add these transitions for smooth hover effects */
.transition {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Error message styles */
#login-error {
  transition: all 0.3s ease;
}
.skeleton-loader {
  display: inline-block;
  background: #e5e7eb;
  border-radius: 4px;
  color: transparent;
  position: relative;
  overflow: hidden;
}

.skeleton-loader::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

#more-dropdown {
  transition: opacity 150ms ease-in-out;
  opacity: 0;
}

#more-dropdown:not(.hidden) {
  opacity: 1;
}

@media (max-width: 768px) {
  /* Add touch-friendly padding on mobile */
  #more-dropdown a {
    padding: 0.75rem 1rem;
  }
}
/* Add to your main CSS file */
.buy-now-btn {
  transition: all 0.3s ease;
}

.buy-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  #mobile-nav-toggle {
    display: none;
  }

  .hidden {
    display: flex;
  }

  .md:hidden {
    display: none;
  }
}

@media (max-width: 767px) {
  #mobile-nav-toggle {
    display: block;
  }

  .hidden {
    display: none;
  }

  .md:hidden {
    display: block;
  }
}
.admin-page {
  min-height: 80vh; /* You can set this to any desired height */
}

.service-icon {
  font-size: 3rem;
  line-height: 1;
}
/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Animation Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scale-up {
  animation: scaleUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-delay-1 {
  animation-delay: 0.2s;
}

.animate-delay-2 {
  animation-delay: 0.4s;
}

.animate-delay-3 {
  animation-delay: 0.6s;
}

/* Hover Effects */
.feature-card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Step Animation */
@keyframes stepPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.step-icon {
  transition: transform 0.3s ease;
}

.step-icon:hover {
  animation: stepPulse 0.8s ease;
}

/* Ensure responsive table behavior */
@media (max-width: 640px) {
  .admin-container table th:nth-child(2),
  .admin-container table td:nth-child(2) {
    display: none;
  }
}

@media (max-width: 768px) {
  .admin-container table th:nth-child(4),
  .admin-container table td:nth-child(4) {
    display: none;
  }
}

/* Add transition effects */
#password-success,
#password-error {
  transition: opacity 0.3s ease;
}

.fade-out {
  opacity: 0 !important;
}
/* Custom scrollbar for terms modal */
#terms-modal::-webkit-scrollbar {
  width: 8px;
}

#terms-modal::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#terms-modal::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#terms-modal::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Terms Section Styling */
#terms ul li::marker {
  color: #3b82f6; /* Makes bullet points blue */
}

#terms h3 {
  color: #1f2937; /* Dark gray for headings */
}

#terms .border-b {
  border-color: #e5e7eb; /* Light gray border */
}

.toggle-form-btn {
  transition: all 0.2s ease;
}

.toggle-form-btn:hover {
  transform: translateY(-1px);
}
#success-popup {
  transition: opacity 0.3s ease;
}

#success-popup.hidden {
  opacity: 0;
  pointer-events: none;
}
.tab-btn.active {
  border-bottom: 2px solid #3b82f6;
  font-weight: 600;
  color: #1e40af;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* styles.css */

/* Container grid */
#country-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem; /* 12px */
  padding: 1rem; /* 16px */
}

/* Each country “card” */
.country-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-color: #ffffff;
  border: 1px solid #e2e8f0; /* gray-200 */
  border-radius: 0.5rem; /* 8px */
  padding: 0.75rem; /* 12px */
  cursor: pointer;

  transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

/* Hover & focus states */
.country-item:hover,
.country-item:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Country name styling */
.country-item .name {
  font-size: 1rem; /* 16px */
  font-weight: 600; /* semibold */
  color: #2d3748; /* gray-800 */
  margin-bottom: 0.25rem; /* 4px */
}

/* Country code styling */
.country-item .code {
  font-size: 0.875rem; /* 14px */
  color: #4a5568; /* gray-600 */
}
