/**
 * Modern JetBlue Virtual Airline Theme
 * Maintaining original structure with contemporary design
 */

/* General Settings */
body {
  font-size: 0.875rem;
  font-weight: 400;
  font-family: "Inter", "Segoe UI", "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a1a;
  background-color: #00205B;
  background-image: url("https://crew.vjblue.com/public/disposable/jbu-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Generic Link Style */
a {
  text-decoration: none;
  color: #00205B;
  font-weight: 500;
  transition: color 0.3s ease;
}
a:hover {
  text-decoration: none;
  color: #0066CC;
  font-weight: 500;
}
a:active {
  text-decoration: none;
  color: #00205B;
  font-weight: 500;
}

/* Card Style */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 32, 91, 0.1);
  border-radius: 16px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 32, 91, 0.1),
    0 2px 4px -1px rgba(0, 32, 91, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 
    0 10px 25px -3px rgba(0, 32, 91, 0.15),
    0 4px 6px -2px rgba(0, 32, 91, 0.05);
}

.card .card-header {
  background: linear-gradient(135deg, #00205B 0%, #003875 100%);
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid rgba(0, 32, 91, 0.1);
  padding: 1.25rem 1.5rem;
}

.card .card-footer {
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  border-top: 1px solid rgba(0, 32, 91, 0.1);
  padding: 1rem 1.5rem;
}

.card .card-header h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.card .card-header a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
  transition: all 0.3s ease;
}

.card .card-header a:hover {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transform: none;
}

.card .card-header a:active {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
}

/* Modal Style */
.modal .modal-header {
  background: linear-gradient(135deg, #00205B 0%, #003875 100%);
  color: #ffffff;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid rgba(0, 32, 91, 0.1);
}

.modal .modal-body {
  background: #ffffff;
  color: #1a1a1a;
}

.modal .modal-footer {
  color: #ffffff;
  font-weight: 500;
  background: linear-gradient(135deg, #00205B 0%, #003875 100%);
  border-radius: 0 0 12px 12px;
  border-top: 1px solid rgba(0, 32, 91, 0.1);
}

/* Accordion Style */
.accordion .accordion-button {
  box-shadow: none;
  color: #ffffff !important;
  background: linear-gradient(135deg, #00205B 0%, #003875 100%) !important;
  border-radius: 8px !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #003875 0%, #00205B 100%) !important;
}

.accordion .collapsed {
  background: linear-gradient(135deg, rgba(0, 32, 91, 0.8) 0%, rgba(0, 56, 117, 0.8) 100%) !important;
  color: #e2e8f0 !important;
}

.accordion .accordion-item {
  background: transparent !important;
  border: 1px solid rgba(0, 32, 91, 0.1);
  border-radius: 8px !important;
  margin-bottom: 0.5rem;
}

.accordion .accordion-body {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  color: #1a1a1a;
}

/* NavBar Style */
#Dispo_NavBar {
  background: rgba(0, 32, 91, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 6px -1px rgba(0, 32, 91, 0.1),
    0 2px 4px -1px rgba(0, 32, 91, 0.06);
  margin-bottom: 1rem;
  border-radius: 0 0 16px 16px;
  position: relative;
  z-index: 1000;
}

#Dispo_NavBar a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

#Dispo_NavBar a:hover {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
}

#Dispo_NavBar a:active {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
}

#Dispo_NavBar .dropdown-menu {
  background: rgba(0, 32, 91, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 25px -3px rgba(0, 32, 91, 0.3);
  z-index: 1050;
  position: absolute;
}

#Dispo_NavBar .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 8px;
}

#Dispo_NavBar .dropdown-item {
  font-size: 0.875rem;
  color: #e2e8f0;
  transition: all 0.3s ease;
}

/* SideBar Style */
#Dispo_SideBar .offcanvas {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  min-width: 280px;
  width: auto;
  height: 96vh;
  border-radius: 0 16px 16px 0;
  border: 1px solid rgba(0, 32, 91, 0.1);
}

#Dispo_SideBar .offcanvas .dropdown-menu {
  background: transparent;
  border: none;
  box-shadow: none;
}

#Dispo_SideBar .dropdown-menu a:hover {
  background: rgba(0, 32, 91, 0.1);
  color: #00205B;
  border-radius: 8px;
}

