/* =============================================================================
   CareScan — custom styles
   Loaded AFTER AdminLTE. Kept minimal and scoped:
     * AdminLTE selectors are overridden only where we intentionally re-style
       (sidebar brand + login page). Bodies of those pages already carry the
       .login-page class, so login rules stay scoped to /login.
     * Anything genuinely custom uses the `.cs-` prefix to avoid clashing with
       Bootstrap, AdminLTE, or third-party plugins.
   ============================================================================= */

/* ------------------------------------------------------------------ Sidebar brand */
.brand-link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 8px !important;
    height: auto !important;
    min-height: 130px;
    text-align: center;
}

.brand-link .brand-image {
    display: block;
    float: none !important;
    opacity: 1 !important;
    margin: 0 0 8px 0 !important;
    max-height: 54px;
    width: 84px;
    height: 54px;
    filter: drop-shadow(0 4px 14px rgba(0, 208, 255, 0.35));
}

.brand-link .brand-text {
    color: #ffffff !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 24px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-link .brand-text b {
    font-weight: 800;
}

/* ------------------------------------------------------------------ Login page */
.login-page {
    background: linear-gradient(135deg, #0a2a52 0%, #04122a 100%);
    min-height: 100vh;
}

.login-page .login-box {
    width: 400px;
    max-width: 92vw;
}

.login-page .login-logo {
    margin-bottom: 18px;
}

.login-page .login-logo a,
.login-page .login-logo a:hover,
.login-page .login-logo a:focus {
    display: block;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 32px;
    letter-spacing: 0.5px;
}

.login-page .login-logo img {
    max-height: 96px;
    width: auto;
    filter: drop-shadow(0 6px 16px rgba(0, 208, 255, 0.35));
}

.login-page .login-logo b {
    font-weight: 800;
}

.login-page .card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.login-page .card-header,
.login-page .card-body {
    border-radius: 14px;
}

.login-page .login-box-msg {
    color: #04122a;
    font-weight: 600;
}

/* ------------------------------------------------------------------ Utilities (cs- prefix) */
.cs-status-badge {
    min-width: 70px;
}

.cs-table-actions .btn {
    margin-right: 4px;
}

.cs-detail-label {
    width: 200px;
}

.cs-credentials-text {
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}
