/* static/css/styles.css */
.hover-underline:hover {
  text-decoration: underline !important;
}

/* ==========================================================================
   1. CSS VARIABLES (Theming Engine) - Travellore Palette
   ========================================================================== */
:root {
  /* --- Brand Colors --- */
  /* Primary: Deep Tropical Green (Buttons, Links, Primary Highlights) */
  --primary-color: #0a4d4e;
  --primary-hover: #063d3e;

  /* Secondary: Ocean Turquoise (Secondary Actions & Highlights) */
  --secondary-color: #00a3c4;
  --secondary-hover: #0082a6;

  /* State Colors (Success, Info, Danger) */
  --success-color: #198754; /* Green */
  --info-color: #00a3c4; /* Turquoise */
  --danger-color: #dc3545; /* Red */

  /* Accent: Vibrant Gold / Sunny Yellow (Stars, Highlights, Active Indicators) */
  --accent-color: #f5b000;

  /* Neutral Colors */
  --text-dark: #1a252c; /* Slate Black */
  --text-muted: #6c757d;
  --bg-light: #f8f9fa; /* Off-White / Soft Cream */

  /* --- Typography --- */
  /* Standard "System Stack" - fast loading, looks native on Mac/Windows/Android */
  --font-main:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

/* ==========================================================================
   2. GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: #ffffff;
}

/* ==========================================================================
   3. COMPONENT: Feature Icons (Homepage)
   ========================================================================== */
.feature-icon-box {
  /* Using the variable ensures it matches your brand automatically */
  background-color: var(--primary-color);

  /* Subtle gradient for depth */
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0)
  );

  color: white;
  width: 60px;
  height: 60px;
  border-radius: 0.5rem; /* Equivalent to rounded-3 */

  /* Centering Logic (Flexbox) */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Spacing */
  margin: 0 auto 1rem auto;
}

/* ==========================================================================
   4. UTILITIES (Helpers)
   ========================================================================== */
.object-fit-cover {
  object-fit: cover;
}

.bg-dark-overlay {
  background-color: rgba(10, 77, 78, 0.6); /* Tinted with Deep Tropical Green */
  backdrop-filter: blur(2px);
}

/* Hover Animations */
.transition-hover {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.transition-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Gallery Zoom Effect */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hover-zoom {
  transition: transform 0.5s ease;
}

.gallery-item:hover .hover-zoom {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10, 77, 78, 0.95));
  color: white;
  padding: 20px;
  font-weight: bold;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Feature Icons */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0)
  );
}

/* Navbar Customization */
.navbar {
  background-color: #ffffff !important;
  background-image: linear-gradient(180deg, #ffffff, #ffffff) !important;
  border-bottom: 2px solid var(--bg-light);
}

/* Navbar Text Color */
.navbar .navbar-brand,
.navbar .nav-link {
  color: var(--primary-color) !important; /* Deep Tropical Green */
  font-weight: 600;
}

.navbar .nav-link:hover {
  color: var(--secondary-color) !important; /* Ocean Turquoise on hover */
}

/* Adjust the User Dropdown Toggle if present */
.navbar .dropdown-toggle {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.navbar .dropdown-toggle:hover {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   5. CUSTOM BUTTON CLASSES
   ========================================================================== */

.btn-custom-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-custom-secondary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  color: white;
}

.btn-custom-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
  color: white;
}

.btn-custom-info {
  background-color: var(--info-color);
  border-color: var(--info-color);
  color: white;
}

.btn-custom-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
  color: white;
}

/* ==========================================================================
   6. CUSTOM BADGE CLASSES
   ========================================================================== */

.badge-joiner {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.badge-date {
  background-color: var(--info-color) !important;
  color: white !important;
}

.badge-private {
  background-color: var(--success-color) !important;
  color: white !important;
}

/* ==========================================================================
   7. LAYOUT & NAVBAR OVERRIDES
   ========================================================================== */

/* Padding to prevent Fixed Navbar from covering content */
body {
  padding-top: 50px;
}

/* Smart Navbar Transition */
#mainNavbar {
  transition: top 0.3s ease-in-out;
}

/* Mobile Bottom Nav Padding */
@media (max-width: 991px) {
  body {
    padding-bottom: 70px;
  }
  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive th,
  .table-responsive td,
  .table-responsive tr {
    display: block;
  }

  .table-responsive thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .table-responsive tr {
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    padding: 1rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .table-responsive td {
    border: none;
    position: relative;
    padding-left: 0;
    text-align: left;
    padding: 0.25rem 0;
  }

  .table-responsive td:last-child {
    margin-top: 10px;
    text-align: center;
    display: grid;
  }
}

/* ==========================================================================
   8. HOME PAGE ANIMATIONS & OVERRIDES
   ========================================================================== */

.animate-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}
.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Swiper Dot Colors */
.swiper-pagination-bullet {
  background: white;
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  background: var(--accent-color); /* Vibrant Gold Dot */
  opacity: 1;
}

/* ==========================================================================
   9. TIMELINE COMPONENT (Homepage)
   ========================================================================== */

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: #e9ecef;
  z-index: 0;
}

.timeline .flex-shrink-0 {
  position: relative;
  z-index: 1;
}

.letter-spacing-2 {
  letter-spacing: 2px;
}

/* ==========================================================================
   10. ADMIN & PRINT STYLES
   ========================================================================== */

@media (max-width: 768px) {
  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive th,
  .table-responsive td,
  .table-responsive tr {
    display: block;
  }
  .table-responsive thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  .table-responsive tr {
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    padding: 1rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
  .table-responsive td {
    border: none;
    position: relative;
    padding-left: 0;
    text-align: left;
    padding: 0.25rem 0;
  }
  .table-responsive td:last-child {
    margin-top: 10px;
    text-align: center;
    display: grid;
  }
}

.ai-note-truncate {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  cursor: default;
  transition: all 0.2s ease;
}
.ai-note-truncate:hover {
  white-space: normal;
  overflow: visible;
  background-color: var(--bg-light);
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 4px;
  border-radius: 4px;
}

@media print {
  body * {
    visibility: hidden;
  }
  #ticketCard,
  #ticketCard * {
    visibility: visible;
  }
  #ticketCard {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  .d-print-none {
    display: none !important;
  }
  .bg-light {
    background-color: #f8f9fa !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .bg-primary {
    background-color: var(--primary-color) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .text-white {
    color: white !important;
  }
}