#Dispo_SideBar .dropdown-item {
  font-size: 0.875rem;
  color: #4a5568;
  transition: all 0.3s ease;
}

/* Navigation Pills Style */
.nav-pills .nav-link {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 32, 91, 0.7) 0%, rgba(0, 56, 117, 0.7) 100%) !important;
  border-radius: 12px !important;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 0 0.25rem;
}

.nav-pills .nav-link:hover {
  box-shadow: 0 4px 12px rgba(0, 32, 91, 0.3);
}

.nav-pills .active {
  color: #ffffff;
  background: linear-gradient(135deg, #00205B 0%, #003875 100%) !important;
  box-shadow: 0 4px 12px rgba(0, 32, 91, 0.4);
}

/* Navigation Tabs Style (when used in a card) */
.card .nav-tabs .nav-item .nav-link {
  background: transparent;
  color: #e2e8f0;
  border: none;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
}

.card .nav-tabs .nav-item .active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* Navigation Tabs Style (when used in a card's body) */
.card .card-body .nav-tabs .nav-item .nav-link {
  background: transparent;
  color: #00205B;
  border: 1px solid rgba(0, 32, 91, 0.2);
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
}

.card .card-body .nav-tabs .nav-item .active {
  background: rgba(0, 32, 91, 0.05);
  color: #00205B;
  border-bottom: 2px solid #00205B;
  font-weight: 600;
}

/* Clock Style */
#clock {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(0, 32, 91, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

/* Footer Style */
#footer {
  font-size: 0.875rem;
}

#footer .card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 16px 16px 0 0;
}

#footer .card a {
  text-decoration: none;
  color: #00205B;
  font-weight: 500;
  transition: all 0.3s ease;
}

#footer .card a:hover {
  text-decoration: none;
  color: #0066CC;
  font-weight: 500;
}

#footer .card a:active {
  text-decoration: none;
  color: #00205B;
  font-weight: 500;
}

/* Pagination Style */
.pag-items {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  color: #00205B !important;
  border: 1px solid rgba(0, 32, 91, 0.2) !important;
  transition: background-color 0.3s ease;
}

.pag-items:hover {
  background: rgba(0, 32, 91, 0.1) !important;
}

.pag-items-curr {
  background: linear-gradient(135deg, #00205B 0%, #003875 100%) !important;
  border-radius: 8px;
  color: #ffffff !important;
  border: 1px solid #00205B !important;
  box-shadow: 0 4px 12px rgba(0, 32, 91, 0.3);
}

/* Overflow-Auto Content Default Max Height */
.overflow-auto {
  max-height: 30vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 32, 91, 0.3) transparent;
}

.overflow-auto::-webkit-scrollbar {
  width: 6px;
}

.overflow-auto::-webkit-scrollbar-track {
  background: transparent;
}

.overflow-auto::-webkit-scrollbar-thumb {
  background: rgba(0, 32, 91, 0.3);
  border-radius: 3px;
}

.overflow-auto::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 32, 91, 0.5);
}

/* Definitions below this line should not be altered with */
/* Only change them if you really need something that special */

/* Select2 Specific Fixes */
.select2-container {
  margin-top: 2px;
}

.input-group .select2-container {
  margin: 0px;
  width: auto;
  flex: 1 1 auto;
}

.input-group .select2-container .select2-selection--single {
  height: 100%;
  line-height: inherit;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border: 1px solid rgba(0, 32, 91, 0.2);
}

/* phpVMS LiveMap */
.map-info-box {
  position: absolute;
  bottom: 0;
  padding: 20px;
  height: 100px;
  z-index: 9999;
  background-color: rgba(232, 232, 232, 0.9);
}

.map-info-label {
  display: block;
  padding: 5px;
  background-color: rgba(232, 232, 232, 0.9);
}
/* Hover an image */
.HoverImage { position: relative; }
.HoverImage a { position: absolute; bottom: 0; left: 2px; z-index: 1978; }
.HoverImage img { display: none; }
.HoverImage:hover img { 
  display: block; 
  opacity: 0.99; 
  z-index: 1978;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 32, 91, 0.3);
}

