/* streamer.css — final + glow */


/* -------------------------
   GLOBAL
-------------------------- */

html,
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(
        circle at top,
        #2b2b4f 0%,
        #2b2b4f 25%,
        #050509 60%,
        #000 120%
    );
    color: #eee;
    margin: 0;
    padding: 20px;
    min-height: 100vh; /* Verhindert den Cut am unteren Rand */
}

/* Wrapper für das Streamer-Panel: max. 75% Breite */
.streamer-page {
    max-width: 75vw;
    margin: 0 auto;
}

h1 {
    margin-top: 0;
    color: #e8ebff;
    text-shadow: 0 0 12px rgba(120,140,255,0.45);
}

a.logout {
    color: #ff6b6b;
    text-decoration: none;
}

a.logout:hover {
    text-decoration: underline;
}

.layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}


/* -------------------------
   CARDS (überall)
-------------------------- */

.card,
.overlay-card {
    background: #1a1c25;
    padding: 16px 20px;
    border-radius: 12px;

    border: 1px solid rgba(120,140,255,0.14);
    box-shadow:
        0 0 18px rgba(90,110,255,0.25),
        0 12px 28px rgba(0,0,0,0.8);

    flex: 1 1 360px;
}

.overlay-card {
    padding: 14px 18px;
    margin-bottom: 18px;
}


/* -------------------------
   TABLE
-------------------------- */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    padding: 6px 4px;
    border-bottom: 1px solid rgba(80,80,120,0.25);
    text-align: left;
}

th {
    font-weight: 600;
    color: #cfd3ff;
}


/* -------------------------
   INPUTS
-------------------------- */

input[type="number"],
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 4px 6px;
    border-radius: 6px;

    background: #14151c;
    border: 1px solid rgba(140,150,255,0.25);
    color: #eee;

    box-shadow: 0 0 8px rgba(110,130,255,0.25) inset;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #6c90ff;
    box-shadow:
        0 0 12px rgba(120,150,255,0.45),
        0 0 6px rgba(120,150,255,0.35) inset;
}

.center {
    text-align: center;
}


/* -------------------------
   BUTTONS
-------------------------- */

.btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;

    background: linear-gradient(135deg, #7b5cff, #4b8fff);
    color: #fff;
    font-size: 14px;
    font-weight: 600;

    box-shadow:
        0 0 15px rgba(75,143,255,0.35),
        0 0 6px rgba(75,143,255,0.25) inset;
}

.btn:hover {
    filter: brightness(1.07);
}


/* -------------------------
   TEXT / SMALL HINTS
-------------------------- */

.hint {
    font-size: 13px;
    color: #b8c5ff;
}


/* -------------------------
   OVERLAY URL INPUT
-------------------------- */

.overlay-url-input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border-radius: 6px;

    background: #0c0d11;
    border: 1px solid rgba(140,160,255,0.25);
    color: #fff;
    font-family: monospace;
    font-size: 13px;

    box-shadow: 0 0 10px rgba(120,140,255,0.3) inset;
}

.overlay-url-input:focus {
    outline: none;
    border-color: #6f95ff;
    box-shadow:
        0 0 14px rgba(120,140,255,0.45),
        0 0 8px rgba(120,140,255,0.35) inset;
}


/* -------------------------
   CONFIG GRID (Overlay-Einstellungen)
-------------------------- */

.cfg-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr)); /* 7 Spalten: 4 Zahlen + 3 Farben */
    column-gap: 16px;
    row-gap: 8px;
    margin-top: 10px;
    align-items: start;
}

/* jede Zelle: Label oben, Input, kleiner Abstand, Hint direkt darunter */
.cfg-grid label {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;          /* Abstand zwischen Label, Input und Hint */
    min-width: 0;      /* verhindert unnötiges Aufspreizen */
}

.cfg-grid label small {
    font-size: 11px;
    color: #888;
}

/* Zahlen-/Textfelder in den Overlay-Einstellungen etwas schmaler halten */
.cfg-grid input[name="overlay_width"],
.cfg-grid input[name="overlay_height"],
.cfg-grid input[name="scroll_speed"],
.cfg-grid input[name="scroll_pause_ms"] {
    width: 90px;  /* bei Bedarf 80–120 anpassen */
}


/* -------------------------
   NEW GOAL ROW
-------------------------- */

.new-goal-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.new-goal-row input[type="text"],
.new-goal-row input[type="number"] {
    width: 100%;
}

.new-goal-row .title {
    flex: 3 1 0;
}

.new-goal-row .subs {
    flex: 1 1 0;
    max-width: 120px;
}


/* -------------------------
   ÜBERSCHRIFT-FELD FÜR ZIELE
-------------------------- */

.goals-header-label {
    font-size: 13px;
    margin: 12px 0 6px;
    display: block;
}

.goals-header-label input {
    margin-top: 4px;
}


/* -------------------------
   LOGIN / REGISTER
-------------------------- */

.login-body {
    background: radial-gradient(
        circle at top,
        #2b2b4f 0%,
        #2b2b4f 25%,
        #050509 60%,
        #000 120%
    );
    color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.login-card {
    background: #1d1f27;
    padding: 24px 30px;
    border-radius: 12px;

    border: 1px solid rgba(120,140,255,0.18);
    box-shadow:
        0 0 25px rgba(90,110,255,0.35),
        0 0 10px rgba(90,110,255,0.25) inset;

    min-width: 280px;
    max-width: 360px;
}

.login-card h2 {
    margin-top: 0;
    color: #e9ecff;
    text-shadow: 0 0 10px rgba(120,140,255,0.4);
}

.login-card button {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: none;

    background: linear-gradient(135deg, #7b5cff, #4b8fff);
    color: #fff;
    margin-bottom: 12px;
    font-size: 16px;
    box-sizing: border-box;

    box-shadow:
        0 0 14px rgba(75,143,255,0.35),
        0 0 7px rgba(75,143,255,0.25) inset;
}

.login-card button:hover {
    filter: brightness(1.08);
}

.error {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 14px;
}
/* -------------------------
   Alerts (Backend) – wie Community Quiz
-------------------------- */

.alert {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
}

/* Fehler-Meldung (rot) */
.alert-error {
    background: rgba(185, 28, 28, 0.35);
    border: 1px solid rgba(185, 28, 28, 0.7);
    color: #fee2e2;
}

/* Info / Erfolgs-Meldung (grün) */
.alert-info {
    background: rgba(22, 163, 74, 0.35);
    border: 1px solid rgba(22, 163, 74, 0.7);
    color: #dcfce7;
}

.switch-link {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}

.switch-link a {
    color: #7b9dff;
    text-decoration: none;
}

.switch-link a:hover {
    text-decoration: underline;
}

.subtitle {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
    margin-bottom: 16px;
}

th.center,
td.center {
    text-align: center;
}

td.center input[type="checkbox"] {
    display: block;
    margin: 0 auto;
}
/* Tool-Überschriften: Links wie normalen Text darstellen */
th.center a {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: inherit;
    cursor: default;
    transition: text-shadow 0.25s ease, color 0.25s ease;
}

/* Hover: leichtes Glühen */
th.center a:hover {
    color: #e8ebff !important;
    text-shadow:
        0 0 6px rgba(120,140,255,0.55),
        0 0 12px rgba(120,140,255,0.35);
}

/* Unterdrückt visited/active Effekte */
th.center a:visited,
th.center a:active {
    color: inherit !important;
    text-decoration: none !important;
}
