﻿:root {
    --overlay-bg: rgba(0, 0, 0, 0.6);
    --panel-bg: rgba(34, 34, 34, 0.8);
    --accent-green: #33cc33;
    --accent-yellow: #ffcc00;
    --discord-blue: #7289da;
    --font-main: 'Roboto', Arial, sans-serif;
}

/* ==== Body & Base ==== */
body {
    margin: 0;
    font-family: var(--font-main);
    color: #f0f0f0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}


   


/* ==== Animiertes Einblenden ==== */
@keyframes fadeTab {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==== Sidebar – Ultra Minimal & Responsive ==== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 19vw;
    min-width: 54px;
    max-width: 220px;
    background: linear-gradient(135deg, rgba(32,34,39,0.98) 75%, rgba(68,230,138,0.09) 100%);
    border-right: 2px solid #44e68a22;
    box-shadow: 6px 0 32px 0 rgba(62,241,91,0.12), 0 1.5px 0 #3ef15b22 inset;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top-right-radius: 28px;
    border-bottom-right-radius: 22px;
    overflow: hidden;
    min-height: 100vh;
    transition: width 0.21s, box-shadow 0.22s;
}

/* Desktop: Show Labels, moderate width */
@media (min-width: 901px) {
    .sidebar {
        width: 19vw;
        min-width: 138px;
        max-width: 210px;
    }

    .sidebar-item span:not(.sidebar-icon) {
        display: inline;
    }

    .sidebar-title, .sidebar-footer {
        display: flex !important;
    }
}

/* Tablet: Icons Only, schmal */
@media (max-width: 900px) {
    .sidebar {
        width: 60px;
        min-width: 46px;
        max-width: 68px;
        border-radius: 0 14px 14px 0;
        box-shadow: 3px 0 16px 0 #44e68a0c;
    }

    .sidebar-title, .sidebar-footer {
        display: none !important;
    }

    .sidebar-items {
        margin-top: 8px;
        gap: 1px;
    }

    .sidebar-item {
        padding: 11px 0;
        margin: 2px 0.5vw;
        border-radius: 8px;
        justify-content: center;
        min-width: 36px;
        width: 100%;
    }

        .sidebar-item span:not(.sidebar-icon) {
            display: none !important;
        }

    .sidebar-icon {
        margin-right: 0;
        font-size: 1.32em;
    }
}

/* Mobile: Only Icons, super schmal */
@media (max-width: 600px) {
    .sidebar {
        width: 45px;
        min-width: 32px;
        max-width: 49px;
        border-radius: 0 7px 7px 0;
        box-shadow: 2px 0 9px #44e68a08;
    }

    .sidebar-items {
        margin-top: 4px;
        gap: 1.5px;
    }

    .sidebar-item {
        min-height: 32px;
        height: 36px;
        font-size: 1em;
    }
}

/* Sidebar Content Styles */
.sidebar-title {
    padding: 24px 15px 14px 20px;
    border-bottom: 1.3px solid #3ef15b16;
    background: linear-gradient(90deg, rgba(62,241,91,0.09) 0%, rgba(50,55,75,0.04) 100%);
    box-shadow: 0 2px 14px 0 #44e68a07;
    min-height: 44px;
    display: flex;
    align-items: center;
}

    .sidebar-title h1 {
        color: #44e68a;
        /*font-size: 1.11rem;*/
        margin: 0;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

/* Items */
.sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 12px;
    flex: 1;
    align-items: stretch;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 1.07rem;
    padding: 13px 21px 13px 23px;
    color: #e9fff0;
    border-radius: 12px;
    margin: 2px 10px;
    cursor: pointer;
    font-weight: 600;
    background: none;
    user-select: none;
    position: relative;
    transition: background 0.15s, color 0.14s, transform 0.12s;
}

    .sidebar-item.active,
    .sidebar-item:hover,
    .sidebar-item:focus-visible {
        color: #44e68a;
        background: linear-gradient(90deg, #44e68a19 25%, #7289da0e 75%);
        box-shadow: 0 3px 13px #44e68a13;
        transform: translateY(-1.5px) scale(1.04);
    }

.sidebar-icon {
    font-size: 1.33em;
    margin-right: 0;
}

/* Footer */
.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 11px 13px 15px 13px;
    border-top: 1.1px solid #3ef15b13;
    background: linear-gradient(94deg, #26322a06 0%, #44e68a07 100%);
    margin-top: 5px;
    align-items: stretch;
}

.sidebar-button {
    width: 100%;
    font-size: 1.01rem;
    padding: 7px 0;
    border-radius: 11px;
    /*background: linear-gradient(90deg, #44e68a 10%, #7289da 100%);
    color: #fff;
    font-weight: 800;*/
    border: none;
    box-shadow: 0 2px 8px #44e68a18;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background 0.12s, box-shadow 0.13s, transform 0.12s;
}

    .sidebar-button .footer-icon {
        font-size: 1.17em;
        margin: 0;
    }

    .sidebar-button:hover,
    .sidebar-button:focus-visible {
        background: linear-gradient(90deg, #ef5454 35%, #cb1010 100%);
        box-shadow: 0 2px 12px #7289da1a;
        transform: scale(1.03) translateY(-1px);
    }

/* Ultra-minimal Footer: Nur Icons auf ganz kleinen Devices */
@media (max-width: 900px) {
    .sidebar-footer {
        display: flex !important;
        gap: 4px;
        padding: 4px 2px 6px 2px;
        align-items: center;
        background: transparent;
    }

    .sidebar-button {
        width: 30px;
        min-width: 28px;
        height: 30px;
        min-height: 28px;
        font-size: 1.13em;
        padding: 0 !important;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
        background: linear-gradient(90deg, #44e68a 45%, #7289da 100%);
    }

        .sidebar-button span:not(.footer-icon) {
            display: none !important;
        }

        .sidebar-button .footer-icon {
            font-size: 1.09em;
        }
}

@media (max-width: 600px) {
    .sidebar {
        width: 36px;
        min-width: 28px;
        max-width: 41px;
        border-radius: 0 4px 4px 0;
    }

    .sidebar-footer {
        gap: 2px;
        padding: 2px 1px 2px 1px;
    }

    .sidebar-button {
        width: 23px;
        min-width: 19px;
        height: 23px;
        min-height: 19px;
        font-size: 1em;
    }
}




/* ==== Login Overlay & Card – Modern, Responsive ==== */
#login-wrapper {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(30,32,39,0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px) saturate(1.2);
    animation: loginFadeIn .8s cubic-bezier(.52,.06,.36,1.01);
}

#login-container {
    background: rgba(24,28,36,0.97);
    border: 2.2px solid #3ef15b44;
    border-radius: 24px;
    padding: 36px 38px 30px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    min-width: 320px;
    min-height: 265px;
    width: 96vw;
    max-width: 395px;
    animation: loginFadeIn 0.7s cubic-bezier(.52,.06,.36,1.01);
    position: relative;
    transition: box-shadow .19s, background .19s, border-color .18s;
}

/* Touch/Mobile: Mehr Platz, weniger Padding, alles centered */
@media (max-width: 600px) {
    #login-container {
        min-width: unset;
        width: 97vw;
        max-width: 97vw;
        padding: 20px 5vw 17px 5vw;
        border-radius: 18px;
        gap: 21px;
    }
}

#login-header {
    color: #3ef15b;
    margin-bottom: 12px;
    font-size: 2.1rem;
    letter-spacing: 0.03em;
    text-align: center;
    font-weight: 900;
    user-select: none;
    transition: font-size .22s;
    line-height: 1.15;
}

@media (max-width: 500px) {
    #login-header {
        font-size: 1.28rem;
        margin-bottom: 7px;
    }
}