/* Image Switcher and Base Fade Effect */
#stage a {
  position: relative;
}

#stage a img {
  border: none;
  background: transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
}

#stage a:nth-of-type(1) {
  animation-name: fader;
  animation-duration: 10s;
  z-index: 2100;
}

#stage a:nth-of-type(2) {
  z-index: 2200;
  display: none;
}

@keyframes fader {
  0% { opacity: 0; transform: scale(1.05); }
  25% { opacity: 1; transform: scale(1); }
  75% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}

/* Card Body Icon Rotate */
.card-body .rotate {
  z-index: 8;
  float: right;
  height: 100%;
}

.card-body .rotate i {
  color: rgba(0, 32, 91, 0.15);
  position: absolute;
  left: 0;
  left: auto;
  right: -10px;
  bottom: 0;
  display: block;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  transition: all 0.3s ease;
}

.card-body .rotate:hover i {
  color: rgba(0, 32, 91, 0.25);
  transform: rotate(-45deg);
}

/* Fixed Height Images */
.img-h20 { width: auto; height: 20px; border-radius: 4px; }
.img-h25 { width: auto; height: 25px; border-radius: 4px; }
.img-h30 { width: auto; height: 30px; border-radius: 4px; }
.img-h35 { width: auto; height: 35px; border-radius: 4px; }
.img-h40 { width: auto; height: 40px; border-radius: 6px; }
.img-h45 { width: auto; height: 45px; border-radius: 6px; }
.img-h50 { width: auto; height: 50px; border-radius: 6px; }
.img-h60 { width: auto; height: 60px; border-radius: 8px; }
.img-h70 { width: auto; height: 70px; border-radius: 8px; }
.img-h80 { width: auto; height: 80px; border-radius: 8px; }
.img-h90 { width: auto; height: 90px; border-radius: 10px; }
.img-h100 { width: auto; height: 100px; border-radius: 10px; }
.img-h125 { width: auto; height: 125px; border-radius: 12px; }
.img-h150 { width: auto; height: 150px; border-radius: 12px; }
.img-h175 { width: auto; height: 175px; border-radius: 14px; }
.img-h200 { width: auto; height: 200px; border-radius: 16px; }

/* Max Height Images */
.img-mh20 { width: auto; max-height: 20px; border-radius: 4px; }
.img-mh25 { width: auto; max-height: 25px; border-radius: 4px; }
.img-mh30 { width: auto; max-height: 30px; border-radius: 4px; }
.img-mh35 { width: auto; max-height: 35px; border-radius: 4px; }
.img-mh40 { width: auto; max-height: 40px; border-radius: 6px; }
.img-mh45 { width: auto; max-height: 45px; border-radius: 6px; }
.img-mh50 { width: auto; max-height: 50px; border-radius: 6px; }
.img-mh60 { width: auto; max-height: 60px; border-radius: 8px; }
.img-mh70 { width: auto; max-height: 70px; border-radius: 8px; }
.img-mh80 { width: auto; max-height: 80px; border-radius: 8px; }
.img-mh90 { width: auto; max-height: 90px; border-radius: 10px; }
.img-mh100 { width: auto; max-height: 100px; border-radius: 10px; }
.img-mh125 { width: auto; max-height: 125px; border-radius: 12px; }
.img-mh150 { width: auto; max-height: 150px; border-radius: 12px; }
.img-mh175 { width: auto; max-height: 175px; border-radius: 14px; }
.img-mh200 { width: auto; max-height: 200px; border-radius: 16px; }

/* This needs to be defined for full screen image bg to work */
html {
  height: 100%;
  margin: 0;
}

/* Fixed Footer */
#page-container {
  position: relative;
  min-height: 100vh;
}

#page-contents {
  width: 98% !important;
  padding-bottom: 2rem;
}

#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2rem;
}

/* Mobile Device Compatibility */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .card {
    border-radius: 12px;
    margin: 0.5rem;
  }
  
  #Dispo_NavBar {
    border-radius: 0 0 12px 12px;
  }
  
  #Dispo_SideBar .offcanvas {
    min-width: 260px;
    border-radius: 0 12px 12px 0;
  }
}

/* Modern enhancements */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #00205B;
  outline-offset: 2px;
  border-radius: 4px;
}