/*
 * ChrisEmm Connect
 *
 * Datei:
 * /public/assets/css/app.css
 *
 * Aufgabe:
 * Kostenloses responsives Standarddesign.
 *
 * Bearbeitung:
 * Farben, Rundungen und Größen werden über die Variablen
 * unter :root gesteuert.
 *
 * Copyright:
 * Christian Melchert
 */

:root {
    --background: #070d19;
    --background-soft: #0b1324;

    --surface: #111b30;
    --surface-soft: #17233b;
    --surface-hover: #1c2b49;
    --surface-glass: rgba(17, 27, 48, 0.88);

    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.15);

    --text: #f7f9ff;
    --text-soft: #ccd5ea;
    --muted: #8f9db9;

    --primary: #6d7cff;
    --primary-hover: #5869ee;
    --primary-soft: rgba(109, 124, 255, 0.15);

    --success: #59d59b;
    --success-soft: rgba(89, 213, 155, 0.14);

    --danger: #ff6c7c;
    --danger-soft: rgba(255, 108, 124, 0.14);

    --warning: #f4c76b;

    --owner: #f2c86b;
    --admin: #ff7787;
    --moderator: #6fd1ff;
    --vip: #bc8cff;
    --user: #93a2c2;

    --radius-small: 10px;
    --radius: 16px;
    --radius-large: 24px;

    --shadow:
        0 24px 70px rgba(0, 0, 0, 0.34);

    --topbar-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 12% 4%,
            rgba(109, 124, 255, 0.20),
            transparent 32%
        ),
        radial-gradient(
            circle at 92% 92%,
            rgba(89, 213, 155, 0.10),
            transparent 26%
        ),
        var(--background);
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(109, 124, 255, 0.35);
    outline-offset: 2px;
}

.application {
    min-height: 100vh;

    display: grid;

    grid-template-rows:
        var(--topbar-height)
        minmax(0, 1fr)
        auto;
}

.topbar {
    position: relative;
    z-index: 50;

    min-height: var(--topbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 12px 24px;

    border-bottom:
        1px solid var(--border);

    background:
        rgba(7, 13, 25, 0.78);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);
}

.brand {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    color: var(--text);

    text-decoration: none;
}

.brand-mark {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 15px;

    color: #ffffff;

    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: -0.02em;

    background:
        linear-gradient(
            135deg,
            #7280ff,
            #55d0b0
        );

    box-shadow:
        0 12px 30px
        rgba(109, 124, 255, 0.28);
}

.brand-text {
    min-width: 0;
}

.brand-text strong,
.brand-text small {
    display: block;
}

.brand-text strong {
    font-size: 1rem;
}

.brand-text small {
    margin-top: 2px;

    color: var(--muted);

    font-size: 0.78rem;
}

.topbar-user {
    display: flex;
    align-items: center;

    gap: 14px;
}

.user-summary {
    text-align: right;
}

.user-summary strong,
.user-summary small {
    display: block;
}

.user-summary strong {
    font-size: 0.9rem;
}

.user-summary small {
    margin-top: 2px;

    color: var(--muted);

    font-size: 0.75rem;
}

.main-content {
    min-height: 0;

    padding: 18px;
}

.footer {
    padding: 16px 20px;

    color: var(--muted);

    font-size: 0.78rem;
    text-align: center;

    border-top:
        1px solid var(--border);

    background:
        rgba(7, 13, 25, 0.72);
}

.footer span {
    margin: 0 6px;
}

.button {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 10px 16px;

    border: 0;
    border-radius: 12px;

    color: #ffffff;

    text-decoration: none;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.16s ease,
        background 0.16s ease,
        opacity 0.16s ease;
}

.button:hover {
    transform:
        translateY(-1px);
}

.button:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.button-primary {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6176ff
        );

    box-shadow:
        0 12px 28px
        rgba(109, 124, 255, 0.22);
}

.button-primary:hover {
    background:
        linear-gradient(
            135deg,
            var(--primary-hover),
            #4f66ee
        );
}

.button-secondary {
    color: var(--text-soft);

    background:
        var(--surface-soft);

    border:
        1px solid var(--border);
}

.button-full {
    width: 100%;
}

.alert {
    width: min(760px, 100%);

    margin: 0 auto 16px;

    padding: 14px 16px;

    border-radius: var(--radius-small);

    border: 1px solid transparent;
}

