html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ── Site Navbar ───────────────────────────────────────────────────── */
.site-navbar {
    background: linear-gradient(135deg, #0f0c29, #1a1a2e, #16213e);
    border-bottom: 2px solid rgba(102, 126, 234, 0.45);
    box-shadow: 0 2px 20px rgba(102, 126, 234, 0.18);
    padding: 0.6rem 0;
}

/* Brand */
.site-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, #a78bfa, #667eea, #a78bfa);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    text-decoration: none;
}

.site-navbar-brand:hover {
    opacity: 0.9;
    text-decoration: none;
}

.brand-icon {
    -webkit-text-fill-color: initial;
    background: none;
    font-size: 1.2rem;
}

@keyframes shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Nav links */
.site-nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.5rem 0.85rem !important;
    transition: color 0.2s;
}

.site-nav-link::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #a78bfa);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.site-nav-link:hover,
.site-nav-link.active {
    color: #fff !important;
}

.site-nav-link:hover::after,
.site-nav-link.active::after {
    transform: scaleX(1);
}

/* Toggler */
.site-navbar-toggler {
    border-color: rgba(102, 126, 234, 0.5);
}

.site-navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.35);
}

/* Submenus */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* ─── Maintenance Dropdown Menu Styling ─── */
.dropdown-menu {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.65rem 1.25rem;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
    position: relative;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: #f0eeff;
    color: #667eea;
    padding-left: 1.5rem;
}

.dropdown-item.dropdown-toggle::after {
    content: '';
    float: right;
    border: solid #495057;
    border-width: 0.15em 0.15em 0 0;
    display: inline-block;
    padding: 0.25em;
    margin-right: 0.5rem;
    transform: rotate(45deg);
    transition: transform 0.2s, border-color 0.2s;
}

.dropdown-item.dropdown-toggle:hover::after,
.dropdown-item.dropdown-toggle:focus::after {
    border-color: #667eea;
    transform: rotate(135deg);
}

/* Section headers in dropdown */
.dropdown-divider {
    margin: 0.35rem 0;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

/* Submenu arrow indicator */
.dropdown-submenu > .dropdown-item::after {
    content: '▸';
    position: absolute;
    right: 0.85rem;
    margin: 0;
    float: none;
    border: none;
    padding: 0;
    display: inline;
    transform: none;
}

.dropdown-submenu > .dropdown-item:hover::after,
.dropdown-submenu > .dropdown-item:focus::after {
    transform: none;
    border: none;
}

/* Nested submenu */
.dropdown-submenu > .dropdown-menu {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Maintenance dropdown toggle indicator */
.nav-link.dropdown-toggle::after {
    display: none;
}
