/* ============================================================
   RLENK-IT BURNIN / REMOTE MONITORING
   Design angelehnt an rlenk-it.de
   ============================================================ */

:root {
    /* --------------------------------------------------------
       RLENK-IT GRUNDFARBEN
       -------------------------------------------------------- */

    --page-bg: #344f69;
    --page-bg-dark: #243c52;
    --page-bg-deep: #172b3d;

    --navy: #162b3f;
    --navy-dark: #102334;

    --panel: rgba(25, 48, 67, 0.96);
    --panel-dark: rgba(18, 39, 56, 0.97);
    --panel-soft: rgba(44, 70, 92, 0.72);

    --border: rgba(173, 206, 232, 0.15);
    --border-blue: rgba(70, 161, 235, 0.35);

    /* --------------------------------------------------------
       TEXT
       -------------------------------------------------------- */

    --text: #ffffff;
    --text-soft: #e2eaf0;
    --muted: #9fb2c1;
    --muted-dark: #7890a2;

    /* --------------------------------------------------------
       AKZENT
       -------------------------------------------------------- */

    --accent: #479ee8;
    --accent-light: #5cb0f3;
    --accent-dark: #2586d6;

    /* --------------------------------------------------------
       STATUS
       -------------------------------------------------------- */

    --online: #5fe08a;
    --offline: #ff6464;
    --error: #ff9b4a;
    --finished: #58aaf0;
    --cancelled: #c39cff;

    /* --------------------------------------------------------
       SONSTIGES
       -------------------------------------------------------- */

    --radius: 18px;
    --radius-small: 10px;

    --shadow:
        0 18px 50px
        rgba(2, 14, 24, 0.30);
}

/* ============================================================
   RESET
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;

    min-height: 100vh;

    position: relative;

    color: var(--text);

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background:
        radial-gradient(
            circle at 48% 0%,
            rgba(93, 144, 184, 0.25),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            var(--page-bg) 0%,
            var(--page-bg-dark) 52%,
            var(--page-bg-deep) 100%
        );

    background-attachment: fixed;
}

/* ============================================================
   BINÄR-HINTERGRUND
   ============================================================ */

body::before {
    content:
        "01001101 01100101 01101110 01110011 01100011 01101000 00100000 01001001 01010100 "
        "01110010 01101100 01100101 01101110 01101011 00101101 01001001 01010100 "
        "01010011 01011001 01010011 01010100 01000101 01001101 00100000 01001111 01001110 01001100 01001001 01001110 01000101 "
        "01000010 01010101 01010010 01001110 01001001 01001110 "
        "01010010 01000101 01001101 01001111 01010100 01000101 "
        "01001101 01001111 01001110 01001001 01010100 01001111 01010010 01001001 01001110 01000111 "
        "01010011 01000101 01010010 01010110 01001001 01000011 01000101 "
        "01000100 01001001 01000001 01000111 01001110 01001111 01010011 01000101";

    position: fixed;

    inset: 0;

    z-index: 0;

    overflow: hidden;

    padding:
        38px 10px;

    pointer-events: none;

    user-select: none;

    color:
        rgba(
            83,
            169,
            236,
            0.075
        );

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 25px;

    font-weight: 600;

    line-height: 7.3;

    letter-spacing: 8px;

    word-spacing: 18px;

    word-break: break-all;

    text-shadow:
        0 0 18px
        rgba(
            74,
            158,
            226,
            0.08
        );
}

/* leichte Abdunklung zur besseren Lesbarkeit */

body::after {
    content: "";

    position: fixed;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(15, 37, 54, 0.05),
            rgba(20, 42, 60, 0.01),
            rgba(15, 37, 54, 0.05)
        );
}

/* ============================================================
   SEITENCONTAINER
   ============================================================ */

.portal {
    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 1380px;

    margin: 0 auto;

    padding:
        28px 28px 45px;
}

.portal-detail {
    max-width: 900px;
}

/* ============================================================
   HEADER
   ============================================================ */

.portal-header {
    width: 100%;

    margin-bottom: 38px;

    padding:
        17px 24px;

    text-align: center;

    background:
        rgba(
            20,
            42,
            61,
            0.93
        );

    border:
        1px solid
        rgba(
            143,
            187,
            220,
            0.12
        );

    border-radius: 40px;

    box-shadow:
        0 10px 35px
        rgba(
            0,
            0,
            0,
            0.16
        );

    backdrop-filter:
        blur(9px);
}