.alert-error {
    color: #ffbec6;

    background:
        var(--danger-soft);

    border-color:
        rgba(255, 108, 124, 0.22);
}

.alert-success {
    color: #aaf0d1;

    background:
        var(--success-soft);

    border-color:
        rgba(89, 213, 155, 0.22);
}

/* Anmeldung */

.auth-wrapper {
    min-height:
        calc(
            100vh
            - var(--topbar-height)
            - 90px
        );

    display: grid;
    place-items: center;

    padding: 40px 16px;
}

.auth-card {
    width: min(460px, 100%);

    padding:
        clamp(
            24px,
            5vw,
            38px
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-large);

    background:
        var(--surface-glass);

    box-shadow:
        var(--shadow);

    backdrop-filter:
        blur(22px);
}

.auth-heading {
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-flex;

    margin-bottom: 14px;

    padding: 7px 11px;

    border-radius: 999px;

    color: #ccd2ff;

    font-size: 0.78rem;
    font-weight: 800;

    background:
        var(--primary-soft);
}

.auth-heading h1 {
    margin: 0;

    font-size:
        clamp(
            2rem,
            7vw,
            3rem
        );

    letter-spacing: -0.05em;
}

.auth-heading p {
    margin: 12px 0 0;

    color: var(--muted);

    line-height: 1.6;
}

.auth-form {
    display: grid;

    gap: 18px;
}

.auth-form label {
    display: grid;

    gap: 8px;

    color: var(--text-soft);

    font-size: 0.86rem;
    font-weight: 700;
}

.auth-form input {
    width: 100%;

    padding: 13px 14px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    color: var(--text);

    background:
        var(--background-soft);

    outline: none;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.auth-form input:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(109, 124, 255, 0.12);
}

.auth-information {
    display: grid;

    gap: 6px;

    margin-top: 24px;

    padding-top: 20px;

    border-top:
        1px solid var(--border);
}

.auth-information strong {
    color: var(--text-soft);

    font-size: 0.84rem;
}

.auth-information span {
    color: var(--muted);

    font-size: 0.78rem;
    line-height: 1.5;
}

/* Chat */

.chat-application {
    width: 100%;
    height:
        calc(
            100vh
            - var(--topbar-height)
            - 70px
        );

    min-height: 620px;

    display: grid;

    grid-template-columns:
        250px
        minmax(0, 1fr)
        270px;

    gap: 16px;
}

.chat-sidebar,
.chat-main {
    min-width: 0;
    min-height: 0;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-large);

    background:
        var(--surface-glass);

    box-shadow:
        0 18px 55px
        rgba(0, 0, 0, 0.20);

    backdrop-filter:
        blur(18px);
}

.chat-sidebar {
    display: flex;
    flex-direction: column;

    padding: 18px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 16px;
}

.panel-label {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);

    font-size: 0.68rem;
    font-weight: 900;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.panel-heading h2 {
    margin: 0;

    font-size: 1rem;
}

.room-list,
.online-users {
    min-height: 0;

    display: flex;
    flex-direction: column;

    gap: 8px;

    overflow-y: auto;

    scrollbar-width: thin;
}

.room-item {
    width: 100%;

    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr);

    align-items: center;

    gap: 10px;

    padding: 10px;

    border:
        1px solid transparent;

    border-radius: 13px;

    color: var(--text);

    text-align: left;

    background: transparent;

    cursor: pointer;

    transition:
        background 0.16s ease,
        border-color 0.16s ease;
}

.room-item:hover {
    background:
        var(--surface-soft);
}

.room-item.active {
    background:
        var(--primary-soft);

    border-color:
        rgba(109, 124, 255, 0.24);
}

.room-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: #cbd2ff;

    font-size: 1.1rem;
    font-weight: 900;

    background:
        rgba(109, 124, 255, 0.14);
}

.room-item strong,
.room-item small {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-item strong {
    font-size: 0.88rem;
}

.room-item small {
    margin-top: 3px;

    color: var(--muted);

    font-size: 0.72rem;
}

.sidebar-information {
    display: grid;

    gap: 6px;

    margin-top: auto;

    padding-top: 18px;

    color: var(--muted);

    font-size: 0.75rem;
    line-height: 1.5;

    border-top:
        1px solid var(--border);
}

.sidebar-information strong {
    color: var(--text-soft);
}

.chat-main {
    display: grid;

    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto
        auto;
}

.chat-header {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 14px 18px;

    border-bottom:
        1px solid var(--border);
}

.chat-header-left,
.chat-header-actions {
    display: flex;
    align-items: center;

    gap: 12px;
}

.chat-header h1 {
    margin: 0;

    font-size: 1.08rem;
}

.chat-header p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 0.76rem;
}

