/* ===== HEADER ===== */

a:hover {
  text-decoration: none;
}

/* ===== NAVBAR ===== */
.navbar {
  min-height: fit-content;
}

.navbar-inverse {
  background-color: #ffffff;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

/* Container spacing fix */
.navbar .container {
  padding-left: 20px;
  padding-right: 20px;
}

.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:focus,
.navbar-inverse .navbar-nav > .open > a:hover {
  background-color: transparent !important;
  color: #00a3a3 !important;
}

/* ===== LOGO ===== */
.navbar-brand {
  padding: 10px 15px;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: auto;
  max-height: 60px;
  width: auto;
}

/* ===== NAV LINKS ===== */
.navbar-nav > li > a {
  color: #555 !important;
  font-weight: 500;
  padding: 0 16px;
  position: relative;
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
  height: 60px;

  /* REMOVE OLD UNDERLINE */
  border-bottom: none !important;
}

/* User dropdown trigger */
.navbar-nav > li.dropdown > a {
  border-radius: 8px;
}

/* Subtle hover instead of harsh background */
.navbar-nav > li.dropdown > a:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Animated underline */
.navbar-nav > li > a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 16px;
  width: 0%;
  height: 2px;
  background-color: #00a3a3;
  transition: width 0.25s ease;
}

.navbar-nav > li > a:hover {
  color: #00a3a3 !important;
  background: transparent !important;
}

.navbar-nav > li > a:hover::after {
  width: calc(100% - 32px);
}

/* Active link */
.navbar-nav > .active > a {
  color: #00a3a3 !important;
}

.navbar-nav > .active > a::after {
  width: calc(100% - 32px);
}

/* Remove vertical dividers */
.divider-vertical {
  display: none !important;
}

/* ===== USER NAME ===== */
.username {
  font-weight: 500;
  color: #2f3e46;
}

/* ===== MOBILE ===== */
/* FORCE hamburger visibility */
.navbar-toggle .icon-bar {
  background-color: #2f3e46 !important;
  height: 3px;
  width: 24px;
  margin: 5px 0;
  border-radius: 2px;
}

/* Add visible button area */
.navbar-toggle {
  border: 1px solid #ddd !important;
  background-color: #ffffff !important;
  border-radius: 6px;
  padding: 6px 8px;
}

/* Hover effect */
.navbar-toggle:hover {
  background-color: #f5f7f9 !important;
}

/* Tablet spacing fix */
@media (min-width: 768px) and (max-width: 1200px) {
  .navbar-nav > li:first-child {
    margin-top: 10px;
  }
}