/* ==== Discord Button Modern ==== */
.discord-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 15px 34px 15px 28px;
    border-radius: 15px;
    border: 2px solid #26315a;
    background: linear-gradient(90deg, #7289da 0%, #3ef15b 115%);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.22s, box-shadow 0.18s, transform 0.15s;
    position: relative;
    overflow: hidden;
    outline: none;
}

    .discord-login-button .discord-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #232a40 70%, #7289da 120%);
        border-radius: 7px;
        padding: 6px;
        margin-right: 6px;
        border: 2px solid #3ef15b33;
        min-width: 36px;
        min-height: 36px;
        max-width: 36px;
        max-height: 36px;
    }

        .discord-login-button .discord-logo img {
            display: block;
            width: 26px;
            height: 26px;
            filter: drop-shadow(0 2px 10px #7289da33);
            margin: auto;
        }

    /* ==== Endlos animierte Glanzwelle ==== */
    .discord-login-button::after {
        content: '';
        position: absolute;
        left: -70%;
        top: 0;
        width: 65%;
        height: 100%;
        background: linear-gradient(120deg, transparent 58%, #fff8 75%, transparent 94%);
        opacity: 0;
        pointer-events: none;
        animation: slide-gloss 1.5s cubic-bezier(.59,.01,.6,1.01) infinite;
    }

@keyframes slide-gloss {
    0% {
        left: -70%;
        opacity: 0.09;
    }

    18% {
        left: 10%;
        opacity: 0.26;
    }

    35% {
        left: 25%;
        opacity: 0.2;
    }

    60% {
        left: 120%;
        opacity: 0.06;
    }

    100% {
        left: 120%;
        opacity: 0;
    }
}

.discord-login-button:hover,
.discord-login-button:focus-visible {
    background: linear-gradient(90deg, #3ef15b 10%, #7289da 95%);
    box-shadow: 0 6px 24px #3ef15b34, 0 2px 10px #7289da22 inset;
    transform: translateY(-1px) scale(1.05);
}

.discord-login-button:active {
    transform: scale(0.96);
}

/* Mobile Anpassungen Discord */
@media (max-width: 450px) {
    .discord-login-button {
        padding: 13px 5vw 13px 4vw;
        font-size: 1.01rem;
    }

        .discord-login-button .discord-logo {
            min-width: 28px;
            min-height: 28px;
            max-width: 28px;
            max-height: 28px;
            padding: 4px;
        }

            .discord-login-button .discord-logo img {
                width: 20px;
                height: 20px;
            }
}


.admin-login-form {
    background: linear-gradient(120deg, rgba(42,48,57,0.97) 60%, rgba(51,72,62,0.14) 100%);
    border-radius: 15px;
    box-shadow: 0 4px 19px #3ef15b13, 0 1.5px 0 #3ef15b12 inset;
    padding: 24px 18px 18px 18px;
    min-width: 0;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1.2px solid #3ef15b25;
    align-items: stretch;
}

    .admin-login-form h2 {
        color: #bfffd6;
        font-family: var(--font-main, 'Montserrat', sans-serif);
        font-size: 1.16rem;
        font-weight: 800;
        letter-spacing: 0.01em;
        margin-bottom: 8px;
        margin-top: 0;
        text-align: center;
        text-shadow: 0 2px 9px #3ef15b19;
    }

    .admin-login-form .form-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 0;
    }

        .admin-login-form .form-group label {
            color: #e4ffe8;
            font-size: 1.01rem;
            font-weight: 600;
            margin-bottom: 0;
            letter-spacing: 0.01em;
            padding-left: 1px;
        }

    .admin-login-form input[type="text"],
    .admin-login-form input[type="password"] {
        background: rgba(38,44,38,0.91);
        border: 1.2px solid #3ef15b28;
        border-radius: 8px;
        color: #eaffeb;
        font-size: 1.05rem;
        font-family: var(--font-main, 'Montserrat', sans-serif);
        padding: 10px 13px;
        box-shadow: 0 2px 9px #3ef15b08;
        margin-bottom: 0;
        width: 100%;
        min-width: 0;
        transition: border-color 0.16s, box-shadow 0.16s, background 0.14s;
        display: block;
    }

    .admin-login-form input:focus {
        border-color: #3ef15b;
        box-shadow: 0 0 9px #3ef15b66, 0 1px 0 #44e68a14 inset;
        background: rgba(38,54,44,1);
        outline: none;
    }

    .admin-login-form .button-row {
        display: flex;
        gap: 10px;
        margin-top: 5px;
        justify-content: stretch;
    }

    .admin-login-form .primary-button,
    #admin-cancel {
        flex: 1 1 0px;
        min-width: 0;
        max-width: 100%;
        padding: 11px 0;
        border-radius: 8px;
        font-size: 1.01rem;
        font-family: var(--font-main, 'Montserrat', sans-serif);
        background: linear-gradient(90deg, #3ef15b 9%, #44e68a 92%);
        color: #1d2b24;
        font-weight: 700;
        letter-spacing: 0.01em;
        box-shadow: 0 2px 8px #3ef15b19;
        transition: background 0.13s, box-shadow 0.14s, transform 0.10s;
        border: none;
        outline: none;
    }

        .admin-login-form .primary-button:hover,
        .admin-login-form .primary-button:focus {
            background: linear-gradient(90deg, #4afd8e 14%, #44e68a 100%);
            box-shadow: 0 3px 12px #44e68a23;
            transform: translateY(-1px) scale(1.025);
        }

#admin-cancel {
    background: linear-gradient(90deg, #272d28 0%, #424c41 100%) !important;
    color: #a2f7b7 !important;
    margin-top: 6px;
}

    #admin-cancel:hover,
    #admin-cancel:focus {
        background: linear-gradient(90deg, #353a37 0%, #4af15b 100%) !important;
        color: #fff !important;
    }

/* Mobile */
@media (max-width: 600px) {
    #login-container,
    .admin-login-form {
        max-width: 99vw !important;
        min-width: unset !important;
        padding: 5vw 1vw !important;
    }

    #login-header {
        font-size: 1.05rem;
    }

    .admin-login-form input[type="text"],
    .admin-login-form input[type="password"] {
        font-size: 0.97rem;
        padding: 11px 7px;
    }

    .admin-login-form .primary-button,
    #admin-cancel {
        font-size: 0.96rem;
        padding: 11px 0;
    }
}



/* ==== Main Content ==== */
.main-content {
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    margin-left: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* ==== Module Grid – Einheitlich, Soft Gap ==== */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 32px 28px; /* etwas mehr Luft für moderne Optik */
    align-items: stretch;
    width: 100%;
    max-width: 1200px; /* ruhig noch etwas höher für große Screens */
    min-width: 320px;
    margin: 0 auto;
    padding: 0 16px 48px 16px; /* unten mehr Padding für "lange" Seiten */
    box-sizing: border-box;
    transition: gap 0.22s;
    overflow-x: hidden;
}

/* ReactionRole Tab: Cards immer untereinander, egal wie breit */
#reactionrole .module-grid {
    display: flex !important;
    flex-direction: column;
    gap: 34px; /* mehr Abstand zwischen den Cards */
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 60px 16px;
    align-items: stretch;
}

#reactionrole .module-card {
    width: 100%;
    max-width: 100%;
}
@media (max-width: 700px) {
    #reactionrole .module-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 2vw 30vw 2vw;
    }
}

@media (max-width: 1100px) {
    .module-grid {
        width: 99vw;
        max-width: 99vw;
        gap: 20px 10px;
    }
}

@media (max-width: 800px) {
    .module-grid {
        grid-template-columns: 1fr;
        padding: 0 6px;
        gap: 18px;
        width: 99vw;
        max-width: 99vw;
    }

    .module-card {
        max-width: 98vw;
    }
}

