/* =====================================================================
   PROJECT : tmonitor
   FILE    : assets/style.css
   PURPOSE : A thin layer over Bootstrap 5. White theme, blue actions.
             Nothing here overrides Bootstrap's grid or components.
   ===================================================================== */

:root {
    --tm-blue:   #0d6efd;
    --tm-border: #e5e8ec;
    --tm-bg:     #f6f8fa;
    --tm-ink:    #1c2128;
    --tm-muted:  #6b7280;
}

body {
    background-color: var(--tm-bg);
    color: var(--tm-ink);
    font-size: 0.95rem;
}

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */

.card {
    border: 1px solid var(--tm-border);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.card-header {
    border-bottom: 1px solid var(--tm-border);
    border-radius: 10px 10px 0 0 !important;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

/* ---------------------------------------------------------------------
   Stat cards
   --------------------------------------------------------------------- */

.stat-card .card-body {
    padding: 1.1rem 1.25rem;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--tm-muted);
    margin-bottom: 0.35rem;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.15;
}

.stat-value-sm {
    font-size: 1.05rem;
    font-weight: 600;
}

/* ---------------------------------------------------------------------
   Brand mark
   --------------------------------------------------------------------- */

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background-color: var(--tm-blue);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-mark-sm {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.75rem;
}

/* ---------------------------------------------------------------------
   Login
   --------------------------------------------------------------------- */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.login-wrap {
    width: 100%;
    max-width: 400px;
}

.login-card {
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.08);
    background-color: #fff;
}

#password {
    letter-spacing: 0.5em;
    padding-left: 0.5em; /* keeps the dots visually centred */
}

/* ---------------------------------------------------------------------
   Tables
   --------------------------------------------------------------------- */

.table > :not(caption) > * > * {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.table thead th {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--tm-muted);
    white-space: nowrap;
}

.table td {
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------------
   Raw message box
   --------------------------------------------------------------------- */

.raw-box {
    background-color: var(--tm-bg);
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 55vh;
    overflow-y: auto;
    margin: 0;
}

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}

.form-text {
    font-size: 0.8rem;
}

.form-check-input:checked {
    background-color: var(--tm-blue);
    border-color: var(--tm-blue);
}

/* Visible keyboard focus everywhere. */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus-visible {
    border-color: var(--tm-blue);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.18);
}

/* ---------------------------------------------------------------------
   Navbar
   --------------------------------------------------------------------- */

.navbar {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.navbar-brand {
    font-size: 1.05rem;
}

/* ---------------------------------------------------------------------
   Small screens
   --------------------------------------------------------------------- */

@media (max-width: 575.98px) {
    .stat-value    { font-size: 1.5rem; }
    .stat-value-sm { font-size: 0.95rem; }
    .card-header   { flex-wrap: wrap; }
}

/* Respect the OS reduced-motion setting. */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
