/* ============================================
   RELEASE DASHBOARD - Light Theme
   WCAG 2.1 AA Compliant Colors
   ============================================ */

html,
body {
  font-family: system-ui, 'Segoe UI', 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  color: #212529;
  background-color: #f0f2f5;
  min-height: 100vh;
}

/* Prevent background scrolling when modals are open */
body.modal-open {
  overflow: hidden !important;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

a {
  color: #0056b3;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #003d82;
  text-decoration: underline;
}

/* Focus indicators for accessibility - only show on keyboard navigation */
*:focus-visible {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}

/* Remove default focus outline for mouse clicks */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to main content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0056b3;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
}

.navbar-toggler i {
  color: #0056b3;
  font-size: 1.25rem;
}

.navbar-toggler:hover i {
  color: #003d82;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar {
  justify-content: space-between;
  position: relative;
  align-items: center;
  padding: 0 8px 0 8px;
}


/* Ensure navbar brand and controls have fixed widths for perfect centering */
.navbar-brand {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-controls {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.header-btn {
  color: #0056b3;
  font-size: 1.25rem;
  padding: 8px;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-btn:hover,
.header-btn:focus-visible {
  color: #003d82;
  transform: scale(1.1);
}

#navbar_nav {
  justify-content: center;
  flex: 1;
}

#navbar_nav .btn-group {
  display: flex;
  justify-content: center;
}

.navbar-brand img {
  height: 7.5rem;
  width: auto;
  object-fit: contain;
}

.navbar_heading {
  font-size: clamp(1.25rem, 4vw, 2rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-check {
  height: 50px;
  width: 200px;
}

.nav-link {
  color: #ffffff;
  background-color: #007acc;
  margin: 5px;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.nav-link.dropdown-item {
  margin: 2px 0;
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid transparent;
}

.nav-link.dropdown-item:hover,
.nav-link.dropdown-item:focus {
  border-color: #003d82;
}

.nav-link:hover,
.nav-link:focus {
  transform: translateY(-2px);
  background-color: #0056b3;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  border-color: #003d82;
}

.btn-group .dropdown-toggle {
  margin: 5px;
  justify-content: center;
  font-weight: 600;
  background-color: #007acc;
  color: #ffffff;
  border: 2px solid #138496;
  transition: all 0.2s ease;
  min-width: 300px;
  padding: 8px 16px;
}

.btn-group .dropdown-toggle:hover,
.btn-group .dropdown-toggle:focus-visible {
  background-color: #007accd5;
  color: #ffffff;
  border-color: #0056b3;
}

.btn-group .dropdown-menu {
  margin: 0;
  font-weight: 600;
  border: 2px solid #dee2e6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  min-width: 100%;
  padding: 5px;
}

.btn-group .dropdown-menu .dropdown-item {
  padding: 8px 16px;
  white-space: nowrap;
}

#current-date {
  align-items: center;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================
   HOME PAGE - MODERN COMPACT LAYOUT
   ============================================ */
.home-container-fluid {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Hero Section - Compact */
.hero-section {
  position: relative;
  height: 35vh;
  min-height: 300px;
  max-height: 280px;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/img/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem;
  text-align: center;
  z-index: 1;
}

.hero-quote {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: #ffffff;
  margin: 0 auto;
  max-width: 85%;
  line-height: 1.5;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

/* Platform Cards Section */
.platforms-section {
  padding: 0 2rem 2rem;
  min-height: 35vh;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tablet layout optimizations */
@media (max-width: 992px) {
  .platforms-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .navbar-brand img {
    height: 6rem;
  }
  
  .navbar-brand,
  .header-controls {
    width: 150px;
  }
  
  .btn-group .dropdown-toggle {
    min-width: 250px;
    font-size: 0.9rem;
  }
}

/* Mobile layout optimizations */
@media (max-width: 768px) {
  header {
    position: relative;
    z-index: 1050;
  }
  
  header > nav {
    position: relative;
    background: var(--control-bg, #ffffff);
  }
  
  .hero-quote {
    font-size: 0.95rem;
  }
  
  .navbar {
    padding: 8px;
    display: flex;
  }
  
  .navbar-brand {
    width: auto;
    flex-shrink: 0;
    margin-right: 8px;
  }
  
  .navbar-brand img {
    height: 2.5rem;
    width: auto;
  }
  
  .d-flex.flex-grow-1 {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 80px;
    padding: 0 8px;
  }
  
  .header-controls {
    width: auto;
    gap: 4px;
    display: flex !important;
    visibility: visible !important;
    flex-shrink: 0;
  }
  
  .header-btn {
    font-size: 1rem;
    padding: 4px;
    min-width: 36px;
    min-height: 36px;
    display: flex !important;
  }
  
  #theme_toggle {
    font-size: 1.5rem;
    padding: 4px;
    min-width: 24px;
    min-height: 24px;
    top: 5px;
    right: 5px;
    position: fixed;
  }

  #faq_button {
    font-size: 1.5rem;
    padding: 4px;
    min-width: 24px;
    min-height: 24px;
    top: 5px;
    right: 60px;
    position: fixed;
  }
  
  .navbar_heading {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }
  
  .hero-section {
    min-height: 200px;
    max-height: 200px;
  }
  
  .hero-overlay {
    padding: 1rem;
  }
  
  .platforms-section {
    padding: 0 1rem 1rem;
  }
  
  .platforms-grid {
    gap: 1rem;
  }
  
  /* Hide navbar navigation on mobile - platform cards provide navigation */
  nav.navbar.navbar-expand-lg.border-bottom {
    display: none !important;
  }
  
  /* Modern navbar collapse layout */
  nav.navbar.navbar-expand-lg.border-bottom {
    padding: 0;
    background: var(--control-bg, #ffffff);
    border-top: 1px solid #dee2e6 !important;
  }
  
  .navbar-toggler {
    margin: 8px;
    padding: 8px 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
  }
  
  /* Dropdown menu container */
  #navbar_nav {
    width: 100%;
  }
  
  #navbar_nav .btn-group {
    flex-direction: column;
    width: 100%;
    padding: 0 8px 8px 8px;
  }
  
  .btn-group .dropdown-toggle {
    min-width: 100%;
    width: 100%;
    margin: 8px 0 4px 0;
    text-align: left;
    justify-content: space-between;
    display: flex;
    align-items: center;
  }
  
  .btn-group .dropdown-menu {
    position: static !important;
    transform: none !important;
    margin: 0;
    border-radius: 6px;
    width: 100%;
  }
}

/* Platform Card - Main Container */
.platform-card {
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  min-height: 300px;
  width: 100%;
  display: grid;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  gap: 1.25rem;
}

.platform-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.ado-platform {
  border-color: #0078d4;
}

.ado-platform:hover {
  border-color: #005a9e;
  box-shadow: 0 12px 24px rgba(0, 120, 212, 0.25);
}

.octopus-platform {
  border-color: #2F93E0;
}

.octopus-platform:hover {
  border-color: #1f6bb8;
  box-shadow: 0 12px 24px rgba(47, 147, 224, 0.25);
}

.dark-mode .platform-card {
  background: #2d2d2d;
  border-color: #454545;
}

.dark-mode .ado-platform {
  border-color: #0078d4;
}

.dark-mode .octopus-platform {
  border-color: #2F93E0;
}

/* Platform Header */
.platform-header {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0;
  width: 100%;
}

.platform-icon {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobile platform card adjustments */
@media (max-width: 768px) {
  .platform-card {
    padding: 1.5rem;
    gap: 1rem;
    min-height: 250px;
    text-align: center;
  }
  
  .platform-header {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .platform-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }
  
  .platform-info {
    text-align: center;
    width: 100%;
  }
  
  .platform-title {
    font-size: 1.35rem;
  }
  
  .platform-count {
    font-size: 0.95rem;
  }
  
  .hover-hint {
    font-size: 0.8rem;
    justify-content: center;
  }
  
  /* Show mobile click-hint, hide desktop hover-hint on mobile */
  .hover-hint-desktop { display: none !important; }
  .hover-hint-mobile { display: inline-flex !important; }
}

.platform-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.platform-info {
  flex: 1;
}

.platform-title {
  font-size: 1.8rem;
  font-weight: 750;
  color: #333;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.dark-mode .platform-title {
  color: #e0e0e0;
}

.platform-count {
  font-size: 1.05rem;
  color: #868686;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.dark-mode .platform-count {
  color: #6abfff;
}

.hover-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #000000;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* Default: show desktop hover-hint, hide mobile click-hint */
.hover-hint-desktop { display: inline-flex; }
.hover-hint-mobile { display: none; }

.hover-hint i {
  font-size: 0.9em;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.platform-card:hover .hover-hint {
  opacity: 0;
}

/* Pipeline Dropdown - Modal tooltip with grid layout */
.pipeline-dropdown {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: auto;
  min-width: 600px;
  max-width: 800px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  background: #ffffff;
  border: 3px solid #e0e0e0;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Mobile pipeline dropdown adjustments */
@media (max-width: 768px) {
  .pipeline-dropdown {
    min-width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    border-radius: 12px;
  }
  
  .pipeline-list {
    padding: 1.5rem;
    gap: 0.75rem;
    min-height: auto;
  }
  
  .pipeline-item {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    min-height: 60px;
  }
  
  .pipeline-item i:first-child {
    font-size: 1.3rem;
  }
  
  .pipeline-item i:last-child {
    font-size: 1rem;
  }
}

.dark-mode .pipeline-dropdown {
  background: #2d2d2d;
  border-color: #454545;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.ado-platform .pipeline-dropdown {
  border-color: #0078d4;
}

.octopus-platform .pipeline-dropdown {
  border-color: #2F93E0;
}

.dark-mode .ado-platform .pipeline-dropdown {
  border-color: #0078d4;
}

.dark-mode .octopus-platform .pipeline-dropdown {
  border-color: #2F93E0;
}

.platform-card:hover .pipeline-dropdown {
  max-height: 600px;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pipeline-list {
  padding: 2rem;
  border-top: none;
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-height: 450px;
}

/* Pipeline Items - Enhanced card-style buttons */
.pipeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  margin-top: 0;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 3px solid #667eea;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  min-height: 80px;
}

.pipeline-item:nth-child(1) { animation-delay: 0.1s; }
.pipeline-item:nth-child(2) { animation-delay: 0.2s; }
.pipeline-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pipeline-item span {
  flex: 1;
  text-align: left;
}

.pipeline-item:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  transform: scale(1.02) translateY(-2px);
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.ado-platform .pipeline-item:hover {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
  border-color: #0078d4;
  box-shadow: 0 8px 20px rgba(0, 120, 212, 0.4);
}

.octopus-platform .pipeline-item:hover {
  background: linear-gradient(135deg, #2F93E0 0%, #1f6bb8 100%);
  border-color: #2F93E0;
  box-shadow: 0 8px 20px rgba(47, 147, 224, 0.4);
}

.pipeline-item i:first-child {
  font-size: 1.5rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.pipeline-item i:last-child {
  font-size: 1.2rem;
  opacity: 0.7;
  flex-shrink: 0;
}

.pipeline-item:hover i:first-child {
  transform: scale(1.1);
  opacity: 1;
}

.pipeline-item:hover i:last-child {
  transform: translateX(4px);
  opacity: 1;
}

.dark-mode .pipeline-item {
  background: #1a1a1a;
  color: #e0e0e0;
  border: 3px solid #667eea;
;
}

.dark-mode .pipeline-item:hover {
  background: #252525;
  border-color: #60a5fa;
  color: #60a5fa;
}

.pipeline-item > i:first-child {
  font-size: 1.2em;
  color: #0d6efd;
  flex-shrink: 0;
}

.dark-mode .pipeline-item > i:first-child {
  color: #60a5fa;
}

.pipeline-item > span {
  flex: 1;
}

.pipeline-item > i:last-child {
  font-size: 0.9em;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.pipeline-item:hover > i:last-child {
  opacity: 1;
  transform: translateX(4px);
}

.external-item > i:first-child {
  color: #ff6e00;
}

.dark-mode .external-item > i:first-child {
  color: #ff8533;
}

/* Footer */
.home-footer {
  margin-top: 2rem;
  padding: 1.5rem;
  text-align: center;
  border-top: 2px solid #e0e0e0;
}

.dark-mode .home-footer {
  border-top-color: #454545;
}

.env-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: rgb(255, 255, 255);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.env-link:hover {
  background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
  color: white;
  text-decoration: none;
}

.copywrite_date {
  text-align: center;
  font-size: 0.875rem;
  margin-top: 1rem;
  color: #6c757d;
  font-weight: 500;
}

.footer_main {
    text-align: center;
    margin-top: 10px;
}

/* Alert Modal Styling */
#warning-modal p {
    margin-top: 20px;
    font-weight: 600;
    font-size: large;
}

#warning-modal .modal-content {
  border-left: 3px solid rgb(255, 244, 93);
  border: 1px solid rgba(255, 244, 93, 0.3);
  border-left: 3px solid rgb(255, 244, 93);
}

#warning-modal .modal-header {
    background: rgb(255, 244, 93) !important;
    border-bottom: none !important;
    border: 1px solid rgba(255, 244, 93, 0.3);
    border-left: 3px solid rgb(255, 244, 93);
    border-bottom: none !important;
    border-radius: 6px 0 0 0;
    padding: 16px 20px;
}

#warning-modal .modal-title {
    color: #000000 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#warning-modal .modal-body {
    border: 1px solid rgba(255, 244, 93, 0.3);
    border-left: 3px solid rgb(255, 244, 93);
    border-top: none;
    border-bottom: none;
}

#warning-modal .modal-footer {
    background: rgb(255, 244, 93) !important;
    border: 1px solid rgba(255, 244, 93, 0.3);
    border-left: 3px solid rgb(255, 244, 93);
    border-top: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 0 0 0 6px;
    padding: 12px 20px;
}

/* Dark mode alert modal */
body.dark-mode #warning-modal .modal-content {
    background-color: #252526 !important;
    border: 1px solid rgba(255, 238, 0, 0.25);
    border-left: 3px solid rgba(255, 238, 0, 0.85);
}

body.dark-mode #warning-modal .modal-header {
    background: rgba(255, 238, 0, 0.85) !important;
    border: 1px solid rgba(255, 238, 0, 0.25);
    border-left: 3px solid rgba(255, 238, 0, 0.85);
    border-bottom: none !important;
}

body.dark-mode #warning-modal .modal-body {
    border: 1px solid rgba(255, 238, 0, 0.25);
    border-left: 3px solid rgba(255, 238, 0, 0.85);
    border-top: none;
    border-bottom: none;
}

body.dark-mode #warning-modal .modal-footer {
    background: rgba(255, 238, 0, 0.85) !important;
    border: 1px solid rgba(255, 238, 0, 0.25);
    border-left: 3px solid rgba(255, 238, 0, 0.85);
    border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
}

/* Info Modal Styling (FAQ, No Differences, etc.) */
#info-modal .modal-content {
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-left: 3px solid #17a2b8;
}

#info-modal .modal-header {
    background: rgba(23, 162, 184, 0.1) !important;
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-left: 3px solid #17a2b8;
    border-bottom: none !important;
    border-radius: 6px 0 0 0;
    padding: 16px 20px;
}