/* Mobile menu styling */
@media (max-width: 767px) {
  .navbar-collapse {
    background: #ffffff;
    border-radius: 10px;
    margin-top: 10px;
    padding: 10px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .navbar-nav > li > a {
    padding: 12px 20px;
    height: auto;
  }

  .navbar-nav > li > a::after {
    display: none;
  }
}

/* ===== HERO / HEADER SECTION ===== */
.hero,
.jumbotron {
  background: linear-gradient(135deg, #4f6d7a, #6fa3b8);
  color: white;
  padding: 60px 20px;
  border-radius: 0 0 12px 12px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ===== LOGIN BOX ===== */
.login-container {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 420px;
  margin: 40px auto;
}

/* Fix white-on-white hover issue */
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
  background-color: #f5f7f9 !important;
  color: #00a3a3 !important;
}

/* Dropdown items fix */
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background-color: #f5f7f9 !important;
  color: #00a3a3 !important;
}

/* Fix active/open state */
.navbar-nav > .open > a {
  background-color: #f5f7f9 !important;
  color: #00a3a3 !important;
}

/* ===== END OF HEADER ===== */
/* ===== HELP SECTION ===== */

/* ===== HELP BANNER ===== */
.help-banner {
  width: 100%;
  background: linear-gradient(135deg, #5f7f95, #6fa3b8);
  padding: 20px 0 40px;
  margin-top: 40px;
}

/* Container alignment */
.help-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* Title */
.help-title {
  color: #ffffff;
  font-size: 46px;
  font-weight: 600;
  margin-bottom: 30px;
}

/* Content wrapper */
.help-content {
  display: flex;
  justify-content: center;
}

/* ===== UPDATED LIST → FLEX BUTTON LAYOUT ===== */
.help-list {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

/* Each item becomes equal-width column */
.help-item {
  flex: 1;
  padding-left: 0; /* remove old spacing */
  margin-bottom: 0;
}

/* REMOVE dash */
.help-item::before {
  content: none;
}

/* ===== BUTTON STYLE ===== */
.help-link {
  display: block;
  background-color: #ffffff;
  color: #2c3e50;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

/* Simple hover */
.help-link:hover {
  background-color: #e6eef2;
  color: #000;
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .help-title {
    font-size: 24px;
  }

  .help-link {
    font-size: 15px;
  }

  /* Stack buttons on mobile */
  .help-list {
    flex-direction: column;
  }
}

/* ===== END OF HELP SECTION ===== */

/* ===== FOOTER ===== */
.portal-footer {
  padding: 20px 0;
  background: #f4f6f9;
  border-top: 1px solid #e3e8ee;
}

/* Container */
.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Inline layout */
.footer-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Left side */
.footer-left {
  font-size: 13px;
  color: #60829b;
}

/* Right side */
.footer-right {
  display: flex;
  gap: 20px;
}

/* Links */
.footer-link {
  font-size: 13px;
  color: #60829b;
  text-decoration: none;
  transition: color 0.2s ease;
  opacity: 0.8;
}

.footer-link:hover {
  color: #00a3a3;
  opacity: 1;
}

@media (max-width: 767px) {
  .footer-inline {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
/* ===== END OF FOOTER ===== */

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

/* Power Pages wrapper fix */
body > form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Main content */
#content-container,
.page-content,
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Footer */
.portal-footer {
  margin-top: auto;
}

/*! ===== CUSTOM LOGIN PAGE ===== */

/* DO NOT HIDE external-login anymore */
.nav-account,
.page-heading,
.alert,
.local-login {
  display: none !important;
}

/* Full width */
#content-container {
  max-width: 100% !important;
}

/* =========================
   LAYOUT
========================= */

.login-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
}

.login-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

/* =========================
   LEFT
========================= */

.left-section h1 {
  font-size: 48px;
  font-weight: 700;
  color: #1f3b4d;
  line-height: 1.2;
  margin-bottom: 20px;
}

.subtitle {
  color: #6b7c8f;
  margin-bottom: 40px;
}

.badge {
  display: inline-block;
  background: #e6f3fa;
  color: #2b6f8a;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 20px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* =========================
   RIGHT PANEL
========================= */

.right-section {
  width: 100%;
}

.login-panel {
  background: #ffffff;
  padding: 35px;
  border-radius: 20px;
  width: 100%;
}

.login-text {
  color: #6b7c8f;
  margin-bottom: 20px;
}

.info-box {
  background: #eef3f7;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Buttons */
.primary-btn,
.secondary-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 10px;
}

.primary-btn {
  color: white;
  background-color: #1f3b4d;
}

.primary-btn:hover {
  background-color: #16303d;
  color: white;
}

.secondary-btn {
  border: 1px solid #d6dde5;
  color: #1f3b4d;
}

/* Help */
.help {
  font-size: 14px;
  margin: 15px 0;
}

/* Bottom features */
.bottom-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  font-size: 13px;
}

/* =========================
   STYLE ORIGINAL BUTTONS
========================= */

.external-login .btn {
  width: 100%;
  border-radius: 10px !important;
  padding: 12px !important;
  font-weight: 600;
  margin-bottom: 10px;
}

/* External ID */
.external-login button[value*="ciamlogin"] {
  background: #2f6f95 !important;
  color: white !important;
}

/* Entra ID */
.external-login button[value*="windows.net"] {
  background: white !important;
  border: 1px solid #d6dde5 !important;
  color: #1f3b4d !important;
}

/* FIXES */

.container {
  width: 98%;
}

.table-responsive > .table > thead > tr > th,
.table-responsive > .table > thead > tr > td,
.table-responsive > .table > tbody > tr > th,
.table-responsive > .table > tbody > tr > td,
.table-responsive > .table > tfoot > tr > th,
.table-responsive > .table > tfoot > tr > td {
  white-space: normal;
}

input.form-control {
  border: 1px solid #949494;
  border-radius: 6px;
  min-height: 40px;
  padding: 8px 10px;
  box-shadow: none;
}

/* =========================
   MOBILE FIX (KEY PART)
========================= */

@media (max-width: 767px) {
  .login-container {
    padding: 20px 15px;
    margin: 20px auto;
  }

  .login-grid {
    grid-template-columns: 1fr; /* stack */
    gap: 30px;
  }

  .left-section h1 {
    font-size: 28px;
  }

  .subtitle {
    margin-bottom: 25px;
  }

  /* Cards → single column */
  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 16px;
  }

  /* Panel spacing */
  .login-panel {
    padding: 20px;
    border-radius: 14px;
  }

  /* Bottom features → stacked */
  .bottom-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bottom-features div {
    background: #f7f9fb;
    padding: 10px;
    border-radius: 8px;
  }
}

/* =========================
   STYLE ORIGINAL BUTTONS
========================= */

.external-login .btn {
  width: 300px;
  display: block;
  border-radius: 10px !important;
  padding: 12px !important;
  font-weight: 600;
  margin-bottom: 10px;
}

/* External ID */
.external-login button[value*="ciamlogin"] {
  background: #2f6f95 !important;
  color: white !important;
}

/* Entra ID */
.external-login button[value*="windows.net"] {
  background: white !important;
  border: 1px solid #d6dde5 !important;
  color: #1f3b4d !important;
}
