/* ─────────────────────────────────────────────────────────────────────────
   SiteWatch — basis stijl (topbar, cards, buttons, forms, badges)
   ───────────────────────────────────────────────────────────────────────── */

:root {
    --heading-font: "Raleway", sans-serif;
    --main-font: "Roboto", sans-serif;

    --main-blue: #013079;
    --light-blue: #5496b8;
    --dark-blue: #233a8b;

    --light-grey: #f7f7f7;
    --off-white: #ffffffbf;

    --bg-dark1: #001830;
    --bg-dark2: #1a253d;
    --bg-dark3: #1d3058;

    --line: #e6e8ee;
    --ink: #1a1d23;
    --muted: #6b7280;

    --up-green: #16a34a;
    --up-green-bg: #eafaf0;
    --down-red: #dc2626;
    --down-red-bg: #fdecec;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    background: var(--light-grey);
    color: var(--ink);
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

a {
    color: var(--main-blue);
}

/* ── Topbar ───────────────────────────────────────────────────────────── */
.app-topbar {
    background: var(--bg-dark2);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.01em;
}

.app-logo:hover {
    color: #fff;
}

.app-logo .mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(160deg, var(--light-blue), var(--main-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.app-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.app-nav a.active {
    color: #fff;
    background: rgba(84,150,184,0.25);
}

.app-nav .btn-logout {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
}

/* ── Layout ───────────────────────────────────────────────────────────── */
.app-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 20px 60px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.page-title {
    font-size: 1.5rem;
    margin: 0 0 4px;
    color: var(--ink);
}

.page-subtitle {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* ── Cards ────────────────────────────────────────────────────────────── */
.card-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.6rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--main-blue);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
}

.btn-brand:hover {
    background: var(--dark-blue);
    color: #fff;
}

.btn-outline-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--main-blue) !important;
    border: 1px solid var(--main-blue);
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
}

.btn-outline-brand:hover {
    background: #eef3fb;
}

.btn-danger-ghost {
    background: transparent;
    color: var(--down-red) !important;
    border: 1px solid #f3c6c6;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-danger-ghost:hover {
    background: var(--down-red-bg);
}

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-control {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(84,150,184,0.18);
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--bg-dark1), var(--bg-dark3));
    padding: 20px;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.4rem 2.2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 19px;
    color: var(--ink);
    margin-bottom: 6px;
}

.auth-logo .mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(160deg, var(--light-blue), var(--main-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
}

.auth-sub {
    color: var(--muted);
    font-size: 13.5px;
    margin-bottom: 24px;
}

.auth-alert {
    background: var(--down-red-bg);
    color: var(--down-red);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
}

.auth-footer {
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 20px;
}

/* ── Status badges ────────────────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

.status-up {
    color: var(--up-green);
    background: var(--up-green-bg);
}

.status-down {
    color: var(--down-red);
    background: var(--down-red-bg);
}

.status-unknown {
    color: var(--muted);
    background: #f0f1f4;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.status-down .status-dot {
    animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ── Misc ─────────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.empty-state i {
    font-size: 34px;
    color: var(--light-blue);
    margin-bottom: 14px;
    display: block;
}

.table-clean {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.table-clean th {
    text-align: left;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.table-clean td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f2f5;
}

.stat-pill {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
}

.badge-plan {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--main-blue);
    background: #eaf0fb;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}
