/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* With Propshaft, CSS files are automatically included from the assets/stylesheets directory */

:root {
  --font-family-base: "SF Pro Text", "Trebuchet MS", Arial, sans-serif;
  --font-family-monospace: ui-monospace, SFMono-Regular, "SF Mono", Menlo,
    monospace;
}

body {
  font-family: var(--font-family-base);
}

/* Glass effect for backgrounds */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Icon glow effect */
.icon-glow {
  filter: drop-shadow(0 0 8px rgba(79, 70, 229, 0.3));
}

/* Floating animation for elements */
.floating-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Pulse ring animation */
.pulse-ring {
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Subtle icon bounce animation */
.icon-bounce {
  animation: bounce-subtle 2s infinite;
}

@keyframes bounce-subtle {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}

/* Flash message animations */
@keyframes slide-in-right {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in-right {
  animation: slide-in-right 0.3s ease-out forwards;
}

/* Flash message auto-dismiss animation */
@keyframes fade-out {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

.animate-fade-out {
  animation: fade-out 0.3s ease-in forwards;
}

/* Enhanced flash message styling */
.flash-message {
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.flash-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

/* Flash message type-specific styling */
.flash-message[class*="alert-success"] {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
  border-color: #22c55e !important;
}

.flash-message[class*="alert-error"] {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
  border-color: #ef4444 !important;
}

.flash-message[class*="alert-warning"] {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
  border-color: #f59e0b !important;
}

.flash-message[class*="alert-info"] {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
  border-color: #3b82f6 !important;
}

/* Dark mode flash message type-specific styling */
.dark .flash-message[class*="alert-success"] {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%) !important;
  border-color: #10b981 !important;
}

.dark .flash-message[class*="alert-error"] {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%) !important;
  border-color: #f87171 !important;
}

.dark .flash-message[class*="alert-warning"] {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%) !important;
  border-color: #fbbf24 !important;
}

.dark .flash-message[class*="alert-info"] {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
  border-color: #60a5fa !important;
}

/* Flash message icon enhancements */
.flash-message svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Flash message text enhancements */
.flash-message h3 {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.flash-message p {
  line-height: 1.5;
  font-weight: 500;
}

/* Flash message type-specific enhancements */
.flash-success {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #22c55e;
}

.flash-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #ef4444;
}

.flash-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
}

.flash-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #3b82f6;
}

/* Dark mode flash message enhancements */
.dark .flash-success {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border-color: #10b981;
}

.dark .flash-error {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  border-color: #f87171;
}

.dark .flash-warning {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
  border-color: #fbbf24;
}

.dark .flash-info {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-color: #60a5fa;
}

/* Progress bar animation */
@keyframes progress-bar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

.animate-progress-bar {
  animation: progress-bar linear forwards;
}

/* Flash progress animation */
@keyframes flash-progress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Logo styles */
.logo-font {
  font-family: 'Major Mono Display', monospace;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.logo-large {
  font-size: 1.5rem;
}

.logo-purple {
  color: #667eea;
}

/* Modern Modal Styles */
.modal-box {
  @apply shadow-2xl;
}

.modal-backdrop {
  @apply bg-gray-900/50 backdrop-blur-sm;
}

/* Modal animations */
dialog[open] {
  animation: modal-fade-in 0.2s ease-out;
}

dialog[open] .modal-box {
  animation: modal-slide-in 0.3s ease-out;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-slide-in {
  from {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Modal scrollbar styling */
.modal-box::-webkit-scrollbar {
  width: 6px;
}

.modal-box::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.modal-box::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

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

.turbo-progress-bar{
  background-color: #4f46e5;
}

/* Ensure Font Awesome icons display properly */
.fas, .far, .fal, .fab {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

/* Sidebar icon fixes */
.sidebar-icon i {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Progress Indicator Styles */
.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e5e7eb;
  z-index: 1;
}

.progress-steps .progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  z-index: 2;
}

.progress-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 0.5rem;
}

.progress-step-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 3px solid #e5e7eb;
  background: white;
}

.progress-step.active .progress-step-circle {
  border-color: #4f46e5;
  background: #4f46e5;
  color: white;
}

.progress-step.completed .progress-step-circle {
  border-color: #10b981;
  background: #10b981;
  color: white;
}

.progress-step-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
}

.progress-step.active .progress-step-label {
  color: #4f46e5;
}

.progress-step.completed .progress-step-label {
  color: #10b981;
}

/* Enhanced Country Search Styles */
.country-search-container {
  position: relative;
}

.country-search-input {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.95) 100%);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(79, 70, 229, 0.1);
}

.country-search-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.country-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.country-dropdown-item:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.country-flag {
  width: 1.5rem;
  height: 1rem;
  margin-right: 0.75rem;
  border-radius: 2px;
  object-fit: cover;
}

/* Travel Date Selection Styles */
.date-picker-container {
  position: relative;
  margin: 1.5rem 0;
}

.date-input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .date-input-group {
    grid-template-columns: 1fr;
  }
  
  .country-search-input {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
  
  .country-dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .country-flag {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.date-input {
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  background: white;
}

.date-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  outline: none;
}

.date-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #92400e;
}

/* Enhanced CTA Buttons */
.cta-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.875rem;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

.cta-primary::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;
}

.cta-primary:hover::before {
  left: 100%;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.cta-secondary {
  background: white;
  border: 2px solid #4f46e5;
  color: #4f46e5;
  padding: 0.75rem 1.5rem;
  border-radius: 0.875rem;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .cta-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

.cta-secondary:hover {
  background: #4f46e5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
}

/* Card Enhancement */
.enhanced-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.95) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .enhanced-card {
    padding: 1.5rem;
  }
}

.enhanced-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-color: rgba(79, 70, 229, 0.2);
}

/* Animated Loading States */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
    transform: scale(1.02);
  }
}

/* Custom border width for step indicators */
.border-3 {
  border-width: 3px;
}

/* Responsive text adjustments */
@media (max-width: 640px) {
  .visa-progress-container .text-xs {
    font-size: 0.7rem;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .visa-progress-container .text-xs {
    font-size: 0.65rem;
    line-height: 1.1;
  }
}