/* --- Global & Theme --- */
:root {
    --lobf-navy: #002D56;
    --lobf-gold: #C5A059;
    --card-bg: #212529;
    --bg-dark-blue: #1a2635;
}

body {
    background-color: var(--bg-dark-blue) !important;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.intranet-blocking-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(47, 55, 59, 0.5);
    backdrop-filter: grayscale(35%) blur(1px);
    cursor: wait;
}

.intranet-blocking-overlay[hidden] {
    display: none;
}

.intranet-blocking-card {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    width: min(22rem, 100%);
    padding: 1.4rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2933;
    box-shadow: 0 18px 48px rgba(14, 25, 28, 0.35);
    text-align: center;
}

.intranet-blocking-card strong {
    font-size: 1rem;
}

.intranet-blocking-card > span:last-child {
    color: #60707a;
    font-size: 0.82rem;
}

.intranet-blocking-spinner {
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid #cad8d4;
    border-top-color: #2e7a85;
    border-radius: 50%;
    animation: intranet-blocking-spin 0.8s linear infinite;
}

@keyframes intranet-blocking-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .intranet-blocking-spinner { animation-duration: 1.8s; }
}

.app-nav-container,
.app-main {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding-left: clamp(1rem, 2vw, 2rem);
    padding-right: clamp(1rem, 2vw, 2rem);
}

.app-main > * {
    min-width: 0;
}

.app-page {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.navbar .d-flex {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.navbar .text-muted {
    overflow-wrap: anywhere;
}

.table-responsive {
    max-width: 100%;
}

.table {
    width: 100%;
}

.table th,
.table td {
    overflow-wrap: anywhere;
}

.table .text-nowrap,
.table td.text-nowrap,
.table th.text-nowrap {
    overflow-wrap: normal;
}

code,
pre,
.user-select-all {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* --- Layout Components --- */
.navbar-custom {
    background-color: #e9ecef !important;
    border-bottom: 2px solid var(--lobf-gold);
}

.navbar-custom .navbar-brand, 
.navbar-custom .nav-link,
.navbar-custom .navbar-text {
    color: #333333 !important;
}

/* --- Login Gateway Specifics --- */
.login-body {
    background: linear-gradient(135deg, var(--lobf-navy) 0%, #001a33) 100%;
}

.login-card { 
    max-width: 480px; 
    border: 1px solid rgba(197, 160, 89, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

.logo-container {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    padding: 15px;
    display: inline-block;
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.btn-google {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-google img {
    background: transparent !important;
    padding: 0 !important;
}

.btn-google:hover {
    background-color: var(--lobf-gold);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-google:hover img {
    filter: brightness(0) invert(1);
}

/* --- Dashboard Specifics --- */
.dashboard-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding-top: 5rem; 
}

.tool-card { 
    background: var(--card-bg); 
    border: 1px solid #333; 
    border-radius: 12px; 
    padding: 2.5rem; 
    transition: transform 0.2s, border-color 0.2s; 
    height: 100%; 
    text-decoration: none; 
    color: inherit; 
    display: block;
    text-align: center;
}

.tool-card:hover { 
    transform: translateY(-5px); 
    border-color: #0d6efd; 
    background: #2b3035; 
}

.icon-box { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2.5rem; 
    margin: 0 auto 1.5rem auto; 
}

/* --- User Management/Tables --- */
.card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}