/* ============================================================
   LOGO / BRAND
   ============================================================ */

.brand {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 3px;

    margin: 0;

    color: #ffffff;

    font-size: 30px;

    font-weight: 800;

    letter-spacing: -1px;
}

.brand-r {
    color: var(--accent);
}

.portal-name {
    margin-top: 4px;

    color: var(--muted);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 4px;
}

/* ============================================================
   SYSTEM ONLINE
   ============================================================ */

.system-line {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 12px;

    padding:
        6px 12px;

    border:
        1px solid
        rgba(
            95,
            224,
            138,
            0.22
        );

    border-radius: 30px;

    background:
        rgba(
            95,
            224,
            138,
            0.055
        );

    color: var(--online);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.system-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--online);

    box-shadow:
        0 0 10px
        rgba(
            95,
            224,
            138,
            0.9
        );
}

/* ============================================================
   ÜBERSCHRIFT
   ============================================================ */

.section-heading {
    margin:
        0 0 22px;
}

.section-kicker {
    color: var(--accent-light);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 2px;
}

.section-title {
    margin:
        7px 0 0;

    color: #ffffff;

    font-size: 28px;

    font-weight: 750;

    line-height: 1.15;
}

/* ============================================================
   STATUSÜBERSICHT
   ============================================================ */

.summary-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap: 14px;

    margin-bottom: 28px;
}

.summary-card {
    position: relative;

    overflow: hidden;

    min-height: 105px;

    padding: 20px;

    border:
        1px solid
        var(--border);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(27, 53, 73, 0.95),
            rgba(20, 43, 61, 0.95)
        );

    box-shadow:
        0 10px 30px
        rgba(
            4,
            19,
            31,
            0.16
        );
}

.summary-card::after {
    content: "";

    position: absolute;

    right: -30px;
    bottom: -48px;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(
                75,
                164,
                232,
                0.12
            ),
            transparent 70%
        );
}

.summary-value {
    position: relative;

    z-index: 1;

    font-size: 31px;

    font-weight: 800;

    line-height: 1;
}

.summary-label {
    position: relative;

    z-index: 1;

    margin-top: 10px;

    color: var(--muted);

    font-size: 11px;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.summary-online
.summary-value {
    color: var(--online);
}

.summary-offline
.summary-value {
    color: var(--offline);
}

.summary-error
.summary-value {
    color: var(--error);
}

.summary-finished
.summary-value {
    color: var(--accent-light);
}

/* ============================================================
   SESSION GRID
   ============================================================ */

.session-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                355px,
                1fr
            )
        );

    gap: 18px;
}

/* ============================================================
   SESSION CARD
   ============================================================ */

.session-card {
    position: relative;

    overflow: hidden;

    padding: 23px;

    border:
        1px solid
        rgba(
            139,
            185,
            218,
            0.16
        );

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(26, 52, 72, 0.97),
            rgba(17, 38, 55, 0.98)
        );

    box-shadow:
        var(--shadow);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.session-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(
                74,
                163,
                233,
                0.85
            ),
            transparent
        );
}

.session-card:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(
            91,
            174,
            239,
            0.32
        );

    box-shadow:
        0 20px 55px
        rgba(
            3,
            16,
            27,
            0.36
        );
}

/* ============================================================
   CARD HEADER
   ============================================================ */

.session-top {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 20px;
}

.computer-name {
    color: #ffffff;

    font-size: 18px;

    font-weight: 750;

    overflow-wrap: anywhere;
}

.customer-name {
    margin-top: 5px;

    color: var(--text-soft);

    font-size: 12px;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */

.status-badge {
    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        7px 10px;

    border-radius: 40px;

    font-size: 10px;

    font-weight: 750;

    letter-spacing: 0.6px;

    text-transform: uppercase;
}

.status-badge::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;
}

/* ONLINE */

.status-online {
    color: var(--online);

    border:
        1px solid
        rgba(
            95,
            224,
            138,
            0.32
        );

    background:
        rgba(
            95,
            224,
            138,
            0.07
        );
}

.status-online::before {
    background:
        var(--online);

    box-shadow:
        0 0 9px
        rgba(
            95,
            224,
            138,
            0.85
        );
}

/* OFFLINE */

.status-offline {
    color: var(--offline);

    border:
        1px solid
        rgba(
            255,
            100,
            100,
            0.32
        );

    background:
        rgba(
            255,
            100,
            100,
            0.07
        );
}

.status-offline::before {
    background:
        var(--offline);
}

