:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #9e9e9e;
    --accent: #007acc;
    --accent-hover: #0098ff;
    --danger: #d32f2f;
    --success: #388e3c;
    --warning: #fbc02d;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

body.panel-page {
    background: radial-gradient(circle at top right, #1f2937 0%, #121212 45%, #0b0b0b 100%);
    overflow-x: hidden;
}

.panel-page > header,
.panel-page > main,
.panel-page > section,
.panel-page > #manualControlPopoutRoot {
    position: relative;
    z-index: 1;
}

.panel-animated-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.panel-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

.bg-orb {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.32;
    transform: translate3d(0, 0, 0);
}

.orb-a {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0));
    top: -80px;
    right: -80px;
    animation: floatOrbA 18s ease-in-out infinite alternate;
}

.orb-b {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.45), rgba(14, 165, 233, 0));
    bottom: -120px;
    left: -80px;
    animation: floatOrbB 22s ease-in-out infinite alternate;
}

.orb-c {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.38), rgba(99, 102, 241, 0));
    top: 40%;
    left: 45%;
    animation: floatOrbC 20s ease-in-out infinite;
}

@keyframes floatOrbA {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-120px, 80px) scale(1.12); }
}

@keyframes floatOrbB {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, -100px) scale(1.1); }
}

@keyframes floatOrbC {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.08); }
    100% { transform: translate(-35px, 35px) scale(0.96); }
}

body.landing-page {
    padding: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top right, #1f2937 0%, #121212 45%, #0b0b0b 100%);
    overflow-x: hidden;
}

.landing-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.95;
}

.landing-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 36px 44px;
    position: relative;
    z-index: 1;
}

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 42px;
    animation: slideDownFade 0.55s ease;
}

.landing-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.landing-brand {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.landing-panel-link {
    color: #fff;
    text-decoration: none;
    border: 1px solid #2f79d8;
    background: rgba(0, 122, 204, 0.2);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.landing-panel-link:hover {
    background: rgba(0, 152, 255, 0.28);
}

.landing-discord-link {
    border-color: #5865F2;
    background: rgba(88, 101, 242, 0.25);
}

.landing-discord-link:hover {
    background: rgba(88, 101, 242, 0.36);
}

.landing-main {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.landing-section-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
    padding: 0 2px;
    animation: fadeUp 0.7s ease;
}

.landing-section-heading h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3.2vw, 2.4rem);
    letter-spacing: 0.4px;
}

.landing-section-heading p {
    margin: 0;
    color: #9eb0c6;
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
}

.landing-hero {
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid #263142;
    border-radius: 14px;
    padding: 34px;
    animation: fadeUp 0.7s ease;
}

.landing-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.24);
    border: 1px solid #335f9f;
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 12px;
}

.landing-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.landing-hero p {
    margin: 0;
    color: #bcc8d6;
    max-width: 740px;
    line-height: 1.6;
}

.landing-cta-row {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.landing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #007acc, #1d4ed8);
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 10px 16px;
}

.landing-cta:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.landing-cta-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4b5563;
}

.landing-discord-cta {
    background: linear-gradient(135deg, #5865F2, #3f4bd1);
    border-color: #7f8cff;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 18px;
}

.landing-feature-card {
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid #263142;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    animation: fadeUp 0.55s ease;
}

.landing-feature-card:hover {
    transform: translateY(-4px);
    border-color: #3f5f89;
    box-shadow: 0 10px 24px rgba(56, 139, 253, 0.16);
}

.landing-feature-card h3 {
    margin: 0 0 8px;
}

.landing-feature-card p {
    margin: 0;
    color: #acb8c7;
    line-height: 1.55;
}

.landing-use-cases {
    background: rgba(12, 18, 29, 0.72);
    border: 1px solid #243247;
    border-radius: 14px;
    padding: 24px;
    animation: fadeUp 0.75s ease;
}

.landing-support-block {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.85), rgba(25, 36, 56, 0.85));
    border: 1px solid #314569;
    border-radius: 14px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    animation: fadeUp 0.75s ease;
}

.landing-support-block h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.landing-support-block p {
    margin: 0;
    color: #b9c8dc;
    max-width: 780px;
    line-height: 1.6;
}

.landing-use-cases h2 {
    margin: 0 0 14px;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}

.landing-use-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 16px;
}