@media (max-width: 650px) {
    .module-grid {
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
        gap: 10px 0;
        padding: 0 2vw;
    }

    .module-card, .module-card-header, .module-body {
        border-radius: 12px;
        padding-left: 4vw !important;
        padding-right: 4vw !important;
    }

    .module-card-header, .module-body {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

@media (max-width: 480px) {
    .module-grid {
        gap: 7px 0;
        padding: 0 1vw;
    }

    .module-card, .module-card-header, .module-body {
        border-radius: 7px;
        padding-left: 3vw !important;
        padding-right: 3vw !important;
    }
}

/* ==== Card – Gradient, Modern, Einheitlich ==== */
.module-card {
    background: var(--card-bg, #191c21);
    border-radius: 1.4em;
    box-shadow: 0 2px 18px 0 rgba(0,0,0,0.11);
    min-width: 0;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(60,60,60,0.10);
    transition: box-shadow .18s, border-color .21s, background .22s;
    position: relative;
    overflow: hidden;
    cursor: grab;
    z-index: 1;
}

    .module-card:active {
        cursor: grabbing;
    }

    

    .module-card::before {
        content: '';
        pointer-events: none;
        position: absolute;
        top: -60px;
        left: -65px;
        width: 140%;
        height: 72px;
        background: linear-gradient(92deg, transparent 10%, #fff6 55%, transparent 90%);
        opacity: 0.10;
        border-radius: 22px;
        transform: rotate(-7deg);
        z-index: 2;
        animation: cardShine 4.4s linear infinite;
    }

@keyframes cardShine {
    0% {
        left: -65px;
        opacity: 0.10;
    }

    28% {
        left: 25%;
        opacity: 0.18;
    }

    55% {
        left: 75%;
        opacity: 0.07;
    }

    100% {
        left: 115%;
        opacity: 0;
    }
}

/* ==== Card Header ==== */
.module-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 0 18px;
    border-radius: 1.4em 1.4em 0 0;
    background: transparent;
}

    .module-card-header h3 {
       /* font-size: 1.18rem;*/
        color: #3ef15b;
        margin: 0;
        font-weight: 800;
        letter-spacing: 0.01em;
        text-shadow: 0 2px 10px #3ef15b1a;
        transition: color 0.16s;
    }

/* ==== Card Body ==== */
.module-body {
    padding: 18px;
    min-width: 0;
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

    .module-card, .module-body, .module-card form, .module-body form {
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

/* ==== Pin Button ==== */
.pin-button {
    background: transparent;
    border: none;
    font-size: 1.45em;
    cursor: pointer;
    opacity: 0.68;
    margin-left: auto;
    color: #bbb; /* Standard ausgegraut */
    transition: opacity .16s, color .18s;
    outline: none;
}

    .pin-button.pinned {
        opacity: 1;
        color: #ffcb3c; /* Goldgelb */
        text-shadow: 0 0 8px #ffec80cc;
    }


    .pin-button:hover {
        opacity: 1;
    }

.module-card.draggable {
    cursor: grab;
}

/* ==== Button Row ==== */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}





/* ==== Button Row ==== */
.button-row, .button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

/* ==== Buttons: Allgemein/Minimal ==== */
button, .primary-button {
    padding: 8px 18px;
    background: linear-gradient(90deg, #3ef15b 0%, #44e68a 90%);
    color: #1d2b24;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: 0.01em;
    font-size: 1.04rem;
    margin: 0 6px 7px 0;
    transition: background 0.22s cubic-bezier(.32,.01,.49,1.12), box-shadow 0.2s cubic-bezier(.52,.06,.36,1.01), transform 0.14s cubic-bezier(.6,.3,.5,1.2);
    box-shadow: 0 2px 8px rgba(62,241,91,0.12), 0 1.5px 0px #3ef15b15 inset;
    position: relative;
    overflow: hidden;
}

    button:hover, button:focus-visible, .primary-button:hover {
        background: linear-gradient(90deg, #44e68a 20%, #3ef15b 95%);
        box-shadow: 0 4px 13px #3ef15b42, 0 2px 8px #28ffb466 inset;
        transform: translateY(-1.5px) scale(1.04) rotate(-0.6deg);
        outline: none;
    }

    button:active {
        background: linear-gradient(90deg, #3ef15b 20%, #25c45c 90%);
        transform: scale(0.98);
    }

    button.danger {
        background: linear-gradient(90deg, #ee3c3c 10%, #a82934 95%);
        color: #fff;
    }

        button.danger:hover {
            background: linear-gradient(90deg, #ff5757 30%, #db2237 100%);
            box-shadow: 0 2px 13px #ff6b6b42;
        }

    button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        filter: grayscale(0.25);
    }
    /* Neon Glow Animation */
    button:focus-visible::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 12px;
        pointer-events: none;
        animation: neon-focus 0.8s linear;
        box-shadow: 0 0 0 2.5px #3ef15b, 0 0 12px #3ef15b77;
    }

@keyframes neon-focus {
    0% {
        box-shadow: 0 0 0 0 #3ef15b, 0 0 0 #3ef15b00;
    }

    60% {
        box-shadow: 0 0 0 5px #3ef15b88, 0 0 12px #3ef15b55;
    }

    100% {
        box-shadow: 0 0 0 2.5px #3ef15b, 0 0 12px #3ef15b77;
    }
}

/* ==== Dropdowns / Select ==== */
select, .custom-select {
    appearance: none;
    background: rgba(42,52,48,0.96);
    border: 1.5px solid #3ef15b99;
    border-radius: 8px;
    color: #eaffeb;
    font-size: 0.98rem;
    font-family: var(--font-main);
    padding: 9px 34px 9px 11px;
    margin-bottom: 12px;
    outline: none;
    box-shadow: 0 1.5px 6px #3ef15b10;
    transition: border-color 0.19s, box-shadow 0.18s;
    position: relative;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg fill='lime' height='18' viewBox='0 0 20 20' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 7l3 3 3-3' stroke='lime' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

    select:focus, .custom-select:focus {
        border-color: #3ef15b;
        box-shadow: 0 0 8px #3ef15baa;
        background-color: rgba(60,80,66,1);
    }

option {
    color: #222;
    background: #dbffe4;
}

/* Minimale Selects auf Tablet/Mobil */
@media (max-width: 900px) {
    select, .custom-select {
        font-size: 0.96rem;
        padding: 8px 24px 8px 10px;
        min-width: 44px;
        max-width: 98vw;
    }
}

@media (max-width: 600px) {
    select, .custom-select {
        font-size: 0.91rem;
        padding: 7px 15px 7px 8px;
        min-width: 38px;
        max-width: 95vw;
    }
}
/* ==== Tab-Style Modern ==== */
.tab-content {
    display: none;
    padding: 38px 40px 36px 40px;
    background: linear-gradient(108deg, rgba(42,44,48,0.78) 70%, rgba(44,230,138,0.07) 100%);
    border-radius: 19px;
    box-shadow: 0 3px 18px 0 rgba(62,241,91,0.13), 0 1.5px 0 #3ef15b08 inset;
    box-sizing: border-box;
    animation: fadeIn 0.5s cubic-bezier(.55,.07,.35,1.12);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 1380px;
    min-width: 0;
    margin: 0 auto 44px auto;
    opacity: 0;
    transition: box-shadow 0.19s cubic-bezier(.5,.11,.38,1.05), background 0.19s, padding 0.19s, opacity 0.32s;
    min-height: 0; /* für flex layouts */
    flex: 1 1 0%;
}

    /* Aktives Tab */
    .tab-content.active-content {
        display: block !important;
        opacity: 1;
        pointer-events: all;
        position: relative;
        left: 0;
        z-index: 1;
        animation: fadeTab 0.28s cubic-bezier(.51,.1,.37,1.13);
    }

@keyframes fadeTab {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(.99);
    }

    80% {
        opacity: 0.85;
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.98) translateY(34px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* XXL Displays */
@media (min-width: 1600px) {
    .tab-content {
        max-width: 1480px;
        padding: 60px 70px 60px 70px;
        border-radius: 22px;
    }
}

/* Standard Desktop */
@media (min-width: 1201px) and (max-width: 1599px) {
    .tab-content {
        max-width: 1200px;
        padding: 48px 48px 42px 48px;
        border-radius: 18px;
    }
}

/* Tablet quer/kleines Notebook */
@media (max-width: 1200px) {
    .tab-content {
        max-width: 98vw;
        padding: 28px 5vw 28px 5vw;
        border-radius: 14px;
    }
}

/* Tablet hoch + großes Handy */
@media (max-width: 900px) {
    .tab-content {
        max-width: 100vw;
        width: 100vw;
        margin: 0 auto 18vw auto;
        padding: 17vw 3vw 15vw 3vw;
        border-radius: 11px;
        box-shadow: 0 2px 10px rgba(62,241,91,0.11);
    }
}

/* Smartphone hoch/klein */
@media (max-width: 600px) {
    .tab-content {
        max-width: 100vw;
        width: 100vw;
        min-width: 0;
        margin: 0 0 16vw 0;
        padding: 11vw 1vw 12vw 1vw;
        border-radius: 8px;
        box-shadow: 0 1.5px 9px rgba(62,241,91,0.12);
    }
}

/* Ultra-Small Phones */
@media (max-width: 400px) {
    .tab-content {
        padding: 7vw 1vw 10vw 1vw;
        border-radius: 6px;
    }
}


/* ==== Zentrierte, moderne Überschrift ==== */
.tab-content h2,
.tab-heading {
    color: #3ef15b;
    font-size: 2.05rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-align: center;
    margin: 28px 0 22px 0;
    line-height: 1.12;
    text-shadow: 0 2px 16px #44e68a33, 0 1.5px 9px #7289da20;
    user-select: none;
    font-family: var(--font-main), 'Segoe UI', Arial, sans-serif;
    transition: color 0.17s, text-shadow 0.19s, font-size 0.15s;
    background: none;
}

    .tab-content h2:hover,
    .tab-heading:hover {
        color: #44e68a;
        text-shadow: 0 6px 24px #3ef15b55, 0 2px 8px #7289da2a;
        cursor: pointer;
    }

/* Responsives Shrinking für h2 */
@media (max-width: 800px) {
    .tab-content h2,
    .tab-heading {
        font-size: 1.35rem;
        margin-top: 13px;
        margin-bottom: 11px;
    }
}

@media (max-width: 520px) {
    .tab-content h2,
    .tab-heading {
        font-size: 1.07rem;
        margin-top: 8px;
        margin-bottom: 7px;
    }
}

/* ==== Schutz gegen horizontales Scrollen auf jeder Auflösung ==== */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}





#commands .commands-list,
.command-card-form {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-top: 16px;
    width: 100%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 36px;
    align-items: stretch;
    box-sizing: border-box;
}

/* --- Haupt-Card-Layout --- */
#commands .command-card {
    background: linear-gradient(96deg, #232a30 0%, #20262e 100%);
    border: 1.8px solid #44e68a29;
    border-radius: 19px;
    padding: 20px 32px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 7px 32px #44e68a13, 0 2px 6px #3ef15b13;
    transition: border-color 0.22s, box-shadow 0.19s, background 0.22s, transform 0.17s;
    cursor: pointer;
    min-width: 0;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    outline: none;
    position: relative;
    backdrop-filter: blur(0.5px);
    overflow: hidden;
    box-sizing: border-box;
}

    #commands .command-card:hover,
    #commands .command-card:focus-visible {
        border-color: #44e68a;
        background: linear-gradient(94deg, #29553a 8%, #232c38 100%);
        box-shadow: 0 14px 42px #44e68a2b, 0 2px 18px #3ef15b14 inset;
        transform: translateY(-3.5px) scale(1.021);
        z-index: 1;
    }

/* --- Inhalt-Bereich --- */
#commands .command-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 7px;
    overflow: hidden;
}

#commands .command-name {
    font-size: 1.17rem;
    font-weight: 800;
    color: #3ef15b;
    letter-spacing: 0.01em;
    word-break: break-word;
    white-space: pre-line;
    text-shadow: 0 2px 12px #44e68a20;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin-bottom: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

#commands .command-desc {
    font-size: 1.04rem;
    color: #b6e8ce;
    font-weight: 500;
    opacity: 0.96;
    max-width: 99%;
    white-space: pre-line;
    word-break: break-word;
    line-height: 1.34;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maximal 2 Zeilen auf Desktop */
    -webkit-box-orient: vertical;
}

#commands .command-desc-empty {
    color: #7e888a;
    font-style: italic;
    opacity: 0.75;
    font-size: 0.97em;
}

/* --- Checkbox/Toggle-Bereich --- */
.command-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 150px;
    max-width: 150px;
    flex: 0 0 auto;
    gap: 6px;
}

.checkbox-group label {
    font-size: 0.99em;
    color: #b6e8ce;
    margin-left: 7px;
    font-weight: 600;
}

/* Responsive: Tablet & Mobile */
@media (max-width: 900px) {
    #commands .commands-list,
    .command-card-form {
        max-width: 99vw;
        padding-left: 1vw;
        padding-right: 1vw;
    }

    #commands .command-card {
        flex-direction: column;
        align-items: stretch;
        gap: 13px;
        padding: 13px 3vw 13px 3vw;
        border-radius: 13px;
        min-width: 0;
        max-width: 98vw;
    }

    .command-toggle {
        align-items: flex-start;
        margin-top: 8px;
        min-width: 0;
        max-width: 100vw;
    }

    #commands .command-main .command-name {
        font-size: 1.12rem;
        -webkit-line-clamp: 2;
    }

    #commands .command-main .command-desc {
        font-size: 1.01rem;
        -webkit-line-clamp: 3;
    }
}

/* ----- Modal Styles Optimiert ----- */
.command-modal .modal-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: #3ef15b;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
    text-align: center;
    text-shadow: 0 1.5px 7px #44e68a33;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.command-modal .form-group {
    margin-bottom: 14px;
}

