/* Global Styles */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

/* Sticky Footer Layout */
html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  margin-top: auto !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 1rem;
  margin-bottom: 3rem;
}

.hero-section h1 {
  color: white !important;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Feature Cards */
.feature-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.125);
}

.feature-card:hover {}

.feature-icon {
  color: var(--primary-color);
}

/* Step Cards */
.step-card {
  padding: 1.5rem;
}

.step-number .badge {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* CTA Section */
.cta-section {
  background: var(--light-color);
  border-radius: 1rem;
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Cards */
.card {
  border: none;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.card:hover {}

.card-header {
  border-radius: 1rem 1rem 0 0 !important;
  border-bottom: none;
}

/* Buttons */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: #0b5ed7;
  border-color: #0b5ed7;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* Forms */
.form-control {
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--dark-color);
}

/* City Suggestions Dropdown */
.suggestions-dropdown {
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border: 1px solid #dee2e6;
}

.suggestion-item {
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f8f9fa;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.bg-light {
  background-color: #f8f9fa !important;
  color: var(--primary-color);
}

.suggestion-item:first-child {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.suggestion-item:last-child {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* Position relative for autocomplete */
.position-relative {
  position: relative;
}

/* Alerts */
.alert {
  border-radius: 0.5rem;
  border: none;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}

/* Project Cards */
.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {}

/* Status Colors */
.status-planning { background-color: var(--info-color) !important; }
.status-active { background-color: var(--success-color) !important; }
.status-completed { background-color: var(--secondary-color) !important; }
.status-cancelled { background-color: var(--danger-color) !important; }

/* Empty State */
.empty-state {
  padding: 3rem 1rem;
}

.empty-state i {
  opacity: 0.5;
}

/* Footer */
footer {
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem !important;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .feature-card {
    margin-bottom: 1rem;
  }
}

/* Animations */
/* Removed fade-in animations as requested */

/* Hover Effects */
.hover-shadow:hover {}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #0b5ed7;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }

/* Entity Cards */
.entity-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 1px solid #e9ecef;
  background: #fff;
}

.entity-card:hover {}

.entity-type-badge .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.entity-details {
  line-height: 1.4;
}

.entity-notes {
  background: #f8f9fa;
  padding: 0.5rem;
  border-radius: 0.25rem;
  border-left: 3px solid #dee2e6;
}

.entity-footer {
  font-size: 0.8rem;
}
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-info { background-color: var(--info-color) !important; }

/* Itinerary Add Activity Buttons */
.itinerary-header .btn-primary {
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.itinerary-body .btn-outline-primary {
  font-weight: 500;
  padding: 0.375rem 0.75rem;
}

.empty-itinerary .btn-lg {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.empty-itinerary .btn-lg:hover {}

/* Modal Stability Fixes */
.modal {
  /* Prevent any hover effects from interfering */
  pointer-events: auto !important;
}

.modal.show {
  /* Ensure modal stays visible when shown */
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-backdrop {
  /* Ensure backdrop is stable */
  pointer-events: auto !important;
}

/* Prevent card hover effects from interfering with modals */
.modal-open .card:hover {
  transform: none !important;
}

.modal-open .feature-card:hover {
  transform: none !important;
}

/* Ensure form elements in modal are stable */
.modal input,
.modal select,
.modal textarea {
  pointer-events: auto !important;
}

/* Prevent any CSS transitions from interfering with modal display */
.modal * {
  transition: none !important;
}

.modal .modal-content {
  transition: none !important;
}

/* Additional modal stability fixes */
.modal-open {
  overflow: hidden !important;
}

.modal-open body {
  overflow: hidden !important;
}

/* Ensure modal backdrop is stable */
.modal-backdrop.show {
  opacity: 0.5 !important;
}

/* Prevent any hover effects when modal is open */
body.modal-open .card:hover,
body.modal-open .feature-card:hover,
body.modal-open .step-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Ensure modal inputs are always interactive */
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  outline: 2px solid #007bff !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}
