﻿/* ---- Technoran Minimal Corporate Style with Dark Mode ---- */

:root {
    --primary: #0078d4;
    --primary-dark: #005ea6;
    --bg: #f9fbfd;
    --surface: #ffffff;
    --text: #1e1e1e;
    --muted: #6a6a6a;
    --border: #e6e6e6;
    --shadow: 0 10px 25px rgba(0,0,0,.05);
}

    :root[data-theme="dark"] {
        --primary: #4aa3ff;
        --primary-dark: #2a7bd6;
        --bg: #0f1720;
        --surface: #101923;
        --text: #eef2f6;
        --muted: #9db0c2;
        --border: #203042;
        --shadow: 0 10px 25px rgba(0,0,0,.25);
    }

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 600px at 50% -10%, rgba(0,120,212,.06), transparent 60%), var(--bg);
    display: flex;
    flex-direction: column;
}

.header {
    padding: 2rem 1rem 1rem;
}

.header-row {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
}

.logo {
    width: 512px;
    height: 106px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.brand-text h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--primary);
}

.subtitle {
    margin: .25rem 0 0;
    color: var(--muted);
    font-size: .95rem;
}

.actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    font-weight: 600;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c4c4c4;
    box-shadow: var(--shadow);
}

    .dot.ok {
        background: #22c55e;
    }

    .dot.warn {
        background: #f59e0b;
    }

    .dot.err {
        background: #ef4444;
    }

.content {
    flex: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
}

h2 {
    color: var(--primary-dark);
    margin-top: 0;
}

.links {
    margin-top: 1.5rem;
}

.btn {
    display: inline-block;
    padding: .75rem 1.25rem;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: transform .06s ease, background .15s ease;
}

    .btn:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }

    .btn.secondary {
        background: transparent;
        color: var(--primary);
        border: 1px solid var(--primary);
    }

        .btn.secondary:hover {
            background: rgba(0,120,212,.08);
        }

    .btn.ghost {
        background: transparent;
        color: var(--text);
        border: 1px solid var(--border);
    }

        .btn.ghost:hover {
            background: rgba(0,0,0,.06);
        }

:root[data-theme="dark"] .btn.ghost:hover {
    background: rgba(255,255,255,.06);
}

.info-grid {
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 980px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow);
    text-align: left;
}

    .card h3 {
        margin: .25rem 0 .5rem;
        color: var(--primary);
    }

    .card p {
        margin: 0;
        color: var(--text);
        opacity: .9;
    }

.footer {
    font-size: .9rem;
    color: var(--muted);
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

    .footer a {
        color: var(--primary-dark);
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }

@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .brand {
        justify-content: center;
    }

    .actions {
        justify-content: center;
    }
}

/* ---- Alert banner (locked / degraded / offline) ---- */

.service-alert {
    max-width: 980px;
    margin: 1rem auto 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: #fff4c2;
    border: 1px solid #e5c859;
    color: #7a5a00;
    font-weight: 600;
    box-shadow: var(--shadow);
    text-align: center;
}

:root[data-theme="dark"] .service-alert {
    background: #3a2f00;
    border-color: #9b7f15;
    color: #f8e8a4;
}