.command-modal .button-row {
    display: flex;
    gap: 13px;
    justify-content: flex-end;
}

.command-modal .primary-button {
    background: linear-gradient(90deg, #3ef15b 16%, #44e68a 100%);
    color: #222;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.12s, transform 0.11s;
    outline: none;
    font-size: 1.04em;
    box-shadow: 0 1.5px 6px #44e68a23;
}

    .command-modal .primary-button:hover,
    .command-modal .primary-button:focus {
        background: linear-gradient(90deg, #44e68a 22%, #3ef15b 100%);
        box-shadow: 0 3px 16px #44e68a55;
        transform: scale(1.035) translateY(-1.5px);
    }

.command-modal .secondary-button {
    background: #222f23;
    color: #eee;
    border: 1.4px solid #3ef15b44;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.13s, border-color 0.17s, color 0.16s, box-shadow 0.18s;
    outline: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    font-size: 1em;
    position: relative;
}

    .command-modal .secondary-button:hover,
    .command-modal .secondary-button:focus-visible {
        background: #2a4631;
        border-color: #3ef15b;
        color: #3ef15b;
        box-shadow: 0 0 0 4px #44e68a44, 0 4px 20px #3ef15b44;
        z-index: 1;
    }

    .command-modal .secondary-button:focus-visible {
        outline: 2.1px solid #3ef15b;
        outline-offset: 2px;
    }

.command-modal .modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #3ef15b;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 2px 8px;
    transition: color 0.13s;
    z-index: 10;
}

    .command-modal .modal-close:hover {
        color: #ee5b5b;
    }


/* Ultra-Small Phones */
@media (max-width: 500px) {
    #commands .command-card {
        padding: 7px 2vw 7px 2vw;
        border-radius: 8px;
        font-size: 0.98em;
        gap: 7px;
    }

    #commands .command-main .command-name,
    #commands .command-main .command-desc {
        max-width: 96vw;
        font-size: 0.99rem;
        -webkit-line-clamp: 3;
    }
}




/* ==== Moderner Fokus/Glow Effekt ==== */
input:focus, select:focus, textarea:focus {
    border-color: #44e68a;
    box-shadow: 0 0 10px #3ef15b77, 0 2px 8px #44e68a22 inset;
    outline: none;
    background: #202b23;
    transition: box-shadow .19s, background .18s, border-color .18s;
}


