/* 
 * Layout and Visibility Fixes
 * This CSS file contains specific fixes for reported UI issues
 */

/* Navbar logo and text fixes */
.navbar-brand-img.improved-logo {
  width: auto;
  height: 80px; /* Increased logo size */
  transition: all 0.3s ease;
  margin: 0 15px; /* Increased spacing */
}

/* Ensure welcome container has appropriate sizing */
.welcome-container {
  min-width: 300px; /* Minimum width to prevent squeezing */
  flex: 0 0 auto; /* Don't allow the container to grow or shrink too much */
  padding: 0 10px; /* Add some padding */
  text-align: center;
  background: transparent; /* Remove any background */
}

.welcome-message {
  font-weight: 700;
  color: var(--bga-navy);
  font-size: 1.75rem; /* Increased font size */
  white-space: nowrap; /* Prevent text from wrapping */
  background: transparent; /* Remove any background */
}

/* Ensure text contrast in card content */
.bga-card-body {
  color: #000000 !important; /* Pure black text for maximum visibility */
  background-color: #ffffff !important; /* Ensure background is white */
}

/* Specific styles for staggered list */
.list-unstyled.staggered-list {
  margin: 1rem 0;
}

.stagger-item {
  background-color: transparent;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  line-height: 1.5;
  color: var(--bga-gray-dark) !important;
  opacity: 1 !important;
}

.stagger-item strong {
  color: var(--bga-navy) !important;
  font-weight: 700;
  opacity: 1 !important;
  display: inline-block;
  margin-right: 0.5rem;
}

.bga-card-body p, 
.bga-card-body li,
.bga-card-body ul,
.staggered-list li,
.stagger-item {
  color: var(--bga-gray-dark) !important; /* Dark gray text for better readability */
  margin-bottom: 0.75rem;
  font-weight: 500;
  opacity: 1 !important; /* Ensure text is not faded */
}

.bga-card-body strong {
  color: var(--bga-navy) !important; /* Navy blue for strong text */
  font-weight: 700;
  opacity: 1 !important; /* Ensure text is not faded */
}

/* Compact footer */
footer {
  padding: 0.75rem 0 0.5rem; /* Minimal padding */
  margin-top: 1rem; /* Reduced top margin */
}

.footer-heading {
  font-size: 0.9rem; /* Smaller headings */
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.footer-bottom {
  margin-top: 0.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
}

.footer-links {
  font-size: 0.8rem; /* Smaller text */
  margin-bottom: 0;
}

.footer-link {
  margin-bottom: 0.2rem !important; /* Minimal spacing between links */
  line-height: 1.2;
}

/* Ensure proper navbar spacing in different screen sizes */
@media (max-width: 991.98px) {
  .welcome-container {
    justify-content: center !important;
    padding: 0.5rem;
    min-width: 280px; /* Ensure minimum width for the welcome text */
    overflow: visible; /* Ensure text isn't cut off */
    flex-shrink: 0; /* Prevent container from shrinking */
  }
  
  .welcome-message {
    font-size: 1.4rem; /* Size for smaller screens */
    text-align: center;
    white-space: normal; /* Allow wrapping only on very small screens */
  }
  
  .navbar-brand-img.improved-logo {
    height: 60px; /* Still reasonably sized on mobile */
    margin: 0 5px; /* Reduced margin to free up space */
  }
  
  /* Hide the right logo on smaller screens to make more room */
  .navbar-brand.ms-3 {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .navbar-brand.me-3 {
    margin-right: 3rem !important; /* More spacing between logo and welcome message */
    flex-shrink: 0; /* Prevent logo from shrinking */
  }
  
  .navbar-brand.ms-3 {
    margin-left: 3rem !important; /* More spacing between welcome message and logo */
    flex-shrink: 0; /* Prevent logo from shrinking */
  }
  
  .welcome-container {
    flex: 0 1 auto; /* Allow container to grow but not too much */
    min-width: 350px; /* Minimum width for the welcome text on larger screens */
    justify-content: center !important;
  }
  
  .container-fluid {
    padding: 0 2rem; /* Add some horizontal padding to the navbar container */
    justify-content: space-between; /* Better spacing in the navbar */
  }
}

/* Additional media query for mid-sized screens */
@media (min-width: 768px) and (max-width: 991.98px) {
  .welcome-container {
    flex: 1 1 auto;
    min-width: 300px;
    padding: 0 1rem;
  }
  
  .navbar-brand-img.improved-logo {
    height: 70px; /* Slightly smaller than desktop but larger than mobile */
    margin: 0 10px;
  }
}

/* For very small screens, ensure text is still readable */
@media (max-width: 576px) {
  .welcome-message {
    font-size: 1.2rem; /* Smaller text on very small screens */
  }
  
  .bga-logo-text.large-logo .bga-letter {
    font-size: 130%; /* Slightly smaller logo text */
  }

  /* Even more compact footer for mobile */
  footer {
    padding: 0.5rem 0 0.25rem;
  }

  .footer-heading {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
  }

  .footer-links {
    font-size: 0.75rem;
  }

  .footer-link {
    margin-bottom: 0.15rem !important;
  }

  .footer-bottom {
    margin-top: 0.35rem;
    padding-top: 0.2rem;
    font-size: 0.7rem;
  }

  .col-md-4 {
    margin-bottom: 0.75rem !important;
  }
}

/* Ensure text visibility across the application */
.bga-btn, 
.bga-btn-primary,
.bga-btn-secondary {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bga-btn-outline {
    color: var(--bga-dark) !important;
    text-shadow: none;
}

.bga-card-body,
.bga-card-text,
.bga-form-label,
.form-label {
    color: var(--bga-dark) !important;
}

.text-light {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhance text contrast on colored backgrounds */
[class*="bg-"] {
    position: relative;
}

[class*="bg-"] > * {
    position: relative;
    z-index: 1;
}

[class*="bg-dark"] *,
[class*="bg-primary"] *,
[class*="bg-success"] *,
[class*="bg-danger"] * {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Ensure input text is always visible */
input,
textarea,
select {
    color: var(--bga-dark) !important;
    background-color: #ffffff !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--bga-gray) !important;
    opacity: 0.7;
}