#info-modal .modal-title {
    color: #17a2b8 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#info-modal .modal-body {
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-left: 3px solid #17a2b8;
    border-top: none;
    border-bottom: none;
}

#info-modal .modal-footer {
    background: rgba(23, 162, 184, 0.05) !important;
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-left: 3px solid #17a2b8;
    border-top: 1px solid rgba(23, 162, 184, 0.2) !important;
    border-radius: 0 0 0 6px;
    padding: 12px 20px;
}

/* Dark mode info modal */
body.dark-mode #info-modal .modal-content {
    background-color: #252526 !important;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-left: 3px solid #60a5fa;
}

body.dark-mode #info-modal .modal-header {
    background: rgba(96, 165, 250, 0.08) !important;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-left: 3px solid #60a5fa;
    border-bottom: none !important;
}

body.dark-mode #info-modal .modal-body {
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-left: 3px solid #60a5fa;
    border-top: none;
    border-bottom: none;
}

body.dark-mode #info-modal .modal-footer {
    background: rgba(96, 165, 250, 0.05) !important;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-left: 3px solid #60a5fa;
    border-top: 1px solid rgba(96, 165, 250, 0.15) !important;
}

body.dark-mode #info-modal .modal-title {
    color: #60a5fa !important;
}

/* Feedback Status Modal Styling (status message) */
#feedback-status-modal {
    min-width: 300px;
}
#feedback-status-modal .modal-content {
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-left: 3px solid #17a2b8;
}