/* ==== Karten Glow/Animation nur bei Hover ==== */
/* Standard Card – kein Effekt */
.module-card {
    /* ... */
    border-color: rgba(60,60,60,0.10);
    background: var(--card-bg, #191c21);
    box-shadow: 0 2px 18px 0 rgba(0,0,0,0.11);
    transition: box-shadow .18s, border-color .21s, background .22s;
}

    /* Glow NUR, wenn Card ODER Header aktiv – aber nicht, wenn innerhalb von Form/interaktivem Element */
    .module-card:hover:not(:has(:is(form:hover, form:focus-within, input:hover, input:focus, select:hover, select:focus, textarea:hover, textarea:focus, button:hover, button:focus))),
    .module-card:has(.module-card-header:hover):not(:has(:is(form:hover, form:focus-within, input:hover, input:focus, select:hover, select:focus, textarea:hover, textarea:focus, button:hover, button:focus))),
    .module-card:has(.module-card-header:focus-visible):not(:has(:is(form:hover, form:focus-within, input:hover, input:focus, select:hover, select:focus, textarea:hover, textarea:focus, button:hover, button:focus))) {
        border-color: #3ef15b;
        background: linear-gradient(111deg, rgba(44, 74, 56, 0.99) 84%, rgba(62,241,91,0.19) 100%);
        box-shadow: 0 0 16px #44e68a33;
    }

    /* KEIN Glow, wenn im Form oder interaktives Element innerhalb der Card */
    .module-card:has(form:hover, form:focus-within, input:hover, input:focus, select:hover, select:focus, textarea:hover, textarea:focus, button:hover, button:focus) {
        border-color: rgba(60,60,60,0.10);
        background: var(--card-bg, #191c21);
        box-shadow: 0 2px 18px 0 rgba(0,0,0,0.11);
    }


/* ==== Allgemeines Formular ==== */
form {
    background: linear-gradient(111deg, rgba(34,37,54,0.87) 60%, rgba(56, 82, 61, 0.14) 100%);
    padding: 22px 24px 19px 24px;
    border-radius: 18px;
    box-shadow: 0 6px 19px rgba(62,241,91,0.10), 0 2.5px 0 #3ef15b08 inset;
    margin: 20px auto 0 auto;
    max-width: 94%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow 0.28s, background 0.20s;
    align-items: stretch;
}

    form:hover {
        box-shadow: 0 10px 30px rgba(62,241,91,0.17), 0 4px 18px #44e68a10 inset;
        background: linear-gradient(112deg, rgba(44,56,48,0.97) 50%, rgba(62,241,91,0.09) 100%);
    }

/* Form-Gruppen – Abstand, Label */
.form-group {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-sizing: border-box;
}

    .form-group label {
        font-size: 1.05rem;
        color: #cfffeb;
        margin-bottom: 3px;
        font-weight: 700;
        letter-spacing: 0.01em;
        padding-left: 2px;
    }

/* ==== Allgemeine Eingabefelder ==== */
input, select, textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1.6px solid #3ef15b22;
    border-radius: 10px;
    background-color: rgba(34, 34, 34, 0.94);
    color: #eaffea;
    font-size: 1.10rem;
    font-family: var(--font-main);
    transition: border-color 0.22s, box-shadow 0.22s, background-color 0.2s;
    outline: none;
    display: block;
    margin-bottom: 0;
    overflow-x: hidden;
}
textarea {
    resize: vertical;
    min-height: 70px;
    max-width: 100%;
}

    input[type="text"]:disabled,
    input[type="password"]:disabled,
    select:disabled,
    textarea:disabled {
        opacity: 0.6;
        background: #272f2b;
        color: #ccc;
    }
.checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    padding: 12px 20px;
    border-radius: 11px;
    background: linear-gradient(90deg, rgba(62,241,91,0.10) 0%, rgba(114,137,218,0.07) 100%);
    cursor: pointer;
    user-select: none;
    font-size: 1.07rem;
    font-weight: 500;
    color: #eaffeb;
    transition: background 0.16s, box-shadow 0.18s;
    position: relative;
    margin-bottom: 8px;
}

    /* MODERN CHECKBOX STYLE */
    .checkbox-group input[type="checkbox"] {
        appearance: none;
        width: 26px;
        height: 26px;
        border: 2.5px solid #3ef15b99;
        border-radius: 7px;
        background: rgba(35,44,38,0.87);
        box-shadow: 0 2px 8px #3ef15b23;
        transition: border-color 0.21s, box-shadow 0.18s, background 0.22s;
        cursor: pointer;
        margin: 0 0 0 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

        .checkbox-group input[type="checkbox"]:hover,
        .checkbox-group input[type="checkbox"]:focus {
            border-color: #44e68a;
            box-shadow: 0 0 0 2px #44e68a44, 0 2px 8px #44e68a33;
            background: #222f26;
        }

        .checkbox-group input[type="checkbox"]:checked {
            border-color: #44e68a;
            /*background: linear-gradient(120deg, #44e68a 60%, #3ef15b 100%);
            box-shadow: 0 0 12px #44e68a88;*/
        }

            .checkbox-group input[type="checkbox"]:checked::after {
                content: '';
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%) scale(1);
                width: 15px;
                height: 15px;
                background: url("data:image/svg+xml;utf8,<svg fill='none' viewBox='0 0 18 18' width='18' height='18' xmlns='http://www.w3.org/2000/svg'><path d='M5 9l3 3 5-6' stroke='lime' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center no-repeat;
                transition: transform 0.18s;
                pointer-events: none;
            }

        .checkbox-group input[type="checkbox"]:not(:checked)::after {
            content: '';
            display: none;
        }

        .checkbox-group input[type="checkbox"]:active {
            background: #19261c;
            border-color: #44e68a;
        }

        .checkbox-group input[type="checkbox"]:disabled {
            opacity: 0.46;
            background: #232a23;
            cursor: not-allowed;
            border-color: #4a6156;
        }

    /* Das Label immer rechts! */
    .checkbox-group label {
        margin: 0;
        padding: 0;
        cursor: pointer;
        font-size: 1.05em;
        color: #eaffeb;
        user-select: none;
    }


/* ==== Overlay & Loading ==== */
#loading-screen {
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,0.87);
    color: #3ef15b;
    font-size: 1.7rem;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.24s;
}

/* ==== Responsive ==== */
@media (max-width: 900px) {
    .sidebar {
        width: 77px;
    }

    .main-content {
        margin-left: 82px;
        padding: 22px 7vw;
    }

    .sidebar-title h1 {
        font-size: 1.01rem;
    }

    .sidebar-item span:not(.sidebar-icon) {
        display: none;
    }
}

@media (max-width: 650px) {
    .module-card, .module-card-header, .module-body {
        border-radius: 13px;
        padding: 13px 8px;
    }

    .module-card-header, .module-body {
        padding: 12px 10px;
    }

    .main-content {
        padding: 18px 4vw;
    }

    #login-container {
        min-width: 88vw;
        padding: 21px 8vw;
    }
}

@media (max-width: 480px) {
    #login-header {
        font-size: 1.25rem;
    }

    .sidebar {
        width: 98vw;
        min-width: unset;
        max-width: unset;
    }

    .main-content {
        margin-left: 0;
        padding: 12px 2vw;
    }
}