.connection-status {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: var(--muted);

    font-size: 0.76rem;
    font-weight: 700;
}

.connection-status::before {
    width: 8px;
    height: 8px;

    content: "";

    border-radius: 50%;

    background:
        var(--warning);
}

.connection-status.online {
    color: #aaf0d1;
}

.connection-status.online::before {
    background:
        var(--success);

    box-shadow:
        0 0 0 4px
        rgba(89, 213, 155, 0.10);
}

.connection-status.offline {
    color: #ffb8c0;
}

.connection-status.offline::before {
    background:
        var(--danger);
}

.messages {
    min-height: 0;

    display: flex;
    flex-direction: column;

    gap: 13px;

    padding: 18px;

    overflow-y: auto;

    scroll-behavior: smooth;

    scrollbar-width: thin;
}

.empty-chat {
    min-height: 100%;

    display: grid;
    place-content: center;

    padding: 40px;

    color: var(--muted);

    text-align: center;
}

.empty-chat-icon {
    margin-bottom: 12px;

    font-size: 2.4rem;
}

.empty-chat strong {
    color: var(--text);

    font-size: 1rem;
}

.empty-chat p {
    margin: 8px 0 0;

    font-size: 0.82rem;
}

.chat-message {
    width: min(720px, 88%);

    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr);

    gap: 11px;

    align-self: flex-start;
}

.message-avatar,
.online-avatar {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border:
        1px solid var(--border);

    color: var(--text-soft);

    font-weight: 900;

    background:
        var(--surface-soft);
}

.message-avatar {
    width: 42px;
    height: 42px;

    border-radius: 13px;
}

.message-content {
    min-width: 0;

    padding: 11px 13px;

    border:
        1px solid var(--border);

    border-radius:
        7px 15px 15px 15px;

    background:
        var(--surface-soft);
}

.message-meta {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 6px;

    font-size: 0.74rem;
}

.message-meta strong {
    color: var(--text-soft);
}

.message-meta time {
    margin-left: auto;

    color: var(--muted);

    font-size: 0.68rem;
}

.role-badge {
    padding: 3px 6px;

    border-radius: 999px;

    color: var(--muted);

    font-size: 0.60rem;
    font-weight: 900;

    text-transform: uppercase;

    background:
        rgba(255, 255, 255, 0.05);
}

.message-text {
    color: var(--text);

    font-size: 0.91rem;
    line-height: 1.55;

    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.role-owner .message-avatar,
.role-owner .online-avatar {
    color: var(--owner);

    border-color:
        rgba(242, 200, 107, 0.24);

    background:
        rgba(242, 200, 107, 0.10);
}

.role-admin .message-avatar,
.role-admin .online-avatar {
    color: var(--admin);
}

.role-moderator .message-avatar,
.role-moderator .online-avatar {
    color: var(--moderator);
}

.role-vip .message-avatar,
.role-vip .online-avatar {
    color: var(--vip);
}

.chat-notice {
    margin: 0 14px 10px;

    padding: 10px 12px;

    border-radius: 10px;

    font-size: 0.78rem;
}

.chat-notice.error {
    color: #ffbdc5;

    background:
        var(--danger-soft);

    border:
        1px solid
        rgba(255, 108, 124, 0.20);
}

.chat-notice.success {
    color: #abefd1;

    background:
        var(--success-soft);
}

.chat-composer {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: end;

    gap: 12px;

    padding: 14px;

    border-top:
        1px solid var(--border);

    background:
        rgba(8, 14, 26, 0.38);
}

.composer-field {
    position: relative;
}

.chat-composer textarea {
    width: 100%;
    min-height: 52px;
    max-height: 180px;

    display: block;

    resize: none;

    padding:
        14px 84px 14px 14px;

    border:
        1px solid var(--border);

    border-radius: 14px;

    color: var(--text);

    line-height: 1.45;

    background:
        var(--background-soft);

    outline: none;
}

.chat-composer textarea:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(109, 124, 255, 0.10);
}

.character-count {
    position: absolute;
    right: 12px;
    bottom: 10px;

    color: var(--muted);

    font-size: 0.65rem;
}

.send-button {
    min-height: 52px;
}

