/* =========================================================================
   Face Recognition TBI Approval — Azure DevOps theme
   White surfaces, Azure blue accents, Segoe UI, near-square corners.
   ========================================================================= */
:root {
    --az-blue: #0078d4;
    --az-blue-hover: #106ebe;
    --az-blue-active: #005a9e;
    --az-blue-soft: #deecf9;
    --az-blue-softer: #f3f9fd;
    --az-ink: #1b1a19;
    --az-ink-2: #605e5c;
    --az-line: #e1dfdd;
    --az-surface: #ffffff;
    --az-canvas: #f5f6f8;
    --az-radius: 2px;
    --az-shadow: 0 1.6px 3.6px rgba(0, 0, 0, .08), 0 .3px .9px rgba(0, 0, 0, .06);
}

html, body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--az-ink);
}

body, .content-wrapper {
    background-color: var(--az-canvas);
}

/* ---- Top bar ---------------------------------------------------------- */
.main-header.navbar {
    background: var(--az-blue);
    border-bottom: 1px solid var(--az-blue-active);
}
.main-header .nav-link,
.main-header .navbar-nav .nav-link { color: #fff !important; }
.main-header .nav-link:hover { background: rgba(255, 255, 255, .12); }
.az-brand-bar {
    font-weight: 600;
    color: #fff;
    letter-spacing: .2px;
}
.az-brand-bar .fa-shield-halved { opacity: .9; }

/* ---- Sidebar ---------------------------------------------------------- */
.main-sidebar {
    background: var(--az-surface);
    border-right: 1px solid var(--az-line);
    box-shadow: none;
}
.brand-link {
    background: var(--az-surface) !important;
    border-bottom: 1px solid var(--az-line);
    color: var(--az-blue) !important;
    font-weight: 600;
}
.brand-link .brand-image-text { line-height: 1.1; }

/* Sidebar logo toggle when collapsed */
.brand-link .brand-logo-small {
    display: none !important;
}
.brand-link .brand-logo-large {
    display: block !important;
}
.sidebar-collapse .brand-link .brand-logo-small {
    display: block !important;
}
.sidebar-collapse .brand-link .brand-logo-large {
    display: none !important;
}
.sidebar .nav-link { color: var(--az-ink) !important; border-radius: var(--az-radius); }
.sidebar .nav-link p { font-size: .9rem; }
.sidebar .nav-link .nav-icon { color: var(--az-ink-2); }
.sidebar .nav-link:hover { background: var(--az-blue-softer) !important; }
.sidebar .nav-link.active {
    background: var(--az-blue-soft) !important;
    color: var(--az-blue-active) !important;
    box-shadow: inset 3px 0 0 var(--az-blue);
}
.sidebar .nav-link.active .nav-icon { color: var(--az-blue-active); }
.sidebar .nav-header {
    color: var(--az-ink-2);
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .6px;
}

/* ---- Cards ------------------------------------------------------------ */
.card {
    border: 1px solid var(--az-line);
    border-radius: var(--az-radius);
    box-shadow: var(--az-shadow);
}
.card-header { border-bottom: 1px solid var(--az-line); background: var(--az-surface); }
.card-title { font-weight: 600; font-size: 1rem; }

/* Flexbox card-header styling & fixes for AdminLTE clearfix */
.card-header.d-flex {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}
.card-header.d-flex::after {
    display: none !important;
}
.card-header.d-flex::before {
    display: none !important;
}
.card-header.d-flex .card-title {
    float: none;
    margin: 0;
}

/* ---- Stat tiles ------------------------------------------------------- */
.az-tile {
    background: var(--az-surface);
    border: 1px solid var(--az-line);
    border-left: 3px solid var(--az-blue);
    border-radius: var(--az-radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--az-shadow);
    height: 100%;
}
.az-tile .az-tile-value { font-size: 1.9rem; font-weight: 600; line-height: 1; }
.az-tile .az-tile-label { color: var(--az-ink-2); font-size: .82rem; }
.az-tile.is-warning { border-left-color: #f7630c; }
.az-tile.is-success { border-left-color: #107c10; }
.az-tile.is-muted   { border-left-color: #8a8886; }

/* ---- Buttons ---------------------------------------------------------- */
.btn { border-radius: var(--az-radius); font-weight: 600; }
.btn-primary { background: var(--az-blue); border-color: var(--az-blue); }
.btn-primary:hover { background: var(--az-blue-hover); border-color: var(--az-blue-hover); }
.btn-primary:active, .btn-primary:focus { background: var(--az-blue-active); border-color: var(--az-blue-active); box-shadow: none; }
.btn-outline-primary { color: var(--az-blue); border-color: var(--az-blue); }
.btn-outline-primary:hover { background: var(--az-blue); border-color: var(--az-blue); }
a { color: var(--az-blue); }
a:hover { color: var(--az-blue-active); }

/* ---- Tables ----------------------------------------------------------- */
.table thead th {
    border-top: none;
    border-bottom: 1px solid var(--az-line);
    color: var(--az-ink-2);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.table td { vertical-align: middle; }
.table-hover tbody tr:hover { background: var(--az-blue-softer); }

/* ---- Forms ------------------------------------------------------------ */
.form-control, .custom-select {
    border-radius: var(--az-radius);
    border-color: var(--az-line);
}
.form-control:focus { border-color: var(--az-blue); box-shadow: 0 0 0 1px var(--az-blue); }
.module-check {
    display: flex; align-items: flex-start; gap: .75rem;
    border: 1px solid var(--az-line); border-radius: var(--az-radius);
    padding: .75rem .9rem; margin-bottom: .6rem; cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
}
.module-check:hover { border-color: var(--az-blue); background: var(--az-blue-softer); }
.module-check input { margin-top: .25rem; }
.module-check .mc-icon { color: var(--az-blue); font-size: 1.15rem; width: 1.4rem; text-align: center; }
.module-check .mc-name { font-weight: 600; }
.module-check .mc-desc { color: var(--az-ink-2); font-size: .82rem; }

/* ---- Badges ----------------------------------------------------------- */
.badge { border-radius: var(--az-radius); font-weight: 600; padding: .35em .6em; }

/* ---- Login ------------------------------------------------------------ */
.az-login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eef4fb 0%, #f5f6f8 60%);
    padding: 1.25rem;
}
.az-login-card {
    width: 100%; max-width: 400px; background: #fff;
    border: 1px solid var(--az-line); border-radius: var(--az-radius);
    box-shadow: 0 6.4px 14.4px rgba(0, 0, 0, .12), 0 1.2px 3.6px rgba(0, 0, 0, .1);
    padding: 2rem 1.9rem;
}
.az-login-mark {
    width: 44px; height: 44px; border-radius: var(--az-radius);
    background: var(--az-blue); color: #fff; display: grid; place-items: center;
    font-size: 1.3rem; margin-bottom: .9rem;
}
.az-login-card h1 { font-size: 1.2rem; font-weight: 600; margin: 0; }
.az-login-card .subtitle { color: var(--az-ink-2); font-size: .85rem; margin-bottom: 1.4rem; }

.content-header h1 { font-size: 1.35rem; font-weight: 600; }
.main-footer { border-top: 1px solid var(--az-line); color: var(--az-ink-2); font-size: .82rem; }