/* ==== Scrollbar ==== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #33cc33;
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: #1e1e2f;
}

/* ==== Animation ==== */
@keyframes loginFadeIn {
    0% {
        opacity: 0;
        transform: scale(.91) translateY(48px);
    }

    60% {
        opacity: .88;
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* -------- Sidebar Toggle: Modern Minimal -------- */
.sidebar-toggle {
    display: flex;
    position: fixed;
    top: 18px;
    left: env(safe-area-inset-left, 18px);
    z-index: 120;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(34, 37, 40, 0.97);
    box-shadow: 0 2px 12px #44e68a22, 0 1.5px 6px #0003;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.21s, box-shadow 0.18s, background 0.18s;
    border: none;
    outline: none;
    opacity: 1;
    pointer-events: auto;
    /* smooth shadow on focus */
}

    .sidebar-toggle:focus-visible {
        box-shadow: 0 4px 18px #44e68a35, 0 0 0 2.5px #44e68a85;
        outline: none;
    }

    .sidebar-toggle span {
        display: block;
        height: 4px;
        width: 25px;
        background: #44e68a;
        border-radius: 3px;
        margin: 5px auto;
        transition: 0.28s cubic-bezier(.52,.12,.36,1.11);
        box-shadow: 0 1.5px 6px #44e68a25;
    }

    .sidebar-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .sidebar-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .sidebar-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* ------ Toggle bei offener Sidebar automatisch verstecken ------ */
    .sidebar.open ~ .sidebar-toggle,
    .sidebar-toggle.hide,
    body.sidebar-open .sidebar-toggle {
        /* Verschwindet elegant! */
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.19s cubic-bezier(.52,.12,.36,1.11);
    }

/* --------- Nur Mobile/Tablets: Toggle sichtbar --------- */
@media (min-width: 901px) {
    .sidebar-toggle {
        display: none !important;
    }
}


/* ==== Sidebar Backdrop (Darken BG on open) ==== */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(20,32,29,0.56);
    backdrop-filter: blur(2.5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.21s;
}

/* --------- Sidebar: Ultra-Schlank für Mobile --------- */
@media (max-width: 900px) {
    .sidebar-toggle {
        display: flex !important;
    }

    .sidebar {
        width: 42px !important;
        min-width: 38px !important;
        max-width: 48px !important;
        border-radius: 0 8px 8px 0 !important;
        padding: 0 !important;
        box-shadow: 2px 0 9px #44e68a08;
        left: 0;
        z-index: 122;
        transition: transform 0.34s cubic-bezier(.56,.01,.34,1.15), box-shadow 0.22s;
        overflow-x: visible !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        height: 100vh;
        /* ist standardmäßig zu */
        transform: translateX(-110%);
    }

        .sidebar.open {
            transform: translateX(0);
            box-shadow: 8px 0 30px #3ef15b18;
            z-index: 999;
        }

    .sidebar-title {
        display: none !important;
    }

    .sidebar-items {
        gap: 0 !important;
        margin-top: 6px !important;
        flex: 1 1 auto;
    }

    .sidebar-item {
        padding: 10px 0 !important;
        margin: 4px 0 !important;
        justify-content: center !important;
        min-width: 32px !important;
        width: 100% !important;
        border-radius: 8px !important;
    }

        .sidebar-item span:not(.sidebar-icon) {
            display: none !important;
        }

    .sidebar-icon {
        font-size: 1.32em;
        margin: 0 !important;
    }

    /* Footer ist sichtbar, sticky am unteren Rand! */
    .sidebar-footer {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        padding: 6px 0 10px 0;
        margin: 0;
        border-top: 1.1px solid #44e68a14;
        background: none;
        position: sticky;
        bottom: 0;
        min-width: 100%;
        z-index: 5;
    }

    .sidebar-button {
        width: 36px !important;
        min-width: 30px !important;
        height: 36px !important;
        min-height: 30px !important;
        font-size: 1.28em !important;
        padding: 0 !important;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
        background: linear-gradient(90deg, #44e68a 65%, #7289da 100%);
        color: #fff;
        margin: 0 auto;
        box-shadow: 0 2px 7px #44e68a18;
        border: none;
        transition: background 0.16s, box-shadow 0.13s, transform 0.12s;
        display: flex;
    }

        .sidebar-button .footer-icon {
            font-size: 1.1em;
            margin: 0;
            display: inline-block;
        }

        .sidebar-button span:not(.footer-icon) {
            display: none !important;
        }
}

/* --- Ultra-Mini: Kleine Phones, alles so breit wie möglich, keine Lücken --- */
@media (max-width: 600px) {
    .main-content,
    .module-grid,
    .module-card {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
}

/* --- Desktop: Dein klassischer Look --- */
@media (min-width: 901px) {
    .sidebar-toggle {
        display: none !important;
    }

    .main-content {
        margin-left: 15vw;
        width: 82vw;
        max-width: calc(100vw - 18vw);
        min-width: 0;
        transition: margin-left 0.22s, width 0.2s;
        padding: 0;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .module-grid {
        /*margin-left: 70px;*/
        margin-right: auto;
        width: 100%;
        max-width: 1300px;
        min-width: 320px;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .module-card {
        max-width: 1200px;
        min-width: 320px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}




/* ------------------------ */
/* MODAL OVERLAY            */
/* ------------------------ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    overflow-y: auto;
    padding: 0;
    background: rgba(24, 29, 38, 0.83);
    backdrop-filter: blur(2.5px);
    box-sizing: border-box;
    animation: fadeInOverlay 0.38s cubic-bezier(.45,.16,.43,.93);
    -webkit-overflow-scrolling: touch;
}

/* ------------------------ */
/* MODAL CONTENT CONTAINER  */
/* ------------------------ */
.modal-content {
    background: rgba(26, 28, 33, 0.95);
    backdrop-filter: blur(16px) saturate(170%);
    margin: auto;
    padding: 32px 24px 26px 24px;
    border-radius: 20px;
    border: 1.4px solid #2a393c77;
    max-width: 98vw;
    max-height: 92vh;
    width: 99%;
    color: #f6fff7;
    box-shadow: 0 10px 40px 0 #161a21d8, 0 2px 12px #3ef15b1a;
    position: relative;
    top: 50%;
    transform: translateY(-50%) scale(0.98);
    animation: zoomInModal 0.38s cubic-bezier(.41,.15,.29,.91);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 21px;
    box-sizing: border-box;
    touch-action: manipulation;
}

    .modal-content h3,
    .modal-content .modal-title {
        font-size: 1.34rem;
        font-weight: 900;
        text-align: center;
        color: #44e68a;
        text-shadow: 0 2px 12px #44e68a25;
        user-select: none;
        margin: 0 0 8px 0;
        letter-spacing: 0.01em;
        font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    }

    .modal-content .form-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 11px;
    }

    .modal-content label {
        font-weight: 700;
        font-size: 1rem;
        color: #b6e8ce;
        margin-bottom: 2px;
    }

    /* -------- INPUTS -------- */
    .modal-content input[type="text"],
    .modal-content input[type="number"],
    .modal-content select {
        width: 100%;
        padding: 11px 13px;
        border: none;
        border-radius: 8px;
        font-size: 1.05rem;
        background: rgba(32,38,39,0.88);
        color: #fff;
        appearance: none;
        box-sizing: border-box;
        transition: background 0.22s, box-shadow 0.21s;
        font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    }

        .modal-content input:focus,
        .modal-content select:focus {
            outline: none;
            background: rgba(38, 55, 41, 0.99);
            box-shadow: 0 0 8px #3ef15b80;
        }

    /* Custom Dropdown Arrow */
    .modal-content select {
        background-image: url("data:image/svg+xml,%3Csvg fill='%2344e68a' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 17px;
        padding-right: 38px;
        cursor: pointer;
    }

    /* -------- MODERN CHECKBOXES -------- */
    .modal-content .checkbox-group {
        display: flex;
        align-items: center;
        gap: 13px;
        margin: 4px 0 0 0;
        flex-wrap: wrap;
    }

    .modal-content .checkbox-label {
        display: flex;
        align-items: center;
        gap: 11px;
        cursor: pointer;
        user-select: none;
        background: #222a23;
        padding: 10px 14px;
        border-radius: 7px;
        font-weight: 600;
        color: #f6fff7;
        font-size: 1.04em;
        transition: background 0.19s, box-shadow 0.18s;
        position: relative;
    }

        .modal-content .checkbox-label:hover {
            background: #232d2f;
            box-shadow: 0 2px 10px #3ef15b23;
        }

        .modal-content .checkbox-label input[type="checkbox"] {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

    .modal-content .checkbox-custom {
        width: 20px;
        height: 20px;
        background: #293a30b7;
        border: 2.2px solid #3ef15b;
        border-radius: 5px;
        position: relative;
        flex-shrink: 0;
        transition: background 0.2s;
    }

    .modal-content .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
        background: #3ef15b;
        box-shadow: 0 0 0 2.5px #1a241d55 inset;
    }

    .modal-content .checkbox-custom::after {
        content: "";
        position: absolute;
        top: 2.2px;
        left: 6px;
        width: 4.5px;
        height: 10px;
        border: solid #111a;
        border-width: 0 2.3px 2.3px 0;
        transform: rotate(45deg);
        opacity: 0;
        transition: opacity 0.2s;
    }

    .modal-content .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
        opacity: 1;
    }

    .modal-content .checkbox-text {
        font-size: 1em;
        color: #e5ffe8;
        font-weight: 600;
    }

    /* -------- BUTTONS -------- */
    .modal-content button,
    .command-modal .primary-button,
    .command-modal .secondary-button {
        padding: 11px 24px;
        background: linear-gradient(90deg, #3ef15b 16%, #44e68a 100%);
        color: #222;
        font-weight: 800;
        border: none;
        border-radius: 9px;
        cursor: pointer;
        transition: background 0.14s, box-shadow 0.13s, transform 0.12s;
        outline: none;
        font-size: 1.07em;
        box-shadow: 0 1.5px 6px #44e68a23;
        margin-top: 5px;
        margin-bottom: 5px;
    }

        .modal-content button:hover,
        .command-modal .primary-button:hover {
            background: linear-gradient(90deg, #44e68a 22%, #3ef15b 100%);
            box-shadow: 0 3px 14px #44e68a65;
            transform: scale(1.035) translateY(-1.5px);
        }

    .modal-content .danger,
    .command-modal .danger {
        background: #d9534f;
        color: #fff;
    }

        .modal-content .danger:hover {
            background: #b94138;
        }

    /* -------- CLOSE BUTTON -------- */
    .modal-content .modal-close,
    .command-modal .modal-close,
    .modal-content .close {
        color: #44e68a;
        position: absolute;
        right: 15px;
        top: 16px;
        font-size: 1.5rem;
        font-weight: bold;
        background: none;
        border: none;
        cursor: pointer;
        padding: 3px 10px 3px 10px;
        border-radius: 50%;
        transition: color 0.18s, background 0.13s;
        z-index: 10;
    }

        .modal-content .modal-close:hover,
        .command-modal .modal-close:hover,
        .modal-content .close:hover {
            color: #ee5b5b;
            background: #212;
        }

/* --------- FEEDBACK --------- */
#message-container {
    padding: 8px 0 0 0;
    font-size: 1em;
    font-weight: 700;
    color: #44e68a;
    text-align: center;
}

/* -------- SCROLLBAR -------- */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #44e68a19;
    border-radius: 6px;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 800px) {
    .modal-content {
        max-width: 97vw;
        min-width: 0;
        padding: 16vw 4vw 7vw 4vw;
        font-size: 1em;
    }

        .modal-content .modal-close {
            right: 6vw;
            top: 3vw;
            font-size: 2rem;
        }
}

@media (max-width: 520px) {
    .modal-content {
        padding: 5vw 2vw 4vw 2vw;
        max-width: 99vw;
        font-size: 0.97rem;
    }

        .modal-content .modal-title, .modal-content h3 {
            font-size: 1.01rem;
        }
}


/* ------------------------ */
/* ANIMATIONS               */
/* ------------------------ */
@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomInModal {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.92);
    }

    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.modern-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    font-size: 1.08rem;
}

    .modern-checkbox input[type="checkbox"] {
        appearance: none;
        width: 28px;
        height: 28px;
        border: 2.2px solid #44e68a99;
        border-radius: 7px;
        background: rgba(35,44,38,0.78);
        box-shadow: 0 2px 8px #3ef15b15;
        transition: border 0.21s, box-shadow 0.18s, background 0.22s;
        cursor: pointer;
        margin: 0;
        display: block;
        position: relative;
    }

        .modern-checkbox input[type="checkbox"]:hover,
        .modern-checkbox input[type="checkbox"]:focus {
            border-color: #3ef15b;
            box-shadow: 0 0 0 2px #3ef15b66, 0 2px 8px #44e68a33;
            background: #232d22;
        }

        .modern-checkbox input[type="checkbox"]:checked {
            border-color: #3ef15b;
           
        }

    .modern-checkbox .checkbox-custom {
        pointer-events: none;
        position: absolute;
        left: 0;
        top: 0;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modern-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
        content: '';
        display: block;
        width: 18px;
        height: 18px;
        background: url("data:image/svg+xml;utf8,<svg fill='none' viewBox='0 0 20 20' width='20' height='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 11l4 4 6-8' stroke='%233ef15b' stroke-width='2.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
        background-repeat: no-repeat;
        background-position: center;
        margin: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
#welcome-background-form input[type="file"] {
    display: block;
    width: 100%;
    max-width: 320px;
    font-size: 1.06rem;
    font-weight: 500;
    color: #b6e8ce;
    background: linear-gradient(90deg, rgba(62,241,91,0.09) 0%, rgba(114,137,218,0.08) 100%);
    border: 2px dashed #3ef15b44;
    border-radius: 10px;
    padding: 15px 14px 15px 14px;
    margin-top: 2px;
    margin-bottom: 5px;
    transition: border-color 0.16s, background 0.18s, box-shadow 0.17s;
    outline: none;
    cursor: pointer;
    box-shadow: 0 1px 9px #3ef15b16;
}

    #welcome-background-form input[type="file"]:focus,
    #welcome-background-form input[type="file"]:hover {
        border-color: #44e68a;
        background: linear-gradient(90deg, rgba(68,230,138,0.11) 0%, rgba(62,241,91,0.09) 100%);
        box-shadow: 0 0 0 2px #44e68a44, 0 2px 8px #44e68a22;
    }

    #welcome-background-form input[type="file"]:disabled {
        opacity: 0.5;
        border-color: #3ef15b22;
        background: #232c23;
        cursor: not-allowed;
    }


#background-preview-box {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin: 10px 0 0 0;
    background: linear-gradient(90deg, #23332810 0%, #44e68a0d 100%);
    border-radius: 8px;
    padding: 8px 14px;
    box-shadow: 0 1px 8px #44e68a13;
}

#background-upload-preview {
    max-width: 110px;
    max-height: 70px;
    border-radius: 8px;
    box-shadow: 0 2px 12px #44e68a21;
    background: #151f1a;
}

#background-download-link {
    display: inline-block;
    font-size: 1.13em;
    color: #44e68a;
    text-decoration: none;
    margin-left: 6px;
    padding: 3px 0 3px 2px;
    border-radius: 6px;
    transition: background 0.13s;
}

    #background-download-link:hover {
        background: #44e68a22;
        text-decoration: underline;
    }