#feedback-status-modal .modal-header {
    background: rgba(23, 162, 184, 0.1) !important;
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-left: 3px solid #17a2b8;
    border-bottom: none !important;
    border-radius: 6px 0 0 0;
    padding: 16px 20px;
}

#feedback-status-modal .modal-title {
    color: #17a2b8 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#feedback-status-modal .modal-body {
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-left: 3px solid #17a2b8;
    border-top: none;
    border-bottom: none;
}

#feedback-status-modal .modal-footer {
    background: rgba(23, 162, 184, 0.05) !important;
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-left: 3px solid #17a2b8;
    border-top: 1px solid rgba(23, 162, 184, 0.2) !important;
    border-radius: 0 0 0 6px;
    padding: 12px 20px;
}

/* Dark mode feedback-status modal */
body.dark-mode #feedback-status-modal .modal-content {
    background-color: #252526 !important;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-left: 3px solid #60a5fa;
}

body.dark-mode #feedback-status-modal .modal-header {
    background: rgba(96, 165, 250, 0.08) !important;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-left: 3px solid #60a5fa;
    border-bottom: none !important;
}

body.dark-mode #feedback-status-modal .modal-body {
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-left: 3px solid #60a5fa;
    border-top: none;
    border-bottom: none;
}

body.dark-mode #feedback-status-modal .modal-footer {
    background: rgba(96, 165, 250, 0.05) !important;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-left: 3px solid #60a5fa;
    border-top: 1px solid rgba(96, 165, 250, 0.15) !important;
}