.landing-use-grid article {
    background: rgba(21, 31, 46, 0.75);
    border: 1px solid #2d3d56;
    border-radius: 12px;
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.landing-use-grid article:hover {
    transform: translateY(-3px);
    border-color: #3f5f89;
}

.landing-use-grid h4 {
    margin: 0 0 6px;
}

.landing-use-grid p {
    margin: 0;
    color: #b0bfd2;
    line-height: 1.55;
}

.landing-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 18px;
    margin-top: 14px;
}

.landing-plan-card {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(14, 20, 32, 0.88));
    border: 1px solid #2d3f5b;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    animation: fadeUp 0.7s ease;
}

.landing-plan-card:hover {
    transform: translateY(-4px);
    border-color: #4a6ea1;
    box-shadow: 0 12px 28px rgba(44, 124, 255, 0.18);
}

.landing-plan-badge {
    display: inline-flex;
    width: fit-content;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #dbeafe;
    border: 1px solid #4b6a96;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 999px;
    padding: 4px 9px;
}

.landing-plan-card h3 {
    margin: 2px 0 0;
    font-size: 1.4rem;
}

.landing-plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: #93c5fd;
    margin-bottom: 2px;
}

.landing-plan-price-link {
    display: inline-flex;
    width: fit-content;
    text-decoration: none;
    border-radius: 10px;
    padding: 2px 4px;
    margin-left: 0;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.landing-plan-price-link:hover {
    background: rgba(59, 130, 246, 0.14);
    transform: translateY(-1px);
}

.landing-plan-price-link:hover .landing-plan-price {
    color: #bfdbfe;
}

.landing-plan-card ul {
    margin: 0;
    padding-left: 18px;
    color: #b8c8dc;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.landing-plan-card .landing-cta {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 0.95rem;
    margin-top: 4px;
}

.plan-default {
    border-color: #3f5f89;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.plan-live {
    border-color: #5865F2;
    box-shadow: 0 10px 24px rgba(88, 101, 242, 0.16);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2b3a52;
    padding-bottom: 16px;
    margin-bottom: 20px;
    gap: 18px;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    letter-spacing: 0.4px;
    animation: slideDownFade 0.55s ease;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 1200px) {
    .landing-shell {
        max-width: 1240px;
        padding: 26px 22px 34px;
    }

    .landing-features {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }

    .landing-use-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }

    .landing-plans-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 760px) {
    .landing-shell {
        padding: 20px 14px 28px;
    }

    .landing-hero {
        padding: 22px;
    }

    .landing-support-block {
        padding: 22px;
    }

    .landing-features,
    .landing-use-grid,
    .landing-plans-grid {
        grid-template-columns: 1fr;
    }
}

button {
    background: linear-gradient(135deg, #007acc, #1d4ed8);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid #2f79d8;
}
button:hover { filter: brightness(1.08); }
button.danger { background-color: var(--danger); }
button.start-btn { background-color: var(--success); }
button.stop-btn { background-color: var(--warning); color: #000; }

input, select {
    background-color: #2d2d2d;
    color: #fff;
    border: 1px solid #444;
    padding: 8px;
    border-radius: 4px;
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); /* Breitere Cards */
    gap: 25px;
}

.bot-card {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.95) 0%, rgba(18, 24, 36, 0.95) 100%);
    border-radius: 8px;
    padding: 20px; /* Mehr Padding */
    border-left: 5px solid #3b4454;
    border: 1px solid #263142;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.bot-card:hover {
    transform: translateY(-3px);
    border-color: #365b8a;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
}
.bot-card.status-online { border-left-color: var(--success); }
.bot-card.status-offline { border-left-color: #555; }
.bot-card.status-error { border-left-color: var(--danger); }
.bot-card.status-connecting { border-left-color: var(--warning); }

.bot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.bot-header h3 { 
    margin: 0; 
    font-size: 1.35rem; /* Größere Schrift */
}

.header-main-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chevron {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.script-badge {
    font-size: 0.85rem;
    color: #007acc;
    background: rgba(0, 122, 204, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: normal;
    margin-left: 8px;
}

.bot-details {
    margin-top: 15px;
    display: block;
}

.bot-card.collapsed .bot-details {
    display: none; /* Hide when collapsed */
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    background: #333;
    font-weight: bold;
}

.bot-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 14px; /* Größere Schrift */
    color: var(--text-muted);
    margin-bottom: 20px;
}

.bot-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.follow-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    background-color: #2b2b2b;
    padding: 10px;
    border-radius: 6px;
}

.follow-section input {
    flex: 1;
}

.following-status {
    color: var(--success);
    font-size: 14px;
}

.logs {
    background: #0a0a0a;
    font-family: 'Consolas', monospace;
    font-size: 13px; /* Größere Logs */
    padding: 12px;
    border-radius: 4px;
    height: 180px; /* Höhere Logs */
    overflow-y: auto;
    margin-bottom: 15px;
}
.log-line { margin: 2px 0; }

.chat-input {
    display: flex;
    gap: 5px;
}
.chat-input input { flex: 1; }

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.78);
    z-index: 2500;
}