/* ABGESCHLOSSEN */

.status-finished {
    color: var(--accent-light);

    border:
        1px solid
        rgba(
            92,
            176,
            243,
            0.32
        );

    background:
        rgba(
            92,
            176,
            243,
            0.07
        );
}

.status-finished::before {
    background:
        var(--accent-light);
}

/* FEHLER */

.status-error {
    color: var(--error);

    border:
        1px solid
        rgba(
            255,
            155,
            74,
            0.33
        );

    background:
        rgba(
            255,
            155,
            74,
            0.07
        );
}

.status-error::before {
    background:
        var(--error);
}

/* ABGEBROCHEN */

.status-cancelled {
    color: var(--cancelled);

    border:
        1px solid
        rgba(
            195,
            156,
            255,
            0.30
        );

    background:
        rgba(
            195,
            156,
            255,
            0.07
        );
}

.status-cancelled::before {
    background:
        var(--cancelled);
}

/* ABSCHLUSSPHASE */

.status-finalizing {
    color: var(--accent-light);

    border:
        1px solid
        rgba(
            92,
            176,
            243,
            0.30
        );

    background:
        rgba(
            92,
            176,
            243,
            0.07
        );
}

.status-finalizing::before {
    background:
        var(--accent-light);
}

/* ============================================================
   AKTUELLER TEST
   ============================================================ */

.test-caption {
    color: var(--muted);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

.test-name {
    margin-top: 5px;

    color: #ffffff;

    font-size: 17px;

    font-weight: 750;
}

.device-name {
    margin-top: 5px;

    color: #b8c9d6;

    font-size: 12px;

    overflow-wrap: anywhere;
}

/* ============================================================
   FORTSCHRITT
   ============================================================ */

.progress-block {
    margin-top: 20px;
}

.progress-line {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 7px;

    color: var(--text-soft);

    font-size: 11px;
}

.progress-value {
    color: var(--accent-light);

    font-weight: 750;
}

.progress-track {
    width: 100%;

    height: 10px;

    overflow: hidden;

    border-radius: 30px;

    background:
        rgba(
            255,
            255,
            255,
            0.09
        );
}

.progress-fill {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--accent-dark),
            var(--accent-light)
        );

    box-shadow:
        0 0 12px
        rgba(
            76,
            164,
            232,
            0.30
        );

    transition:
        width 0.45s ease;
}

.progress-track-small {
    height: 6px;
}

.progress-section {
    margin-top: 13px;
}

/* ============================================================
   INFO GRID
   ============================================================ */

.info-grid {
    display: grid;

    grid-template-columns:
        140px 1fr;

    gap:
        8px 14px;

    margin-top: 22px;

    padding-top: 19px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.075
        );

    font-size: 13px;
}

.info-label {
    color: var(--muted);
}

.info-value {
    color: #ffffff;

    font-weight: 600;

    overflow-wrap: anywhere;
}

.value-warning {
    color: var(--offline);
}

.value-error {
    color: var(--error);
}

.value-online {
    color: var(--online);
}

/* ============================================================
   MESSAGE / FEHLERBOX
   ============================================================ */

.message-box {
    margin-top: 19px;

    padding:
        14px 16px;

    border-left:
        3px solid
        var(--accent);

    border-radius:
        0 9px 9px 0;

    background:
        rgba(
            68,
            157,
            229,
            0.07
        );

    color: var(--text-soft);

    font-size: 13px;

    line-height: 1.5;
}

.error-box {
    margin-top: 19px;

    padding:
        14px 16px;

    border-left:
        3px solid
        var(--error);

    border-radius:
        0 9px 9px 0;

    background:
        rgba(
            255,
            155,
            74,
            0.08
        );

    color: #ffd1ad;

    font-size: 13px;

    line-height: 1.5;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.actions {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 22px;
}

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding:
        9px 16px;

    border: 0;

    border-radius: 28px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.button:hover {
    transform:
        translateY(-1px);
}

.button-primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-dark)
        );

    box-shadow:
        0 6px 17px
        rgba(
            44,
            133,
            205,
            0.26
        );
}

.button-primary:hover {
    background:
        linear-gradient(
            135deg,
            var(--accent-light),
            var(--accent)
        );
}

.button-secondary {
    color: #ffffff;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.15
        );

    background:
        rgba(
            255,
            255,
            255,
            0.055
        );
}