.online-user {
    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 10px;

    padding: 9px 8px;

    border-radius: 12px;

    transition:
        background 0.16s ease;
}

.online-user:hover {
    background:
        var(--surface-soft);
}

.online-avatar {
    width: 38px;
    height: 38px;

    border-radius: 12px;

    font-size: 0.82rem;
}

.online-user-info {
    min-width: 0;
}

.online-user-info strong,
.online-user-info small {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-user-info strong {
    font-size: 0.82rem;
}

.online-user-info small {
    margin-top: 3px;

    color: var(--muted);

    font-size: 0.68rem;
    text-transform: capitalize;
}

.online-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        var(--success);

    box-shadow:
        0 0 0 4px
        rgba(89, 213, 155, 0.08);
}

.icon-button {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border:
        1px solid var(--border);

    border-radius: 12px;

    color: var(--text);

    background:
        var(--surface-soft);

    cursor: pointer;
}

.mobile-panel-button,
.mobile-close,
.mobile-overlay {
    display: none;
}

/* Fehlerseiten */

.error-page {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 20px;

    background:
        var(--background);
}

.error-card {
    width: min(520px, 100%);

    padding: 40px;

    text-align: center;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-large);

    background:
        var(--surface);

    box-shadow:
        var(--shadow);
}

.error-code {
    display: block;

    color: var(--primary);

    font-size: 4rem;
    font-weight: 900;

    letter-spacing: -0.08em;
}

.error-card h1 {
    margin: 8px 0 0;
}

.error-card p {
    margin: 14px 0 24px;

    color: var(--muted);

    line-height: 1.6;
}

/* Tablet */

@media (max-width: 1080px) {
    .chat-application {
        grid-template-columns:
            220px
            minmax(0, 1fr);

        height:
            calc(
                100vh
                - var(--topbar-height)
                - 65px
            );
    }

    .users-sidebar {
        position: fixed;
        z-index: 100;

        top: var(--topbar-height);
        right: 0;
        bottom: 0;

        width: min(310px, 88vw);

        border-radius:
            var(--radius-large)
            0
            0
            var(--radius-large);

        transform:
            translateX(105%);

        transition:
            transform 0.22s ease;
    }

    .show-users-panel .users-sidebar {
        transform:
            translateX(0);
    }

    .mobile-panel-button,
    .mobile-close {
        display: grid;
    }

    .mobile-overlay {
        position: fixed;
        z-index: 90;

        inset: 0;

        display: block;

        background:
            rgba(0, 0, 0, 0.55);

        backdrop-filter:
            blur(3px);
    }
}

/* Smartphone */

@media (max-width: 760px) {
    :root {
        --topbar-height: 64px;
    }

    .topbar {
        padding: 9px 12px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-text small,
    .user-summary {
        display: none;
    }

    .button-secondary {
        min-height: 40px;

        padding: 8px 12px;

        font-size: 0.76rem;
    }

    .main-content {
        padding: 8px;
    }

    .footer {
        display: none;
    }

    .application {
        grid-template-rows:
            var(--topbar-height)
            minmax(0, 1fr);
    }

    .chat-application {
        height:
            calc(
                100vh
                - var(--topbar-height)
                - 16px
            );

        min-height: 0;

        grid-template-columns:
            minmax(0, 1fr);

        gap: 0;
    }

    .chat-main {
        border-radius:
            var(--radius);
    }

    .rooms-sidebar,
    .users-sidebar {
        position: fixed;
        z-index: 100;

        top: var(--topbar-height);
        bottom: 0;

        width: min(310px, 88vw);

        border-radius: 0;
    }

    .rooms-sidebar {
        left: 0;

        transform:
            translateX(-105%);

        transition:
            transform 0.22s ease;
    }

    .users-sidebar {
        right: 0;

        transform:
            translateX(105%);

        transition:
            transform 0.22s ease;
    }

    .show-rooms-panel .rooms-sidebar,
    .show-users-panel .users-sidebar {
        transform:
            translateX(0);
    }

    .chat-header {
        min-height: 66px;

        padding: 11px 12px;
    }

    .chat-header p {
        max-width: 190px;

        overflow: hidden;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .connection-status {
        display: none;
    }

    .messages {
        padding: 13px 10px;
    }

    .chat-message {
        width: 96%;

        grid-template-columns:
            36px
            minmax(0, 1fr);

        gap: 8px;
    }

    .message-avatar {
        width: 36px;
        height: 36px;

        border-radius: 11px;
    }

    .message-content {
        padding: 10px 11px;
    }

    .role-badge {
        display: none;
    }

    .chat-composer {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 8px;

        padding: 10px;
    }

    .send-button {
        min-height: 46px;
    }

    .auth-wrapper {
        padding: 20px 4px;
    }

    .auth-card {
        border-radius:
            var(--radius);
    }
}

@media (max-width: 420px) {
    .brand-text strong {
        max-width: 145px;

        overflow: hidden;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chat-header-actions {
        gap: 6px;
    }

    .icon-button {
        width: 38px;
        height: 38px;
    }
}

/* =================================================
   ChrisEmm Connect 0.4.0 – Adminbereich
   ================================================= */

.admin-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-navigation a {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    background: var(--surface-glass);
}

.admin-navigation a:hover {
    background: var(--surface-hover);
}

.admin-page {
    display: grid;
    gap: 20px;
}

.admin-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.admin-heading h1 {
    margin: 0;
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: -0.05em;
}

.admin-heading p {
    margin: 10px 0 0;
    color: var(--muted);
}

.admin-version,
.admin-badge {
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    color: #cdd3ff;
    font-size: 0.75rem;
    font-weight: 800;
    background: var(--primary-soft);
}

.admin-statistics {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.admin-statistics article,
.admin-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-glass);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.16);
}

.admin-statistics span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-statistics strong {
    font-size: 2rem;
}

.admin-card h2 {
    margin-top: 0;
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table td {
    font-size: 0.82rem;
}

.admin-table select,
.admin-form select,
.admin-form input,
.admin-room-card select,
.admin-room-card input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text);
    background: var(--background-soft);
}