#background-upload[type="file"] {
    margin-top: 6px;
    border-radius: 8px;
    border: 1.4px solid #3ef15b33;
    background: #151f1a;
    color: #eaffeb;
    font-size: 1.04em;
    padding: 8px 13px;
    transition: border-color 0.18s, box-shadow 0.18s;
}

    #background-upload[type="file"]:focus {
        border-color: #44e68a;
        box-shadow: 0 0 0 2px #44e68a44;
    }

/* -----------------------------------------------
   Filerobot Editor Modal Overlay (unverändert)
------------------------------------------------- */
#filerobot-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 24, 33, 0.96);
    transition: opacity 0.18s;
}

/* Editor Container */
#filerobot-editor-container {
    background: #23293a;
    border-radius: 18px;
    overflow: hidden;
    width: 96vw;
    max-width: 880px;
    min-width: 350px;
    height: 86vh;
    max-height: 650px;
    box-shadow: 0 12px 80px #000d, 0 1.5px 12px #44e68a22;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Actions oben rechts */
#filerobot-editor-actions {
    position: absolute;
    top: 18px;
    right: 28px;
    z-index: 9100;
}

/* Download Button */
#editor-download-btn {
    margin-top: 10px;
    background: #44e68a;
    color: #181c27;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    padding: 7px 22px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1.5px 8px #44e68a40;
    transition: background 0.15s;
}

    #editor-download-btn:hover {
        background: #3ad778;
    }

/* Scrollbar */
#filerobot-editor-container::-webkit-scrollbar {
    width: 10px;
    background: #252e40;
}

#filerobot-editor-container::-webkit-scrollbar-thumb {
    background: #363d4a;
    border-radius: 8px;
}


/* -----------------------------------------------
   Filerobot Editor: Komplettes Dark Theme
------------------------------------------------- */

/* Basisfarben für Modal, Save, Container */
.filerobot-image-editor-root,
.filerobot-image-editor__modal,
.filerobot-image-editor-save-modal,
.filerobot-image-editor__save-modal,
.FIE_save-modal, .SfxModal-Container,
.FIE_root, .FIE_main-container, .FIE_tabs, .FIE_tools-bar, .FIE_tools-bar-wrapper {
    background: #23293a !important;
    color: #f7f7f9 !important;
    border-radius: 16px !important;
}

/* Topbar, Tabs und Panel */
.FIE_topbar,
.FIE_tab,
.FIE_topbar-buttons-wrapper,
.FIE_topbar-center-options,
.FIE_topbar-save-wrapper,
.FIE_tab-label,
.FIE_tabs_toggle_btn,
.FIE_topbar-zoom-label,
.FIE_topbar-zoom-menu,
.FIE_topbar-history-buttons {
    background: #23293a !important;
    color: #f7f7f9 !important;
    border-radius: 10px !important;
}

/* Alle Editor Buttons */
.filerobot-image-editor-root button,
.filerobot-image-editor-root input,
.filerobot-image-editor-root select,
.filerobot-image-editor-root textarea,
.FIE_tools-bar button,
.FIE_tools-bar select,
.FIE_tools-bar .SfxButton-root {
    font-family: 'Roboto', Arial, sans-serif !important;
    color: #f7f7f9 !important;
    background: #252e40 !important;
    border-radius: 8px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transition: background 0.15s;
}

    /* Aktiver Button/Tab */
    .FIE_tab[aria-selected="true"],
    .filerobot-image-editor-root button:active,
    .filerobot-image-editor-root button:focus {
        background: #30364a !important;
        color: #44e68a !important;
    }

/* Inputs/Dropdowns */
.filerobot-image-editor-root input,
.filerobot-image-editor-root select,
.filerobot-image-editor-root textarea,
.SfxInput-root,
.SfxSelect-root {
    background: #252e40 !important;
    color: #f7f7f9 !important;
    border: 1px solid #30364a !important;
    border-radius: 6px !important;
    font-size: 15px;
}

.SfxInput-fieldWrapper input,
.SfxSelect-Input {
    background: #23293a !important;
    color: #f7f7f9 !important;
    border-radius: 5px !important;
    border: none !important;
}

/* Tooltips, Dropdowns */
.SfxSelect-Container,
.SfxDropdown-root,
.FIE_tool-options-wrapper {
    background: #23293a !important;
    color: #f7f7f9 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 20px #0009;
}

/* Slider, Checkboxen, Color Picker */
input[type="range"]::-webkit-slider-thumb {
    background: #44e68a !important;
}

input[type="checkbox"]:checked {
    accent-color: #44e68a !important;
}

/* Highlight-Text */
.FIE_tab-label,
.SfxButton-Label,
.SfxLabel-text {
    color: #f7f7f9 !important;
}

/* Extra: Close/Cross-Buttons auffällig */
.filerobot-image-editor-root button[aria-label="Close"],
.SfxCrossButton-root {
    color: #44e68a !important;
    background: transparent !important;
    border: none !important;
    font-size: 22px !important;
    cursor: pointer !important;
    transition: color 0.13s;
}

    .filerobot-image-editor-root button[aria-label="Close"]:hover,
    .SfxCrossButton-root:hover {
        color: #fff !important;
        background: #222c !important;
    }

/* Optionale Trennlinien & leichte Schatten */
.FIE_tools-bar, .FIE_tool-options-wrapper, .FIE_tabs {
    box-shadow: 0 2px 10px #0008 !important;
    border-bottom: 1px solid #2a2f3c !important;
}



/* Scrollbar auch im Modal */
.filerobot-image-editor-root ::-webkit-scrollbar {
    width: 10px;
    background: #23293a;
}

.filerobot-image-editor-root ::-webkit-scrollbar-thumb {
    background: #363d4a;
    border-radius: 6px;
}

/* Optional: kleinere Details, falls zu hell */
.SfxButton-root[disabled], .SfxButton-root:disabled {
    background: #181c27 !important;
    color: #888 !important;
    opacity: 0.5;
}

