/* global.css - base layout, colour scheme, responsiveness */

:root {
    --bg: #0f1512;
    --card: #141c18;
    --card2: #101714;
    --text: #e7efe9;
    --muted: #a8b6ad;
    --border: rgba(255,255,255,0.12);

    --accent: #2bb673;      /* GMS green */
    --accent2: #1f8f5a;
    --danger: #e35d5d;
    --warn: #ffb020;

    --field-bg: #0e1411;
    --field-text: #e7efe9;
    --field-border: rgba(255,255,255,0.18);
    --field-border-focus: rgba(43,182,115,0.65);

    --radius: 14px;
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
}

body.app-body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    position: relative;
}

body.app-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(1000px 700px at 20% 10%, rgba(43,182,115,0.12), transparent 60%),
        radial-gradient(900px 600px at 85% 20%, rgba(31,143,90,0.10), transparent 60%),
        var(--bg);
}


.page {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 18px 16px;
    flex-direction: column;
    gap: 14px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.h1, .h2 {
    margin: 0 0 10px 0;
    line-height: 1.2;
    font-weight: 700;
}
.h1 { font-size: 24px; }
.h2 { font-size: 18px; }

.copy {
    margin: 0 0 12px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.field-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.field-label {
    font-size: 13px;
    color: var(--muted);
}

.field-input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    background: var(--field-bg);
    color: var(--field-text);
    border: 1px solid var(--field-border);
    outline: none;
}

.field-input:focus {
    border-color: var(--field-border-focus);
    box-shadow: 0 0 0 3px rgba(43,182,115,0.15);
}

.field-error {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--danger);
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.actions-split {
    justify-content: space-between;
    gap: 10px;
}

.btn {
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    filter: brightness(1.08);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(180deg, var(--accent), var(--accent2)) !important;
    border-color: rgba(0,0,0,0.25);
    color: #07110b !important;
}

.btn-secondary {
    background: rgba(255,255,255,0.03);
}

.status-message {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--muted);
    margin: 10px 0 12px 0;
    min-height: 18px;
}

.status-ok { border-color: rgba(43,182,115,0.40); color: #bfead4; }
.status-warn { border-color: rgba(255,176,32,0.45); color: #ffe1a8; }
.status-error { border-color: rgba(227,93,93,0.50); color: #ffc2c2; }

.hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.footer {
    width: 100%;
    max-width: 520px;
    padding: 8px 6px;
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    text-align: center;
}

@media (min-width: 640px) {
    .h1 { font-size: 28px; }
    .page { padding: 40px 18px 22px 18px; }
}

.topbar {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.03);
    box-shadow: var(--shadow);
    padding: 10px 12px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brandline {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brandline .title {
    font-weight: 800;
    font-size: 14px;
}

.brandline .sub {
    font-size: 12px;
    color: var(--muted);
}

.shell {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 14px 18px 14px;
}


.shell {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 14px 18px 14px;
}

.topbar {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.03);
    box-shadow: var(--shadow);
    padding: 10px 12px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brandline {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brandline .title {
    font-weight: 800;
    font-size: 14px;
}

.brandline .sub {
    font-size: 12px;
    color: var(--muted);
}

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

.nav a {
    color: var(--text);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.0);
}

.nav a:hover {
    text-decoration: none;
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.03);
}

.hamburger {
    display: none;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 700;
}

.mobile-nav {
    display: none;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 10px;
    gap: 8px;
}

.mobile-nav a {
    display: block;
    padding: 10px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.02);
    color: var(--text);
}

.mobile-nav a:hover {
    text-decoration: none;
    filter: brightness(1.08);
}
.brandlogo img {
    height: 34px;
    width: auto;
    display: block;
}

@media (max-width: 720px) {
    .brandlogo img {
        height: 28px;
    }
}
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 99999;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(20, 20, 20, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cookie-title {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 2px;
}

.cookie-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .cookie-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        justify-content: flex-end;
    }
}
/* Shared panel style (used by IncidentView and others) */
.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.03);
    box-shadow: var(--shadow);
    padding: 14px;
}

/* Optional: warning panels */
.panel-warn {
    border-color: rgba(255,176,32,0.45);
    background: rgba(255,176,32,0.06);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none; /* you control with JS */
    align-items: center !important;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
    background: rgba(0,0,0,0.45);
}

    .modal-overlay .modal {
        width: min(640px, 100%);
        max-height: calc(100vh - 32px);
        overflow: auto;
    }