.button-danger {
    color: #ff9191;

    border:
        1px solid
        rgba(
            255,
            100,
            100,
            0.32
        );

    background:
        rgba(
            255,
            100,
            100,
            0.055
        );
}

.button-danger:hover {
    background:
        rgba(
            255,
            100,
            100,
            0.10
        );
}

.delete-form {
    margin: 0;
}

/* ============================================================
   NOTICES
   ============================================================ */

.notice {
    margin-bottom: 22px;

    padding:
        13px 17px;

    border-radius: 12px;

    font-size: 13px;

    font-weight: 600;

    backdrop-filter:
        blur(5px);
}

.notice-success {
    color: var(--online);

    border:
        1px solid
        rgba(
            95,
            224,
            138,
            0.27
        );

    background:
        rgba(
            95,
            224,
            138,
            0.07
        );
}

.notice-warning {
    color: #ffd087;

    border:
        1px solid
        rgba(
            255,
            155,
            74,
            0.27
        );

    background:
        rgba(
            255,
            155,
            74,
            0.07
        );
}

.notice-error {
    color: var(--offline);

    border:
        1px solid
        rgba(
            255,
            100,
            100,
            0.27
        );

    background:
        rgba(
            255,
            100,
            100,
            0.07
        );
}

/* ============================================================
   DETAILANSICHT
   ============================================================ */

.detail-card {
    padding: 30px;
}

.detail-status {
    display: flex;

    flex-direction: column;

    align-items: center;

    margin-bottom: 28px;

    text-align: center;
}

.detail-status
.status-badge {
    padding:
        9px 14px;

    font-size: 11px;
}

.detail-computer {
    margin-top: 16px;

    color: #ffffff;

    font-size: 25px;

    font-weight: 800;
}

.detail-customer {
    margin-top: 5px;

    color: var(--text-soft);

    font-size: 13px;
}

.detail-progress-panel {
    margin-top: 20px;

    padding: 20px;

    border:
        1px solid
        rgba(
            139,
            185,
            218,
            0.14
        );

    border-radius: 15px;

    background:
        rgba(
            255,
            255,
            255,
            0.025
        );
}

.detail-progress-title {
    margin-bottom: 17px;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;
}

/* ============================================================
   EMPTY / ERROR
   ============================================================ */

.empty-state {
    grid-column:
        1 / -1;

    padding:
        60px 25px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(26, 52, 72, 0.95),
            rgba(17, 38, 55, 0.95)
        );

    color: var(--text-soft);

    text-align: center;
}

.error-state {
    padding:
        45px 20px;

    color: var(--offline);

    text-align: center;

    font-size: 18px;

    font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */

.portal-footer {
    margin-top: 34px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );

    color: #91a7b7;

    font-size: 11px;

    text-align: center;
}

.footer-accent {
    color: var(--accent-light);

    font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (
    max-width: 950px
) {

    .summary-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }
}

@media (
    max-width: 650px
) {

    body::before {
        font-size: 16px;

        line-height: 8;

        letter-spacing: 5px;

        opacity: 0.8;
    }

    .portal {
        padding:
            18px 13px 30px;
    }

    .portal-header {
        border-radius: 26px;

        padding:
            15px;
    }

    .brand {
        font-size: 27px;
    }

    .portal-name {
        font-size: 9px;

        letter-spacing: 2.5px;
    }

    .section-title {
        font-size: 24px;
    }

    .summary-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        gap: 9px;
    }

    .summary-card {
        min-height: 92px;

        padding: 16px;
    }

    .summary-value {
        font-size: 27px;
    }

    .session-grid {
        grid-template-columns:
            1fr;
    }

    .session-card {
        padding: 19px;
    }

    .session-top {
        flex-direction: column;

        gap: 11px;
    }

    .info-grid {
        grid-template-columns:
            105px 1fr;

        font-size: 12px;
    }

    .detail-card {
        padding: 20px;
    }

    .detail-computer {
        font-size: 21px;
    }

    .actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
/* ============================================================
   RLENK-IT LOGO
   ============================================================ */

.brand-logo {
    display: block;

    width: min(
        420px,
        80%
    );

    margin:
        0 auto;

    text-decoration: none;
}

.brand-logo img {
    display: block;

    width: 100%;
    height: auto;

    filter:
        drop-shadow(
            0 4px 10px
            rgba(
                0,
                0,
                0,
                0.18
            )
        );
}
@media (
    max-width: 650px
) {

    .brand-logo {
        width: min(
            330px,
            92%
        );
    }
}