/* ------------------------------
   Carousel Prev/Next Buttons
------------------------------- */
.FIE_carousel-prev-button,
.FIE_carousel-next-button,
.sc-1nr0bka-3,
.sc-1nr0bka-4 {
    background: #23293a !important;
    color: #44e68a !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 1.5px 8px #0005 !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.18s, color 0.15s;
}

    .FIE_carousel-prev-button:hover,
    .FIE_carousel-next-button:hover,
    .sc-1nr0bka-3:hover,
    .sc-1nr0bka-4:hover {
        background: #313c50 !important;
        color: #a1ffcb !important;
    }

    /* SVG-Icons in Carousel-Buttons */
    .FIE_carousel-prev-button svg,
    .FIE_carousel-next-button svg,
    .sc-1nr0bka-3 svg,
    .sc-1nr0bka-4 svg {
        fill: #44e68a !important;
        color: #44e68a !important;
        transition: fill 0.15s;
    }

    .FIE_carousel-prev-button:hover svg,
    .FIE_carousel-next-button:hover svg,
    .sc-1nr0bka-3:hover svg,
    .sc-1nr0bka-4:hover svg {
        fill: #a1ffcb !important;
        color: #a1ffcb !important;
    }

/* ----------------------------------------
   Topbar History-Buttons (Undo/Redo/Reset)
----------------------------------------- */
.FIE_topbar-history-buttons,
.sc-21g986-17,
.fLcVck {
    background: #23293a !important;
    border-radius: 9px !important;
    box-shadow: 0 1.5px 8px #0005 !important;
    padding: 2px 8px !important;
    display: flex !important;
    gap: 4px;
}

    .FIE_topbar-history-buttons button,
    .sc-21g986-3,
    .bqphPV {
        background: #252e40 !important;
        color: #44e68a !important;
        border: none !important;
        border-radius: 6px !important;
        min-width: 34px;
        height: 34px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.16s, color 0.14s;
    }

        .FIE_topbar-history-buttons button:disabled,
        .sc-21g986-3:disabled,
        .bqphPV:disabled {
            opacity: 0.5 !important;
            background: #181c27 !important;
            color: #999 !important;
            pointer-events: none;
        }

        .FIE_topbar-history-buttons button:hover,
        .sc-21g986-3:hover,
        .bqphPV:hover {
            background: #313c50 !important;
            color: #a1ffcb !important;
        }

        .FIE_topbar-history-buttons button svg,
        .sc-21g986-3 svg,
        .bqphPV svg {
            fill: #44e68a !important;
            color: #44e68a !important;
        }

        .FIE_topbar-history-buttons button:hover svg,
        .sc-21g986-3:hover svg,
        .bqphPV:hover svg {
            fill: #a1ffcb !important;
            color: #a1ffcb !important;
        }

/* -------------------------------------
   Topbar Save-Wrapper & Save-Button
-------------------------------------- */
.FIE_topbar-save-wrapper,
.sc-m9ezm7-0,
.gPpmSc {
    background: #23293a !important;
    border-radius: 10px !important;
    box-shadow: 0 1.5px 8px #0005 !important;
    padding: 4px 10px !important;
}

.FIE_topbar-save-button,
.sc-m9ezm7-1,
.hsOTor {
    background: #44e68a !important;
    color: #23293a !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 1.5px 8px #44e68a40 !important;
    padding: 5px 18px !important;
    transition: background 0.16s, color 0.14s;
}

    .FIE_topbar-save-button:hover,
    .sc-m9ezm7-1:hover,
    .hsOTor:hover {
        background: #3ad778 !important;
        color: #181c27 !important;
    }

    /* Icon und Text innerhalb Save */
    .FIE_topbar-save-button svg,
    .sc-m9ezm7-1 svg,
    .hsOTor svg {
        fill: #23293a !important;
        color: #23293a !important;
    }

    .FIE_topbar-save-button:hover svg,
    .sc-m9ezm7-1:hover svg,
    .hsOTor:hover svg {
        fill: #181c27 !important;
        color: #181c27 !important;
    }

/* Save-Label extra */
.SfxButton-Label {
    color: #23293a !important;
    font-weight: 600;
}

.FIE_topbar-save-button:hover .SfxButton-Label {
    color: #181c27 !important;
}

/* Tooltip */
.sc-16k2ql4-0,
.SfxLabel-root {
    background: #23293a !important;
    color: #a1ffcb !important;
    border-radius: 8px !important;
    padding: 2px 10px;
    font-size: 15px;
    box-shadow: 0 2px 12px #0006;
}
/* ==== Modal Overlay ==== */
#standaloneModal {
    position: fixed;
    inset: 0; /* top/right/bottom/left = 0 */
    background: rgba(0, 0, 0, 0.4);
    display: none; /* per JS auf 'flex' setzen */
    align-items: center; /* vertikal zentrieren */
    justify-content: center; /* horizontal zentrieren */
    z-index: 2000;
    /* Stelle sicher, dass es als Flex-Container wirkt, wenn angezeigt */
}

    #standaloneModal.show {
        display: flex !important;
    }

    /* ==== Modal Card ==== */
    #standaloneModal .standalone-modal-content {
        background: var(--card-bg, #191c21);
        border-radius: 1.4em;
        box-shadow: 0 2px 18px rgba(0,0,0,0.11);
        width: 90%;
        max-width: 480px;
        padding: 24px;
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(60,60,60,0.10);
        display: flex;
        flex-direction: column;
        gap: 20px;
        animation: fadeInUp 0.24s ease-out;
        transform-origin: center center;
    }

    /* ==== Body mit Checkboxes (Grid zweispaltig) ==== */
    #standaloneModal .modal-body {
        max-height: 60vh;
        overflow-y: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 24px;
        padding: 0 4px;
    }

    /* ==== Footer mit Buttons ==== */
    #standaloneModal .modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 16px;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

/* Fade-in Animation für Card */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

:root {
    --discord-bg: #2f3136;
    --discord-secondary: #36393f;
    --discord-border: #202225;
    --discord-accent: #5865f2;
    --discord-accent-hover: #4752c4;
    --text-primary: #dcddde;
    --text-muted: #72767d;
}

/* ── Embed Card Container ───────────────────────────────────────── */
.embed-card {
    background: var(--discord-bg);
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ── "Discord" Message Header ──────────────────────────────────── */
.discord-message {
    display: flex;
    align-items: flex-start;
    background: var(--discord-secondary);
    border-bottom: 1px solid var(--discord-border);
    padding: 8px 12px;
}

    .discord-message .avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        margin-right: 8px;
    }

.msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-primary);
}

    .msg-header .author {
        font-weight: 600;
    }

    .msg-header .bot-tag {
        background: var(--discord-accent);
        border-radius: 4px;
        padding: 0 4px;
        font-size: 10px;
        font-weight: 600;
        color: #fff;
    }

    .msg-header .timestamp {
        color: var(--text-muted);
        font-size: 12px;
    }

/* ── Embed Editor Body ─────────────────────────────────────────── */
.embed-editor {
    background: var(--discord-bg);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

    .embed-editor .form-group {
        display: flex;
        flex-direction: column;
    }

        .embed-editor .form-group label {
            color: var(--text-primary);
            font-size: 14px;
            margin-bottom: 4px;
        }

        .embed-editor .form-group input,
        .embed-editor .form-group textarea {
            background: var(--discord-secondary);
            border: 1px solid var(--discord-border);
            border-radius: 4px;
            color: var(--text-primary);
            font-size: 14px;
            padding: 6px 8px;
            transition: border-color .2s;
        }

            .embed-editor .form-group input:focus,
            .embed-editor .form-group textarea:focus {
                border-color: var(--discord-accent);
                outline: none;
            }

    /* file-input styling */
    .embed-editor input[type="file"] {
        margin-top: 4px;
        font-size: 12px;
        color: var(--text-muted);
    }

/* ── Field Blocks ───────────────────────────────────────────────── */
.fields-list > .field-block {
    border: 1px solid var(--discord-border);
    border-radius: 4px;
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px;
}

/* ── Action Buttons ─────────────────────────────────────────────── */
.secondary-button.add-field-btn,
.secondary-button.add-link-btn {
    align-self: flex-start;
    background: var(--discord-accent);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    margin-top: 4px;
    padding: 4px 8px;
    transition: background .2s;
}

    .secondary-button.add-field-btn:hover,
    .secondary-button.add-link-btn:hover {
        background: var(--discord-accent-hover);
    }

.remove-embed-btn {
    align-self: flex-end;
    background: #f04747;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    transition: background .2s;
}

    .remove-embed-btn:hover {
        background: #d03535;
    }

/* ── Link-Button Preview ───────────────────────────────────────── */
.embed-link-btn {
    background: var(--discord-accent);
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-size: 13px;
    margin: 4px 6px 0 0;
    padding: 4px 8px;
    text-decoration: none;
    transition: background .2s;
}

    .embed-link-btn:hover {
        background: var(--discord-accent-hover);
    }


.error {
    border: 1px solid red !important;
}