body.dark-mode #feedback-status-modal .modal-title {
    color: #60a5fa !important;
}

/* Feedback Status Alert Styling */
#feedback-status.alert {
    font-size: 1.05em;
    padding: 0.85em 1.2em;
    margin-bottom: 1em;
    border-radius: 0.5em;
    line-height: 1.5;
}

#feedback-status code {
    background: #f3f3f3;
    color: #000000;
    padding: 0.1em 0.3em;
    border-radius: 0.2em;
    font-size: 0.98em;
}

/* Container and Table Layout */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Modal responsive improvements */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-dialog-centered {
        min-height: calc(100% - 1rem);
    }
    
    .modal-xl {
        max-width: calc(100% - 1rem);
    }
    
    .modal-lg {
        max-width: calc(100% - 1rem);
    }
    
    .modal-body {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .modal-header,
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
}

/* Responsive container for desktop - prevent overflow */
@media (min-width: 1200px) {
    .container-fluid {
        max-width: 98vw;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .container-fluid {
        max-width: 96vw;
    }
}

/* Mobile responsive */
@media (max-width: 991px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Flatpickr Calendar Modal Styling */
/* Dark overlay backdrop */
.flatpickr-calendar.open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    pointer-events: auto;
}

/* Center the calendar as a modal */
.flatpickr-calendar {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 999 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
}

/* Ensure calendar is above the overlay */
.flatpickr-calendar.open {
    z-index: 999 !important;
}