.admin-form {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.admin-form label,
.admin-room-card label {
    display: grid;
    gap: 7px;
    color: var(--text-soft);
    font-size: 0.79rem;
    font-weight: 700;
}

.admin-checkbox {
    display: flex !important;
    align-items: center;
    gap: 9px;
}

.admin-checkbox input {
    width: auto;
}

.admin-room-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.admin-room-card {
    display: grid;
    gap: 14px;
}

@media (max-width: 1000px) {
    .admin-statistics,
    .admin-room-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .admin-statistics,
    .admin-room-grid,
    .admin-form {
        grid-template-columns: 1fr;
    }

    .admin-heading {
        flex-direction: column;
    }
}

/* ChrisEmm Connect 0.5.0 – Pluginverwaltung */

.market-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.market-card {
    display: grid;
    gap: 14px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface-glass);
}

.market-card h2 {
    margin: 0;
}

.market-card p {
    margin: 0;

    color: var(--muted);

    line-height: 1.55;
}

.market-type {
    display: inline-flex;
    width: fit-content;

    padding: 6px 9px;

    border-radius: 999px;

    color: #ccd2ff;

    font-size: 0.7rem;
    font-weight: 900;

    background: var(--primary-soft);
}

.market-details {
    display: grid;
    gap: 8px;

    margin: 0;
}

.market-details div {
    display: flex;
    justify-content: space-between;

    gap: 12px;

    padding-bottom: 8px;

    border-bottom: 1px solid var(--border);
}

.market-details dt,
.market-details dd {
    margin: 0;

    font-size: 0.76rem;
}

.market-details dt {
    color: var(--muted);
}

@media (max-width: 900px) {
    .market-grid {
        grid-template-columns: 1fr;
    }
}

/* ChrisEmm Connect 0.5.0 – Pluginverwaltung */

.market-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.market-card {
    display: grid;
    gap: 14px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface-glass);
}

.market-card h2 {
    margin: 0;
}

.market-card p {
    margin: 0;

    color: var(--muted);

    line-height: 1.55;
}

.market-type {
    display: inline-flex;
    width: fit-content;

    padding: 6px 9px;

    border-radius: 999px;

    color: #ccd2ff;

    font-size: 0.7rem;
    font-weight: 900;

    background: var(--primary-soft);
}

.market-details {
    display: grid;
    gap: 8px;

    margin: 0;
}

.market-details div {
    display: flex;
    justify-content: space-between;

    gap: 12px;

    padding-bottom: 8px;

    border-bottom: 1px solid var(--border);
}

.market-details dt,
.market-details dd {
    margin: 0;

    font-size: 0.76rem;
}

.market-details dt {
    color: var(--muted);
}

@media (max-width: 900px) {
    .market-grid {
        grid-template-columns: 1fr;
    }
}