.manual-control-overlay {
    background: transparent;
    pointer-events: none;
}

.manual-control-window {
    position: fixed;
    top: 70px;
    left: 80px;
    margin: 0;
    z-index: 2000;
    pointer-events: auto;
    max-height: 90vh;
    overflow: auto;
    resize: both;
    min-width: 360px;
    min-height: 260px;
}

.manual-control-title {
    cursor: move;
    user-select: none;
}
/* Accordion Styles für die Steuerungs-GUI */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.accordion-item {
    border: 1px solid #333;
    border-radius: 6px;
    background-color: #161616;
    overflow: hidden;
}

.accordion-header {
    background-color: #242424;
    color: var(--text-main);
    width: 100%;
    padding: 12px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    border-radius: 0;
}

.accordion-header:hover {
    background-color: #2e2e2e;
}

.accordion-header.active {
    background-color: var(--accent);
    color: #fff;
}

.accordion-content {
    display: none;
    padding: 15px;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

.acc-chevron {
    font-size: 13px;
    color: var(--text-muted);
}
.accordion-header.active .acc-chevron {
    color: #fff;
}

.control-modal-content {
    width: 550px; /* Breitere Steuerung */
}

.checkbox-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #222;
    padding: 12px;
    border-radius: 6px;
    margin-top: 5px;
    max-height: 150px;
    overflow-y: auto;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.gui-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-content {
    background: linear-gradient(180deg, #1b2332 0%, #151a24 100%);
    border: 1px solid #2b3a52;
    width: 400px;
    margin: 50px auto; /* Etwas höher positioniert */
    padding: 25px;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.26s ease;
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .bg-orb,
    .bot-card,
    .modal-content,
    header h1,
    button,
    .landing-header,
    .landing-hero,
    .landing-feature-card,
    .landing-use-cases,
    .landing-support-block,
    .landing-section-heading,
    .landing-plan-card {
        animation: none !important;
        transition: none !important;
    }
}

/* Inventar Layout in der GUI */
.inventory-list {
    margin-bottom: 25px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.inv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
}

.inv-item {
    background: #1e1e1e;
    border: 1px solid #444;
    padding: 6px 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.inv-count {
    color: var(--accent-hover);
    font-weight: bold;
}

.inv-name {
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* 2D Minecraft-Style Inventar Grid */
.mc-inventory-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
    background: #8b8b8b;
    border: 4px solid #373737;
    border-top-color: #c6c6c6;
    border-left-color: #c6c6c6;
    padding: 6px;
    grid-gap: 4px;
    max-width: 100%;
    margin-bottom: 20px;
    box-shadow: inset -2px -2px 0px #555, inset 2px 2px 0px #fff;
}

.mc-inv-slot {
    width: 100%;
    aspect-ratio: 1;
    background: #8b8b8b;
    border: 2px solid #373737;
    border-top-color: #555555;
    border-left-color: #555555;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    image-rendering: pixelated;
}

.mc-inv-slot:hover {
    background: #9d9d9d;
    outline: 2px solid #ffffff;
    z-index: 10;
}

.mc-item-icon {
    width: 80%;
    height: 80%;
    object-fit: contain;
    image-rendering: pixelated;
}

.mc-item-count {
    position: absolute;
    bottom: 2px;
    right: 4px;
    color: #ffffff;
    font-family: 'Minecraft', 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 2px 2px 0px #3f3f3f;
    pointer-events: none;
    z-index: 5;
}

.mc-item-tooltip {
    display: none;
    position: absolute;
    background: rgba(16, 0, 16, 0.9);
    border: 2px solid #2e0854;
    color: #ffffff;
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
    border-radius: 4px;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.5);
    text-align: center;
}

.mc-inv-slot:hover .mc-item-tooltip {
    display: block;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}
