/* Welcome Page CSS */
/* Resizable Text Containers */
.element {
    position: relative;
    transition: all 0.3s ease;
}
.element:hover {
    outline: 2px dashed #5865f2;
    outline-offset: 2px;
    cursor: move;
}
.element.resizable {
    overflow: hidden;
    min-width: 50px;
    min-height: 20px;
    max-width: none;
    max-height: none;
    box-sizing: border-box;
    position: relative;
}
.element.resizable:hover {
    outline: 2px solid #5865f2;
    outline-offset: 2px;
    cursor: nw-resize;
}
/* Resize handle for better UX */
.element.resizable::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: linear-gradient(-45deg, transparent 30%, #5865f2 30%, #5865f2 70%, transparent 70%);
    cursor: nw-resize;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}
.element.resizable:hover::after {
    opacity: 1;
}
/* Resize handles for all corners */
.resize-handle {
    position: absolute;
    background: #5865f2;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    pointer-events: auto;
    user-select: none;
    border: 1px solid #ffffff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}
.resize-handle.se {
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    cursor: nw-resize;
    background: linear-gradient(-45deg, transparent 30%, #5865f2 30%, #5865f2 70%, transparent 70%);
}
.resize-handle.sw {
    bottom: 0;
    left: 0;
    width: 12px;
    height: 12px;
    cursor: ne-resize;
    background: linear-gradient(45deg, transparent 30%, #5865f2 30%, #5865f2 70%, transparent 70%);
}
.resize-handle.ne {
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    cursor: sw-resize;
    background: linear-gradient(45deg, transparent 30%, #5865f2 30%, #5865f2 70%, transparent 70%);
}
.resize-handle.nw {
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    cursor: se-resize;
    background: linear-gradient(-45deg, transparent 30%, #5865f2 30%, #5865f2 70%, transparent 70%);
}
.resizable:hover .resize-handle {
    opacity: 1;
}
.resize-handle:hover {
    opacity: 1 !important;
    background: #4752c4;
    transform: scale(1.1);
}
/* Specific styles for text elements */
.welcome-text.resizable,
.username-text.resizable,
.member-count.resizable {
    border: 1px solid transparent;
    padding: 4px;
    border-radius: 4px;
}
.welcome-text.resizable:hover,
.username-text.resizable:hover,
.member-count.resizable:hover {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.05);
}
/* Professional Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Deckend ohne backdrop-filter: halbtransparent + Blur über dem Viewport triggert beim Ausblenden
       Compositor-Neuaufbau; die Navbar (backdrop-filter) sampelt dann plötzlich andere Pixel → helle Kanten */
    background: #0a0a0f;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    /* Kein Fade nötig — hideLoadingScreen() entfernt den Node direkt (siehe welcome.html) */
}
/* Über Lade-Overlay; gleicher Glas-Look wie /styles.css */
.navbar {
    z-index: 10000 !important;
    background: rgba(15, 15, 15, 0.3) !important;
    backdrop-filter: var(--kynx-blur) !important;
    -webkit-backdrop-filter: var(--kynx-blur) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* Logo: keine Welcome-Overrides — /styles.css .logo-img (drop-shadow + glow) wie Kick/Dashboard */
/* .loading-screen.hidden — nicht mehr genutzt (Overlay wird per JS sofort entfernt) */
.loading-container {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
    background: rgba(44, 47, 51, 0.8);
    backdrop-filter: var(--kynx-blur);
    border-radius: 24px;
    border: 1px solid rgba(88, 101, 242, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.loading-logo {
    position: relative;
    margin-bottom: 2rem;
}
.logo-image {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background-color: #070709;
    box-shadow: 0 0 24px rgba(88, 101, 242, 0.45);
    animation: logoFloat 3s ease-in-out infinite;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: logoGlow 2s ease-in-out infinite alternate;
}
@keyframes logoGlow {
    from { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}
.loading-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #5865f2, #7289da);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.loading-title p {
    color: #b9bbbe;
    font-size: 1rem;
    margin-bottom: 2rem;
}
.loading-progress {
    margin-bottom: 2rem;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5865f2, #7289da);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}
.progress-text {
    color: #b9bbbe;
    font-size: 0.9rem;
    font-weight: 500;
}
.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0.5;
}
.step.active {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}
.step.completed {
    background: rgba(87, 242, 135, 0.2);
    border-color: rgba(87, 242, 135, 0.5);
    opacity: 0.8;
}
.step i {
    font-size: 1.2rem;
    color: #5865f2;
    width: 24px;
    text-align: center;
}
.step.completed i {
    color: #57f287;
}
.step span {
    color: #ffffff;
    font-weight: 500;
    flex: 1;
}
/* Loading Screen Responsive */
@media (max-width: 480px) {
    .loading-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    .loading-title h2 {
        font-size: 1.5rem;
    }
    .logo-image {
        width: 60px;
        height: 60px;
    }
    .logo-glow {
        width: 90px;
        height: 90px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

*:focus,
*:focus-visible {
    outline: none !important;
}

:root {
    /* Discord Dark Theme Colors */
    --discord-dark: #2c2f33;
    --discord-darker: #23272a;
    --discord-darkest: #18191c;
    --discord-light: #40444b;
    --discord-lighter: #4f545c;
    --discord-accent: #5865f2;
    --discord-accent-hover: #4752c4;
    --discord-green: #57f287;
    --discord-red: #ed4245;
    --discord-yellow: #fee75c;
    --discord-text: #dcddde;
    --discord-text-muted: #72767d;
    --discord-text-link: #00b0f4;
    --discord-border: #40444b;
    --discord-shadow: rgba(0, 0, 0, 0.5);
    --discord-glow: rgba(88, 101, 242, 0.4);
    --discord-card: #2c2f33;
    --discord-card-hover: #36393f;
}
/* Fluid + Light Pillar (Smoke): Basis schwarz, Effekte in z-index -1 / -2, Inhalt transparent */
html {
    background: #000000;
    color-scheme: dark;
    /* Gleicher Scroll-Root wie body – vermeidet Rand-Artefakte durch html overflow-y + body hidden */
    overflow-x: hidden;
    overflow-y: hidden;
}
html::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: -3;
    pointer-events: none;
}
/* Voller schwarzer Layer unter Light Pillar / Fluid (verhindert helle Ecken durch WebGL-Alpha & Backdrop) */
#background-fallback {
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    background: #000000;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent !important;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}
/* Navigation styles are handled by /styles.css - only z-index override for loading screen */
.login-btn {
    background: linear-gradient(135deg, var(--discord-accent), var(--discord-accent-hover));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--discord-glow);
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--discord-glow);
}
/* Profile Section */
.profile-section {
    position: relative;
    display: none;
}
.profile-section.show {
    display: flex !important;
    align-items: center;
}
.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--discord-accent);
    transition: all 0.3s ease;
    object-fit: cover;
    background-color: var(--discord-dark);
}
.avatar-img:hover {
    border-color: var(--discord-accent-hover);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--discord-glow);
}
.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 25px var(--discord-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    margin-top: 10px;
}
.profile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.profile-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}
.profile-info {
    display: flex;
    flex-direction: column;
}
.username {
    font-weight: 600;
    color: #dcddde;
    font-size: 14px;
}
.discriminator {
    color: #72767d;
    font-size: 12px;
}
.profile-actions {
    padding: 8px 0;
}
.profile-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #dcddde;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
}
.profile-link:hover {
    background: rgba(15, 15, 15, 0.5);
}
.profile-link i {
    width: 16px;
    margin-right: 12px;
}
/* Text Alignment Buttons */
.text-align-buttons {
    display: flex;
    gap: 2px;
    margin-top: 6px;
}
.align-btn:hover {
    background: var(--discord-lighter);
    border-color: var(--discord-accent);
}
.align-btn.active {
    background: var(--discord-accent);
    color: white;
    border-color: var(--discord-accent);
}
.align-btn:active {
    transform: scale(0.95);
}
/* Language Switcher */
.language-switcher {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1006;
}
.lang-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.lang-btn:hover {
    transform: scale(1.05);
}
.lang-btn:focus {
    outline: none;
    box-shadow: none;
}
.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.language-menu {
    position: fixed;
    top: calc(50% + 30px);
    right: 20px;
    width: 200px;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 25px var(--discord-shadow);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--discord-text);
}
.lang-option:hover {
    background: rgba(88, 101, 242, 0.1);
    color: var(--discord-accent);
}
.lang-option span {
    font-size: 0.9rem;
    font-weight: 500;
}
/* Server Management Header — wie Dashboard (Transparenz + Blur) */
.server-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.server-management-header .header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    max-height: 70px;
    overflow: hidden;
}
.server-management-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
    height: 100%;
    max-height: 70px;
    overflow: hidden;
    line-height: 1;
}
.server-management-header .breadcrumb-separator,
.breadcrumb-separator {
    color: #666;
}
.server-management-header #serverName {
    color: #4f46e5;
    font-weight: 600;
}
.server-management-header .current-page {
    color: #ffffff;
    font-weight: 600;
}
.server-management-header .back-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    max-height: 40px;
    min-width: 120px;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    flex-shrink: 0;
}
.server-management-header .back-btn:hover {
    background: #444;
}
.server-management-header .header-premium-slot {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    flex-shrink: 0;
}
.premium-mini-card {
    min-width: 118px;
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    background: rgba(12, 12, 14, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.premium-mini-card--premium {
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 4px 24px rgba(251, 191, 36, 0.08);
}
.premium-mini-card--free {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08);
}
.premium-mini-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.premium-mini-status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}
.premium-mini-status {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.premium-mini-status--premium {
    color: #fbbf24;
    text-shadow: 0 0 18px rgba(251, 191, 36, 0.35);
}
.premium-mini-status--free {
    color: #60a5fa;
    text-shadow: 0 0 14px rgba(96, 165, 250, 0.25);
}
.premium-mini-tag {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.12));
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fde68a;
}
.premium-mini-quota-hint {
    font-size: 0.58rem;
    color: #a1a1aa;
    text-align: center;
    line-height: 1.25;
    max-width: 160px;
}
.premium-mini-quota {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding-top: 6px;
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.premium-mini-quota-label {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a1a1aa;
}
.premium-mini-quota-value {
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #e4e4e7;
    letter-spacing: 0.02em;
}
.premium-mini-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.premium-mini-btn {
    font-size: 0.65rem;
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    background: #5865f2;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}
.premium-mini-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.server-management-header .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    max-height: 70px;
    overflow: hidden;
}
.export-positions-btn,
.import-positions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    flex-shrink: 0;
}
.export-positions-btn:hover,
.import-positions-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.export-positions-btn:active,
.import-positions-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.export-positions-btn i,
.import-positions-btn i {
    font-size: 0.9rem;
}
.import-positions-btn {
    margin-left: 0.5rem;
}
/* Main Content Area */
.main-content {
    margin-top: 140px;
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
}
/* Welcome Page Discord Message Styles */
.welcome-card-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(44, 47, 51, 0.42);
    border-radius: 12px;
    border: 1px solid var(--discord-border);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    box-shadow: 0 8px 30px var(--discord-shadow);
}
.welcome-card-container h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--discord-text);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--discord-accent), #7289da);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--discord-glow);
}
.welcome-card-container p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--discord-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}
.welcome-messages-section {
    position: fixed;
    top: 140px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    padding: 0;
    /* Zoom-Unterstützung */
    transform-origin: center;
    /* Container passt sich dynamisch an */
    box-sizing: border-box;
    /* Zoom-Container-Unterstützung */
    transition: width 0.2s ease, height 0.2s ease, left 0.2s ease, top 0.2s ease;
}
/* Zoom Controller - nur in PC-View sichtbar */
.zoom-controller {
    position: fixed;
    top: 180px;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(44, 47, 51, 0.45);
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: auto;
    /* WICHTIG: Zoom-Controller wird NICHT skaliert */
    transform: none !important;
    /* Zusätzlicher Schutz vor Skalierung */
    transform-origin: initial !important;
    /* Zoom-Controller bleibt immer an der gleichen Position */
    will-change: auto;
}
/* Zusätzlicher Schutz: Zoom-Controller bleibt bei allen Zoom-Levels unverändert */
.zoom-controller * {
    transform: none !important;
    transform-origin: initial !important;
}
/* Zoom-Unterstützung: Container passt sich dynamisch an */
.welcome-messages-section.zoomed {
    overflow: visible;
    /* Bei Zoom: Alle Elemente sichtbar machen */
}
.editor-main-container.zoomed {
    overflow: visible;
    /* Bei Zoom: Alle Elemente sichtbar machen */
}
/* WICHTIG: Bei Zoom-In alle Elemente sichtbar machen */
.welcome-messages-section[style*="width: 1"] {
    overflow: visible !important;
}
.welcome-messages-section[style*="width: 2"] {
    overflow: visible !important;
}
/* WICHTIG: Bei Zoom-Out alle Elemente sichtbar machen */
.welcome-messages-section[style*="width: 0"] {
    overflow: visible !important;
}
.welcome-messages-section[style*="width: 0.5"] {
    overflow: visible !important;
}
.welcome-messages-section[style*="width: 0.7"] {
    overflow: visible !important;
}
.welcome-messages-section[style*="width: 0.8"] {
    overflow: visible !important;
}
.welcome-messages-section[style*="width: 0.9"] {
    overflow: visible !important;
}
/* Discord Channel & Actions Container - normale Settings-Panels */
.channel-actions-container {
    z-index: 10;
    position: absolute;
    top: 4.8rem;
    left: 20vw;
    pointer-events: auto;
}
.extended-settings {
    z-index: 10;
    position: absolute;
    left: calc(20vw + 500px + 2rem);
    pointer-events: auto;
}
/* Header-Styles für beide Container (wie normale Settings-Panels) */
.channel-actions-container h3,
.extended-settings h3 {
    cursor: move !important;
    user-select: none;
}
.channel-actions-container *,
.extended-settings * {
    cursor: default;
}
/* WICHTIG: Header als Drag-Handle aktivieren */
.extended-settings h3 {
    cursor: move !important;
    user-select: none;
    pointer-events: auto;
    z-index: 1000;
    position: relative;
}
.extended-settings h3:active {
    cursor: grabbing !important;
}
/* WICHTIG: Alle anderen Elemente im Container blockieren Drag & Drop nicht */
.extended-settings > *:not(h3) {
    pointer-events: none;
}
/* WICHTIG: Aber Preset-Elemente sollen trotzdem klickbar sein */
.extended-settings .preset-preview,
.extended-settings .preset-btn {
    pointer-events: auto;
}
/* Preset System Container - normale Settings-Panels */
.preset-container,
.preset-box,
.preset-preview,
.preset-buttons,
.preset-btn {
    z-index: 10;
    pointer-events: none;
}
/* Spezielle Regeln für Preset-Elemente */
.preset-container {
    position: relative;
    z-index: 11;
    pointer-events: none;
}
.preset-box {
    position: relative;
    z-index: 12;
    pointer-events: none;
}
.preset-preview {
    position: relative;
    z-index: 13;
    pointer-events: auto;
    cursor: pointer;
}
.preset-buttons {
    position: relative;
    z-index: 14;
    pointer-events: none;
}
.preset-btn {
    position: relative;
    z-index: 15;
    pointer-events: auto;
    cursor: pointer;
}
.zoom-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: var(--discord-darker);
    color: var(--discord-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    pointer-events: auto;
    position: relative;
    z-index: 10001;
}
.zoom-btn:hover {
    background: var(--discord-accent) !important;
    color: white !important;
    transform: translateY(-1px) !important;
}
.zoom-btn:active {
    transform: translateY(0) !important;
}
.zoom-level {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--discord-text);
    min-width: 45px;
    text-align: center;
    user-select: none;
}
/* Blueprint Connections */
.blueprint-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
/* Blueprint Connection Pipes */
.connection-line {
    stroke: #5865f2;
    stroke-width: 8;
    fill: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transform-origin: center;
    opacity: 0.8;
    /* animation: windIdle 4s ease-in-out infinite; */
}
/* .connection-line:nth-child(2n) {
    animation-delay: 0.5s;
}
.connection-line:nth-child(3n) {
    animation-delay: 1s;
}
.connection-line:nth-child(4n) {
    animation-delay: 1.5s;
}
.connection-line:nth-child(5n) {
    animation-delay: 2s;
} */
.connection-line.simple-line {
    stroke: #7289da;
    stroke-width: 6;
    opacity: 0.6;
}
.connection-line.inter-panel {
    stroke: #4752c4;
    stroke-width: 4;
    opacity: 0.7;
    stroke-dasharray: 3, 3;
    /* animation: connectionFlow 2s linear infinite, windIdle 4s ease-in-out infinite; */
}
.connection-line.active {
    stroke: #57f287;
    stroke-width: 10;
    filter: 
        drop-shadow(0 0 8px rgba(87, 242, 135, 0.6))
        drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    animation: pipeGlow 3s ease-in-out infinite, windIdle 4s ease-in-out infinite;
    opacity: 1;
}
/* Animation effects */
.connection-line.pulse {
    stroke: #ff6b6b;
    stroke-width: 10;
    filter: 
        drop-shadow(0 0 15px rgba(255, 107, 107, 0.9))
        drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    animation: pipePulse 3s ease-in-out infinite, windIdle 4s ease-in-out infinite;
    opacity: 1;
}
.connection-line.glow {
    stroke: #a855f7;
    stroke-width: 10;
    filter: 
        drop-shadow(0 0 20px rgba(168, 85, 247, 0.9))
        drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
    animation: pipeGlow 4s ease-in-out infinite, windIdle 4s ease-in-out infinite;
    opacity: 1;
}
.connection-line.flow {
    stroke: #10b981;
    stroke-width: 10;
    filter: 
        drop-shadow(0 0 18px rgba(16, 185, 129, 0.9))
        drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    animation: dataFlow 3s ease-in-out infinite, windIdle 4s ease-in-out infinite;
    opacity: 1;
}
.connection-line.sagging {
    animation: cableSag 1.5s ease-in-out, windIdle 4s ease-in-out infinite;
}
/* Removed pipeWobble to prevent shaking */
@keyframes pipeGlow {
    0%, 100% { 
        filter: 
            drop-shadow(0 0 8px rgba(87, 242, 135, 0.6))
            drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    }
    50% { 
        filter: 
            drop-shadow(0 0 15px rgba(87, 242, 135, 0.9))
            drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    }
}
@keyframes windIdle {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
    }
    25% { 
        transform: translateX(1px) translateY(0.5px) rotate(0.3deg);
    }
    50% { 
        transform: translateX(2px) translateY(1px) rotate(0.6deg);
    }
    75% { 
        transform: translateX(0.5px) translateY(1.5px) rotate(0.4deg);
    }
}
@keyframes cableSag {
    0%, 100% { 
        transform: translateY(0px) scaleY(1);
    }
    25% { 
        transform: translateY(1px) scaleY(1.02);
    }
    50% { 
        transform: translateY(2px) scaleY(1.05);
    }
    75% { 
        transform: translateY(1.5px) scaleY(1.03);
    }
}
@keyframes connectionFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 12; }
}
/* Keyframe animations */
@keyframes pipePulse {
    0%, 100% { 
        stroke-width: 10;
        filter: 
            drop-shadow(0 0 15px rgba(255, 107, 107, 0.9))
            drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    }
    50% { 
        stroke-width: 12;
        filter: 
            drop-shadow(0 0 25px rgba(255, 107, 107, 1))
            drop-shadow(0 2px 12px rgba(0, 0, 0, 0.7));
    }
}
@keyframes dataFlow {
    0% { 
        stroke-dasharray: 1, 0;
        stroke-dashoffset: 0;
    }
    50% { 
        stroke-dasharray: 0, 1;
        stroke-dashoffset: 20;
    }
    100% { 
        stroke-dasharray: 1, 0;
        stroke-dashoffset: 40;
    }
}
/* Connection Nodes */
.connection-node {
    fill: url(#nodeGradient);
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 1;
    animation: nodeBreath 3s ease-in-out infinite, nodeWindIdle 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transform-origin: center;
}
.connection-node:nth-child(2n) {
    animation-delay: 0.5s, 0.5s;
}
.connection-node:nth-child(3n) {
    animation-delay: 1s, 1s;
}
.connection-node:nth-child(4n) {
    animation-delay: 1.5s, 1.5s;
}
.connection-node:nth-child(5n) {
    animation-delay: 2s, 2s;
}
.connection-node.active {
    fill: url(#activeNodeGradient);
}
/* Node effects */
.connection-node.pulse {
    fill: url(#pulseNodeGradient);
    filter: 
        drop-shadow(0 0 15px rgba(255, 107, 107, 0.8))
        drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    animation: nodePulse 1.5s ease-in-out infinite;
}
.connection-node.glow {
    fill: url(#glowNodeGradient);
    filter: 
        drop-shadow(0 0 20px rgba(168, 85, 247, 0.8))
        drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
    animation: nodeGlow 2.5s ease-in-out infinite;
}
.connection-node.breathing {
    animation: nodeBreath 2s ease-in-out;
}
.connection-node {
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 2;
    animation: nodeBreath 1.5s ease-in-out infinite, nodeGlow 2s ease-in-out infinite;
    filter: 
        drop-shadow(0 0 12px rgba(87, 242, 135, 0.8))
        drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}
@keyframes nodeBreath {
    0%, 100% { 
        r: 6; 
        opacity: 0.9;
        transform: scale(1);
    }
    50% { 
        r: 8; 
        opacity: 1;
        transform: scale(1.1);
    }
}
@keyframes nodeWindIdle {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
    }
    25% { 
        transform: translateX(0.8px) translateY(0.4px) rotate(0.4deg);
    }
    50% { 
        transform: translateX(1.5px) translateY(0.8px) rotate(0.8deg);
    }
    75% { 
        transform: translateX(0.6px) translateY(1.2px) rotate(0.6deg);
    }
}
@keyframes nodeGlow {
    0%, 100% { 
        filter: 
            drop-shadow(0 0 8px rgba(87, 242, 135, 0.6))
            drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
    }
    50% { 
        filter: 
            drop-shadow(0 0 20px rgba(87, 242, 135, 1))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    }
}
/* Node keyframe animations */
@keyframes nodePulse {
    0%, 100% { 
        transform: scale(1);
        filter: 
            drop-shadow(0 0 15px rgba(255, 107, 107, 0.8))
            drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    }
    50% { 
        transform: scale(1.2);
        filter: 
            drop-shadow(0 0 25px rgba(255, 107, 107, 1))
            drop-shadow(0 2px 12px rgba(0, 0, 0, 0.7));
    }
}
/* Main Editor Container */
.editor-main-container {
    display: flex;
    gap: 3rem;
    height: calc(100vh - 160px); /* Dynamische Höhe basierend auf verfügbarem Platz */
    padding: 2rem;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
    background: transparent;
    box-sizing: border-box;
    /* Responsive Padding für verschiedene Bildschirmgrößen */
    padding-left: max(2rem, 5vw);
    padding-right: max(2rem, 5vw);
    padding-top: max(2rem, 3vh);
    padding-bottom: max(2rem, 3vh);
    /* Container füllt den gesamten verfügbaren Platz */
    width: 100%;
    max-width: 100vw;
    /* Verhindert Überlauf */
    overflow: hidden;
}
/* Discord Channel & Global Actions Container */
.channel-actions-container {
    position: absolute;
    margin: 0;
    width: 720px;
    height: 223px;
    min-height: 223px;
    max-width: calc(100vw - 4rem);
    background: rgba(44, 47, 51, 0.4);
    border: 1px solid var(--discord-border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10;
    cursor: move;
    will-change: transform, left, top;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
/* Channel Actions Container in Blueprint Canvas */
.channel-actions-container.blueprint-node-element {
    position: absolute;
    min-width: 640px;
    max-width: 640px;
    width: 720px;
    height: 253px;
    min-height: 253px;
    z-index: 1000;
    user-select: none;
}
.channel-actions-container.blueprint-node-element:hover:not(.dragging) {
    border-color: var(--discord-accent);
    box-shadow: 0 12px 40px rgba(114, 137, 218, 0.2);
    transform: translateY(-2px);
}
.channel-actions-container.blueprint-node-element.dragging {
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
    transition: none;
    pointer-events: none;
}
.channel-actions-container.blueprint-node-element.dragging * {
    pointer-events: none;
}
/* Header Drag Handle */
.channel-actions-container h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--discord-text);
    font-size: 1rem;
    font-weight: 700;
    cursor: move;
    user-select: none;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(135deg, var(--discord-accent), rgba(114, 137, 218, 0.8));
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}
.channel-actions-container h3:active {
    cursor: grabbing;
}
.channel-actions-container h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.channel-actions-container h3:hover::before {
    left: 100%;
}
.channel-actions-container h3:hover {
    background: linear-gradient(135deg, var(--discord-accent-hover), rgba(114, 137, 218, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}
/* Neuer länglicher Settings Container */
.extended-settings {
    /* Blueprint Node Styling */
    position: absolute;
    width: 680px;
    height: 223px;
    min-height: 223px;
    max-height: 80vh;
    background: rgba(44, 47, 51, 0.4);
    border: 1px solid var(--discord-border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10;
    cursor: move;
    will-change: transform, left, top;
    overflow: visible;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
/* Blueprint Node Specific Styling for Presets - wie normaler Settings Container */
.extended-settings.blueprint-node-element {
    /* Normales Settings-Panel Styling ohne blauen Rand */
    border: 1px solid var(--discord-border);
    background: rgba(44, 47, 51, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* Override blueprint node width constraints */
    max-width: 680px;
    min-width: 680px;
    user-select: none;
}
.extended-settings.blueprint-node-element:hover:not(.dragging) {
    border-color: var(--discord-accent);
    box-shadow: 0 12px 40px rgba(114, 137, 218, 0.2);
    transform: translateY(-2px);
}
.extended-settings.blueprint-node-element.dragging {
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
    transition: none;
    pointer-events: none;
}
.extended-settings.blueprint-node-element.dragging * {
    pointer-events: none;
}
/* Header Drag Handle für Presets Container */
.extended-settings h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--discord-accent);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: move;
    user-select: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.extended-settings h3:active {
    cursor: grabbing;
}
.extended-settings h3:hover {
    background: rgba(88, 101, 242, 0.1);
    color: var(--discord-accent-hover);
}
/* Kabel-Verbindungen werden dynamisch im SVG generiert */
/* Channel Selection Styles */
.channel-selection {
    margin-bottom: 1.5rem;
}
.channel-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.channel-select {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    background: var(--discord-darker);
    color: var(--discord-text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.channel-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    background: var(--discord-darker);
    color: var(--discord-text);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.channel-refresh-btn:hover {
    border-color: var(--discord-accent);
    background: var(--discord-accent);
    color: white;
    transform: translateY(-1px);
}
.channel-refresh-btn:active {
    transform: translateY(0);
}
.channel-refresh-btn i {
    font-size: 0.9rem;
}
/* Toggle Switch in channel input group */
.channel-input-group .toggle-switch {
    position: relative;
    width: 40px;
    height: 20px;
    margin-left: 0.5rem;
    flex-shrink: 0;
}
.channel-input-group .toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}
/* Notification Styles */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--discord-darker);
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}
.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--discord-text);
}
.notification-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}
.notification-content span {
    font-size: 0.9rem;
    line-height: 1.4;
}
.notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--discord-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.notification-close:hover {
    color: var(--discord-text);
    background: rgba(255, 255, 255, 0.1);
}
/* Notification Types */
.notification-success {
    border-left: 4px solid var(--discord-green);
}
.notification-success .notification-content i {
    color: var(--discord-green);
}
.notification-error {
    border-left: 4px solid #ed4245;
}
.notification-error .notification-content i {
    color: #ed4245;
}
/* Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.channel-input-group .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--discord-border);
    transition: 0.3s;
    border-radius: 20px;
}
.channel-input-group .toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}
.channel-input-group .toggle-input:checked + .toggle-slider {
    background-color: var(--discord-green);
}
.channel-input-group .toggle-input:checked + .toggle-slider:before {
    transform: translateX(20px);
}
/* Toggle Switch Styles */
.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 0.5rem;
}
.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
}
.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--discord-border);
    transition: 0.3s;
    border-radius: 24px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}
.toggle-input:checked + .toggle-slider {
    background-color: var(--discord-green);
}
.toggle-input:checked + .toggle-slider:before {
    transform: translateX(26px);
}
.setting-description {
    color: var(--discord-muted);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 0.25rem;
    display: block;
}
.channel-select:hover {
    border-color: var(--discord-accent);
}
.channel-select:focus {
    outline: none;
    border-color: var(--discord-accent);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}
/* Global Actions Styles */
.global-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 100px;
    justify-content: center;
}
.action-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.action-btn:active {
    transform: translateY(0px) scale(0.98);
    transition: all 0.1s ease;
}
/* Subtle glow animation on hover */
.action-btn:hover {
    animation: subtleGlow 2s ease-in-out infinite alternate;
}
@keyframes subtleGlow {
    0% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    }
}
.save-all-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.test-message-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.test-message-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}
.test-message-btn.sending {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}
.test-message-btn.sending i {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.save-all-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}
.save-all-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 2px 10px rgba(87, 242, 135, 0.4);
    transition: all 0.1s ease;
}
.save-all-btn.saving {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    animation: savePulse 0.6s ease-in-out;
}
.save-all-btn.saved {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: saveSuccess 0.8s ease-out;
}
.save-all-btn.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: saveError 0.6s ease-in-out;
}
/* Save Button Animations */
@keyframes savePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes saveSuccess {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes saveError {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
}
/* Modern Ripple Effect for all buttons */
.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    pointer-events: none;
}
.action-btn:active::before {
    width: 200px;
    height: 200px;
}
.reset-all-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.reset-all-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}
.extended-settings .setting-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--discord-darker);
    border-radius: 8px;
}
.extended-settings .setting-group label {
    min-width: 120px;
    font-weight: 500;
    color: var(--discord-text);
}
.extended-settings .setting-group .modern-slider {
    flex: 1;
    margin: 0;
}
.extended-settings .setting-group .color-picker {
    width: 50px;
    height: 6px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.extended-settings .setting-group .text-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--discord-border);
    border-radius: 6px;
    background: var(--discord-darker);
    color: var(--discord-text);
    font-size: 0.9rem;
}
.extended-settings .setting-group .slider-value {
    min-width: 60px;
    text-align: right;
    color: var(--discord-text-muted);
    font-size: 0.9rem;
}
/* Preset System Styles */
.preset-container {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    justify-content: center;
    /* WICHTIG: Preset Container immer über anderen Elementen */
    position: relative;
    z-index: 1001;
    pointer-events: none;
}
.preset-box {
    flex: 1;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    /* WICHTIG: Preset Box immer über anderen Elementen */
    position: relative;
    z-index: 1002;
    pointer-events: none;
}
.preset-preview {
    width: 200px;
    height: 90px;
    background: var(--discord-darker);
    border: 2px solid var(--discord-border);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}
.preset-preview:hover {
    /* Keine Hover-Effekte */
}
.preset-preview.active {
    border-color: var(--discord-accent);
    box-shadow: 0 0 0 3px var(--discord-accent);
}
.preset-buttons {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}
.preset-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    /* WICHTIG: Preset Button immer über anderen Elementen */
    position: relative;
    z-index: 1005;
    pointer-events: auto;
}
.preset-btn:hover:not(:disabled) {
    /* Keine Hover-Effekte */
}
.preset-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.save-btn {
    background: linear-gradient(135deg, var(--discord-green), #3ba55c);
    color: white;
}
.save-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #3ba55c, var(--discord-green));
}
.delete-btn {
    background: linear-gradient(135deg, var(--discord-red), #c53030);
    color: white;
}
.delete-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c53030, var(--discord-red));
}
/* Responsive Layout for different screen sizes */
@media (max-width: 1400px) {
    .editor-main-container {
        gap: 2rem;
        padding: max(1.5rem, 4vw) max(2rem, 4vw);
        height: calc(100vh - 160px);
        overflow: hidden;
    }
    .profile-settings,
    .background-settings,
    .welcome-settings,
    .username-settings,
    .member-settings {
        width: 240px;
        max-width: calc(100vw - 4rem);
    }
    .extended-settings:not(.blueprint-node-element) {
        width: 680px;
        max-width: calc(100vw - 4rem);
        height: 223px;
        min-height: 223px;
        max-height: 80vh;
        left: calc(20vw + 500px + 2rem);
        overflow: visible;
    }
    .preset-container {
        gap: 0.8rem;
        margin-bottom: 1rem;
        min-width: 600px; /* Feste Mindestbreite beibehalten */
        max-width: 800px; /* Feste Maximalbreite beibehalten */
    }
    .preset-box {
        min-width: 180px; /* Feste Mindestbreite beibehalten */
        max-width: 200px; /* Feste Maximalbreite beibehalten */
    }
    .preset-preview {
        width: 180px; /* Feste Breite beibehalten */
        height: 90px; /* Feste Höhe beibehalten */
    }
}
@media (max-width: 1900px) {
    /* Nur Größenanpassungen, keine Layout-Änderungen */
    .editor-main-container {
        gap: 2rem;
        padding: max(1.5rem, 3vw) max(2rem, 3vw);
        height: calc(100vh - 160px);
    }
    .profile-settings,
    .background-settings,
    .welcome-settings,
    .username-settings,
    .member-settings {
        width: 200px;
        max-width: calc(100vw - 4rem);
        min-width: 180px;
    }
    .preview-center-container {
        max-width: calc(100vw - 4rem);
    }
    .extended-settings:not(.blueprint-node-element) {
        width: 680px;
        max-width: calc(100vw - 3rem);
        height: 223px;
        min-height: 223px;
        max-height: 80vh;
        left: calc(20vw + 450px + 2rem);
        padding: 1.2rem;
        overflow: visible;
    }
    .preset-container {
        gap: 0.6rem;
        margin-bottom: 1rem;
        min-width: 600px; /* Feste Mindestbreite beibehalten */
        max-width: 800px; /* Feste Maximalbreite beibehalten */
    }
    .preset-box {
        min-width: 180px; /* Feste Mindestbreite beibehalten */
        max-width: 200px; /* Feste Maximalbreite beibehalten */
    }
    .preset-preview {
        width: 180px; /* Feste Breite beibehalten */
        height: 90px; /* Feste Höhe beibehalten */
    }
    .preset-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
@media (max-width: 1000px) {
    /* Nur Größenanpassungen, keine Layout-Änderungen */
    .editor-main-container {
        gap: 1.5rem;
        padding: max(1rem, 2vw) max(1rem, 2vw);
        height: calc(100vh - 160px);
    }
    .profile-settings,
    .background-settings,
    .welcome-settings,
    .username-settings,
    .member-settings {
        width: 180px;
        max-width: calc(100vw - 2rem);
        min-width: 160px;
    }
    .preview-center-container {
        max-width: calc(100vw - 2rem);
    }
    /* Keine Layout-Änderungen bis zur echten Mobile-View */
    .extended-settings:not(.blueprint-node-element) {
        width: 680px;
        max-width: calc(100vw - 2rem);
        height: 223px;
        min-height: 223px;
        max-height: 80vh;
        left: calc(20vw + 500px + 2rem);
        padding: 1rem;
        overflow: visible;
    }
    .preset-container {
        gap: 0.5rem;
        margin-bottom: 0.8rem;
    }
    .preset-box {
        max-width: 140px;
    }
    .preset-preview {
        width: 140px;
        height: 80px;
    }
    .preset-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {
    .welcome-messages-section {
        overflow-y: auto;
        padding: 0.5rem 0;
        position: relative;
        top: 160px;
        height: calc(100vh - 160px);
    }
    .editor-main-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        padding: max(0.8rem, 2vw) max(0.8rem, 2vw);
        height: calc(100vh - 160px);
        align-items: flex-start;
        justify-content: center;
        overflow-y: auto;
        overflow-x: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .preview-center-container {
        order: 1;
        width: 100%;
        margin-bottom: 1.5rem;
        max-width: calc(100vw - 2rem);
        overflow: hidden;
    }
    /* Settings-Container nebeneinander anordnen - Mobile */
    .profile-settings { 
        order: 2;
        width: 160px;
        padding: 0.8rem;
        margin: 0;
        max-width: calc(50vw - 1.5rem);
        box-sizing: border-box;
    }
    .background-settings { 
        order: 3;
        width: 160px;
        padding: 0.8rem;
        margin: 0;
        max-width: calc(50vw - 1.5rem);
        box-sizing: border-box;
    }
    .welcome-settings { 
        order: 4;
        width: 160px;
        padding: 0.8rem;
        margin: 0;
        max-width: calc(50vw - 1.5rem);
        box-sizing: border-box;
    }
    .username-settings {
        order: 5;
        width: 160px;
        padding: 0.8rem;
        margin: 0;
        max-width: calc(50vw - 1.5rem);
        box-sizing: border-box;
    }
    .member-settings {
        order: 6;
        width: 160px;
        padding: 0.8rem;
        margin: 0;
        max-width: calc(50vw - 1.5rem);
        box-sizing: border-box;
    }
    /* Wird nicht mehr benötigt */
    .right-side-container { 
        display: none;
    }
    /* Extended Settings werden jetzt durch die neue Mobile Media Query oben behandelt */
    /* Mobile welcome-preview styles deaktiviert */
    /* .welcome-preview {
        width: calc(100vw - 2rem);
        max-width: 450px;
        height: calc(50vw - 1rem);
        max-height: 225px;
        overflow: hidden;
    } */
    /* Mobile discord-message styles deaktiviert */
    /* .discord-message {
        width: 100%;
        max-width: calc(100vw - 1rem);
        padding: 0.5rem;
        box-sizing: border-box;
    } */
    /* Compact settings for mobile */
    .settings-panel {
        padding: 0.5rem;
        border-radius: 8px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .settings-panel h3 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
        padding: 0.2rem 0.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .setting-group {
        margin-bottom: 0.4rem;
        max-width: 100%;
    }
    .setting-group label {
        font-size: 0.7rem;
        margin-bottom: 0.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .modern-slider {
        height: 3px;
        margin-bottom: 0.1rem;
        max-width: 100%;
    }
    .modern-slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }
    .slider-value {
        font-size: 0.65rem;
    }
    .upload-preview {
        height: 45px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .upload-preview i {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }
    .upload-preview span {
        font-size: 0.6rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .text-input {
        padding: 0.3rem;
        font-size: 0.7rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    .upload-btn {
        padding: 0.3rem;
        font-size: 0.65rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    .color-picker {
        height: 30px;
        max-width: 100%;
        box-sizing: border-box;
    }
    /* Layer items more compact */
    .layer-item {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    .layer-item .layer-label {
        padding: 0.2rem 0.3rem;
        font-size: 0.7rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .layer-handle {
        font-size: 0.8rem;
    }
}
/* Drag & Drop Styles for Containers */
.settings-panel {
    cursor: default !important;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, left, top;
}
/* Ensure all child elements have default cursor except headers */
.settings-panel * {
    cursor: default;
}
.settings-panel h3 {
    cursor: grab !important;
    user-select: none;
    transition: all 0.2s ease;
}
.settings-panel h3:active {
    cursor: grabbing !important;
}
.settings-panel h3:hover {
    cursor: grab !important;
    transform: scale(1.02);
}
/* Drag Handle removed */
/* Dragging States */
.settings-panel.dragging {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
    transition: none;
    will-change: transform, left, top;
}
/* Pause cable animations during drag for smooth movement */
.settings-panel.dragging ~ .blueprint-connections .connection-line,
.settings-panel.dragging ~ .blueprint-connections .connection-node {
    animation-play-state: paused !important;
}
/* Smooth resize transitions */
.editor-main-container.resize-transitioning,
.settings-panel.resize-transitioning,
.preview-center-container.resize-transitioning {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
/* Special animation for layout changes */
.editor-main-container.resize-transitioning {
    animation: layoutChange 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes layoutChange {
    0% {
        opacity: 0.8;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
/* Pause all cable animations during resize */
.editor-main-container.resize-transitioning .connection-line,
.editor-main-container.resize-transitioning .connection-node {
    animation-play-state: paused !important;
}
/* Smooth position transitions */
.settings-panel {
    transition: left 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                top 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Disable transitions during drag for instant response */
.settings-panel.dragging {
    transition: none !important;
}
.settings-panel.dragging h3 {
    cursor: grabbing !important;
}
/* Drag handle styles removed */
.preview-center-container {
    cursor: default;
}
/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    .editor-main-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.5rem;
        padding: 0.5rem;
        min-height: calc(100vh - 140px);
        overflow-y: auto;
        overflow-x: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .preview-center-container {
        grid-column: 1 / 4;
        grid-row: 1;
        margin-bottom: 0.5rem;
        max-width: calc(100vw - 1rem);
        overflow: hidden;
    }
    /* 3-column layout for extra small screens - Optimiert */
    .profile-settings { 
        grid-column: 1;
        grid-row: 2;
        padding: 0.5rem;
        max-width: calc(33.33vw - 1rem);
        box-sizing: border-box;
        overflow: hidden;
    }
    .background-settings { 
        grid-column: 2;
        grid-row: 2;
        padding: 0.5rem;
        max-width: calc(33.33vw - 1rem);
        box-sizing: border-box;
        overflow: hidden;
    }
    .welcome-settings { 
        grid-column: 3;
        grid-row: 2;
        padding: 0.5rem;
        max-width: calc(33.33vw - 1rem);
        box-sizing: border-box;
        overflow: hidden;
    }
    .username-settings {
        grid-column: 1;
        grid-row: 3;
        padding: 0.5rem;
        max-width: calc(33.33vw - 1rem);
        box-sizing: border-box;
        overflow: hidden;
    }
    .member-settings {
        grid-column: 2;
        grid-row: 3;
        padding: 0.5rem;
        max-width: calc(33.33vw - 1rem);
        box-sizing: border-box;
        overflow: hidden;
    }
    /* Platzhalter für bessere Balance */
    .right-side-container {
        grid-column: 3;
        grid-row: 3;
        padding: 0.5rem;
        max-width: calc(33.33vw - 1rem);
        box-sizing: border-box;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }
    .extended-settings:not(.blueprint-node-element) {
        width: calc(100vw - 1rem);
        max-width: 300px;
        height: auto;
        max-height: 70vh;
        bottom: 1rem;
        padding: 0.6rem;
        left: 50%;
        transform: translateX(-50%);
        overflow-y: auto;
    }
    .extended-settings h3 {
        text-align: center;
        margin-bottom: 1rem;
        color: var(--discord-accent);
        font-size: 1.1rem;
        font-weight: 600;
        cursor: move;
        user-select: none;
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    .extended-settings h3:hover {
        background: rgba(88, 101, 242, 0.1);
        color: var(--discord-accent-hover);
    }
    .preset-container {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }
    .preset-box {
        max-width: 110px;
    }
    .preset-preview {
        width: 110px;
        height: 60px;
    }
    .preset-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    /* Mobile welcome-preview styles deaktiviert */
    /* .welcome-preview {
        width: calc(100vw - 0.6rem);
        max-width: 380px;
        height: calc(50vw - 0.3rem);
        max-height: 190px;
        overflow: hidden;
    } */
    /* Mobile discord-message styles deaktiviert */
    /* .discord-message {
        width: 100%;
        max-width: calc(100vw - 0.6rem);
        padding: 0.3rem;
        box-sizing: border-box;
        overflow: hidden;
    } */
    .settings-panel {
        padding: 0.3rem;
        border-radius: 6px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .settings-panel h3 {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
        padding: 0.1rem 0.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .setting-group {
        margin-bottom: 0.3rem;
        max-width: 100%;
    }
    .setting-group label {
        font-size: 0.65rem;
        margin-bottom: 0.05rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .modern-slider {
        height: 2px;
        margin-bottom: 0.05rem;
        max-width: 100%;
    }
    .modern-slider::-webkit-slider-thumb {
        width: 12px;
        height: 12px;
    }
    .slider-value {
        font-size: 0.6rem;
    }
    .upload-preview {
        height: 35px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .upload-preview i {
        font-size: 0.8rem;
        margin-bottom: 0.05rem;
    }
    .upload-preview span {
        font-size: 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .text-input {
        padding: 0.2rem;
        font-size: 0.65rem;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .upload-btn {
        padding: 0.2rem;
        font-size: 0.6rem;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .color-picker {
        height: 25px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .layer-item {
        padding: 0.3rem;
        margin-bottom: 0.3rem;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .layer-item .layer-label {
        padding: 0.1rem 0.2rem;
        font-size: 0.65rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .layer-handle {
        font-size: 0.7rem;
        margin-right: 0.3rem;
    }
}
/* Ultra-small screens (very narrow phones) */
@media (max-width: 360px) {
    .editor-main-container {
        gap: 0.5rem;
        padding: 0.5rem;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto;
    }
    .preview-center-container {
        grid-column: 1 / 3;
        grid-row: 1;
        margin-bottom: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    /* 2-Column Layout für sehr kleine Bildschirme */
    .profile-settings { 
        grid-column: 1;
        grid-row: 2;
        max-width: calc(50vw - 1rem);
        padding: 0.4rem;
    }
    .background-settings { 
        grid-column: 2;
        grid-row: 2;
        max-width: calc(50vw - 1rem);
        padding: 0.4rem;
    }
    .welcome-settings { 
        grid-column: 1;
        grid-row: 3;
        max-width: calc(50vw - 1rem);
        padding: 0.4rem;
    }
    .username-settings {
        grid-column: 2;
        grid-row: 3;
        max-width: calc(50vw - 1rem);
        padding: 0.4rem;
    }
    .member-settings {
        grid-column: 1;
        grid-row: 4;
        max-width: calc(50vw - 1rem);
        padding: 0.4rem;
    }
    /* Platzhalter für bessere Balance */
    .right-side-container {
        grid-column: 2;
        grid-row: 4;
        max-width: calc(50vw - 1rem);
        padding: 0.4rem;
        opacity: 0;
        pointer-events: none;
    }
    .extended-settings:not(.blueprint-node-element) {
        width: calc(100vw - 0.8rem);
        max-width: 280px;
        height: auto;
        max-height: 60vh;
        top: 180px;
        padding: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        overflow-y: auto;
    }
    .extended-settings h3 {
        text-align: center;
        margin-bottom: 1rem;
        color: var(--discord-accent);
        font-size: 1.1rem;
        font-weight: 600;
        cursor: move;
        user-select: none;
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    .extended-settings h3:hover {
        background: rgba(88, 101, 242, 0.1);
        color: var(--discord-accent-hover);
    }
    .preset-container {
        gap: 0.2rem;
        margin-bottom: 0.4rem;
    }
    .preset-box {
        max-width: 100px;
    }
    .preset-preview {
        width: 100px;
        height: 50px;
    }
    .preset-btn {
        width: 25px;
        height: 25px;
        font-size: 0.65rem;
    }
    /* Mobile welcome-preview styles deaktiviert */
    /* .welcome-preview {
        width: calc(100vw - 0.4rem);
        height: calc(40vw - 0.2rem);
    } */
    /* Mobile discord-message styles deaktiviert */
    /* .discord-message {
        max-width: calc(100vw - 0.4rem);
    } */
    .settings-panel {
        padding: 0.2rem;
        border-radius: 4px;
    }
    .settings-panel h3 {
        font-size: 0.6rem;
        padding: 0.1rem 0.2rem;
    }
    .setting-group label {
        font-size: 0.6rem;
    }
    .text-input,
    .upload-btn,
    .color-picker {
        font-size: 0.6rem;
    }
}
/* Settings Panels */
.settings-panel {
    background: rgba(44, 47, 51, 0.42);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(88, 101, 242, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    overflow: hidden;
    height: fit-content;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    /* Sicherheit für alle Bildschirmgrößen */
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* Layout Transition States */
.editor-main-container.layout-transitioning {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.editor-main-container.layout-transitioning .settings-panel {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.editor-main-container.layout-transitioning .preview-center-container {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Prevent clipping during transitions */
.settings-panel.repositioning {
    z-index: 1000;
    transform: scale(0.95);
    opacity: 0.8;
    animation: repositionPulse 0.5s ease-in-out;
}
@keyframes repositionPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}
/* Smooth viewport adaptation */
.viewport-adapting {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.settings-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(88, 101, 242, 0.1), rgba(114, 137, 218, 0.05));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.settings-panel:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(88, 101, 242, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.settings-panel:hover::before {
    opacity: 1;
}
/* Individual Setting Panels */
.profile-settings,
.background-settings,
.welcome-settings,
.username-settings,
.member-settings {
    width: 280px;
    flex-shrink: 0;
}
.preview-center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 3;
}
/* Right Side Container for Username and Member Count */
.right-side-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    order: 4;
}
/* Panel Order */
.background-settings { order: 1; }
.profile-settings { order: 2; }
.welcome-settings { order: 4; }
.settings-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(135deg, var(--discord-accent), rgba(114, 137, 218, 0.8));
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.settings-panel-header h3 {
    color: var(--discord-text);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 !important;
    flex: 1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: grab !important;
    user-select: none;
    transition: all 0.2s ease;
}
.settings-panel-header h3:active {
    cursor: grabbing !important;
}
.settings-panel-header h3:hover {
    cursor: grab !important;
}
.settings-panel-header h3::before {
    display: none !important;
}

.reset-element-btn-header {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 28px;
    height: 28px;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.reset-element-btn-header:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.reset-element-btn-header:active {
    transform: translateY(0);
}

.reset-element-btn-header i {
    font-size: 0.75rem;
}

.settings-panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.settings-panel-header:hover::before {
    left: 100%;
}

/* Alte h3-Regel nur anwenden, wenn h3 NICHT innerhalb von settings-panel-header ist */
.settings-panel > h3:not(.settings-panel-header h3) {
    color: var(--discord-text);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(135deg, var(--discord-accent), rgba(114, 137, 218, 0.8));
    border-radius: 8px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
}
.settings-panel h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.settings-panel h3:hover::before {
    left: 100%;
}
/* Setting Groups */
.setting-group {
    margin-bottom: 0.8rem;
}
.setting-group label {
    display: block;
    color: var(--discord-text);
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}
/* Modern Sliders */
.modern-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--discord-light), var(--discord-lighter));
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 0.3rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
.modern-slider:hover {
    background: linear-gradient(90deg, var(--discord-accent), rgba(88, 101, 242, 0.6));
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(88, 101, 242, 0.2);
}
/* Font Selectors */
.font-selector {
    width: 100%;
    padding: 0.5rem;
    background: linear-gradient(145deg, var(--discord-light), var(--discord-lighter));
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    color: var(--discord-text);
    font-size: 0.8rem;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}
.font-selector::after {
    content: "🖱️";
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    opacity: 0.6;
    pointer-events: none;
}
.font-selector:hover {
    border-color: var(--discord-accent);
    box-shadow: 
        0 4px 16px rgba(88, 101, 242, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}
.font-selector:focus {
    border-color: var(--discord-accent);
    box-shadow: 
        0 0 0 3px rgba(88, 101, 242, 0.2),
        0 4px 16px rgba(88, 101, 242, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.font-selector option {
    background: var(--discord-dark);
    color: var(--discord-text);
    padding: 0.5rem;
}
.modern-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--discord-accent), rgba(88, 101, 242, 0.8));
    cursor: pointer;
    box-shadow: 
        0 3px 12px var(--discord-glow),
        0 0 0 2px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.modern-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 
        0 5px 20px var(--discord-glow),
        0 0 0 3px rgba(88, 101, 242, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.modern-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--discord-accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px var(--discord-glow);
}
.slider-value {
    color: var(--discord-text-muted);
    font-size: 0.8rem;
    float: right;
}
/* Color Pickers */
.color-picker {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}
/* Discord Chat Input Styling */
.discord-chat-input {
    background: linear-gradient(145deg, var(--discord-light), var(--discord-lighter));
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    padding: 0.5rem;
    min-height: 40px;
    cursor: text;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.discord-chat-input:hover {
    border-color: var(--discord-accent);
    box-shadow: 
        0 4px 16px rgba(88, 101, 242, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.discord-chat-input:focus {
    border-color: var(--discord-accent);
    box-shadow: 
        0 0 0 3px rgba(88, 101, 242, 0.2),
        0 4px 16px rgba(88, 101, 242, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    outline: none;
}
/* Discord Mention Styling (like in Discord chat) */
.discord-mention {
    background: #000000;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    margin: 0 2px;
    display: inline-block;
    user-select: none;
    cursor: default;
    position: relative;
    transition: all 0.2s ease;
}
.discord-mention:hover {
    background: #1a1a1a;
    transform: scale(1.05);
}
.discord-mention::after {
    content: "🔒";
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    font-size: 0.6em;
    opacity: 0.7;
}
/* Placeholder styling for empty content */
.discord-chat-input:empty::before {
    content: attr(data-placeholder);
    color: var(--discord-text-muted);
    font-style: italic;
    pointer-events: none;
}
/* File Inputs and Upload Buttons */
.file-input {
    display: none;
}
/* Upload Preview Containers */
.upload-preview-container {
    margin-bottom: 0.5rem;
}
.upload-preview {
    width: 100%;
    height: 80px;
    border: 2px dashed var(--discord-border);
    border-radius: 8px;
    background: rgba(var(--discord-light), 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.upload-preview:hover {
    border-color: var(--discord-accent);
    background: rgba(88, 101, 242, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
}
.upload-preview i {
    font-size: 1.5rem;
    color: var(--discord-text-muted);
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}
.upload-preview span {
    font-size: 0.75rem;
    color: var(--discord-text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
}
.upload-preview:hover i,
.upload-preview:hover span {
    color: var(--discord-accent);
}
/* Preview with Image */
.upload-preview.has-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-style: solid;
    border-color: var(--discord-accent);
}
/* Remove button styling */
.remove-preview-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0.8;
}
.remove-preview-btn:hover {
    background: rgba(220, 53, 69, 1);
    opacity: 1;
    transform: scale(1.1);
}
.remove-preview-btn:active {
    transform: scale(0.95);
}
/* Ensure upload-preview has relative positioning for absolute button positioning */
.upload-preview {
    position: relative;
}
.upload-preview.has-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.upload-preview.has-image:hover::before {
    opacity: 1;
}
.upload-preview.has-image i,
.upload-preview.has-image span {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.upload-preview.has-image:hover i,
.upload-preview.has-image:hover span {
    color: white;
}
/* Drag and Drop States */
.upload-preview-container.drag-over .upload-preview {
    border-color: var(--discord-green);
    background: rgba(87, 242, 135, 0.2);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(87, 242, 135, 0.3);
}
.upload-preview-container.drag-over .upload-preview i,
.upload-preview-container.drag-over .upload-preview span {
    color: var(--discord-green);
}
/* Layer Sorting */
.layers-container {
    margin: 0.5rem 0;
}
.layer-item {
    background: rgba(var(--discord-lighter), 0.3);
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    cursor: grab;
}
.layer-item:hover {
    background: rgba(var(--discord-lighter), 0.5);
    border-color: var(--discord-accent);
}
.layer-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    cursor: grabbing;
}
.layer-item.drag-over {
    border-color: var(--discord-green);
    background: rgba(87, 242, 135, 0.2);
    transform: translateY(-2px);
}
.layer-item.drag-above {
    border-top: 4px solid var(--discord-green);
    border-color: var(--discord-green);
}
.layer-item.drag-below {
    border-bottom: 4px solid var(--discord-green);
    border-color: var(--discord-green);
}
.layer-handle {
    color: var(--discord-text-muted);
    margin-right: 0.5rem;
    cursor: grab;
    transition: color 0.3s ease;
}
.layer-item:hover .layer-handle {
    color: var(--discord-accent);
}
.layer-item .layer-label {
    display: flex;
    align-items: center;
    cursor: grab;
    margin-bottom: 0.5rem;
    font-weight: 600;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.layer-item .layer-label:hover {
    background: rgba(88, 101, 242, 0.1);
    color: var(--discord-accent);
}
.layer-item .layer-label:active {
    cursor: grabbing;
}
.layer-item .upload-preview-container {
    margin-bottom: 0;
}
.upload-btn {
    width: 100%;
    padding: 0.6rem;
    background: linear-gradient(135deg, var(--discord-accent), rgba(88, 101, 242, 0.8));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 3px 12px rgba(88, 101, 242, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}
.upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}
.upload-btn:hover {
    background: linear-gradient(135deg, var(--discord-accent-hover), var(--discord-accent));
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(88, 101, 242, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.upload-btn:hover::before {
    left: 100%;
}
.upload-btn:active {
    transform: translateY(0);
}
/* Text Inputs */
.text-input {
    width: 100%;
    padding: 0.5rem;
    background: var(--discord-light);
    border: 1px solid var(--discord-border);
    border-radius: 6px;
    color: var(--discord-text);
    font-size: 0.8rem;
}
/* Textarea specific styles for welcome message */
#welcomeTextInput {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.4;
    white-space: pre-wrap;
}
/* Input with Emoji Button */
.input-with-emoji {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.input-with-emoji .text-input,
.input-with-emoji .discord-chat-input {
    flex: 1;
}
.emoji-btn {
    background: var(--discord-accent);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0;
}
.emoji-btn:hover {
    background: var(--discord-accent-hover);
    transform: scale(1.05);
}
.emoji-btn:active {
    transform: scale(0.95);
}
/* Formatting Buttons */
.formatting-buttons {
    display: flex;
    gap: 2px;
    margin-top: 6px;
    justify-content: flex-start;
}
.format-btn, .align-btn {
    background: var(--discord-darker);
    color: var(--discord-text);
    border: 1px solid var(--discord-border);
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    transition: all 0.2s ease;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.format-btn:hover {
    background: var(--discord-lighter);
    border-color: var(--discord-accent);
}
.format-btn.active {
    background: var(--discord-accent);
    border-color: var(--discord-accent);
    color: white;
}
.format-btn strong {
    font-weight: bold;
}
.format-btn em {
    font-style: italic;
}
.format-btn u {
    text-decoration: underline;
}
.format-btn s {
    text-decoration: line-through;
}
/* Button Separator */
.button-separator {
    width: 1px;
    height: 16px;
    background: var(--discord-border);
    margin: 0 4px;
    align-self: center;
}
/* Label with Alignment Buttons */
.label-with-alignment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.label-with-alignment label {
    margin: 0;
    font-weight: 600;
    color: var(--discord-text);
}
.alignment-buttons {
    display: flex;
    gap: 2px;
}
.alignment-buttons .align-btn {
    min-width: 20px;
    height: 20px;
    padding: 2px 4px;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}
/* Alignment Icons */
.alignment-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    line-height: 1;
}
.alignment-icon.left {
    align-items: flex-start;
}
.alignment-icon.center {
    align-items: center;
}
.alignment-icon.right {
    align-items: flex-end;
}
/* Custom alignment lines */
.alignment-icon::before {
    content: '';
    display: block;
    width: 12px;
    height: 1px;
    background: currentColor;
    margin: 1px 0;
}
.alignment-icon::after {
    content: '';
    display: block;
    width: 8px;
    height: 1px;
    background: currentColor;
    margin: 1px 0;
}
.alignment-icon.left::before,
.alignment-icon.left::after {
    margin-left: 0;
}
.alignment-icon.center::before,
.alignment-icon.center::after {
    margin-left: auto;
    margin-right: auto;
}
.alignment-icon.right::before,
.alignment-icon.right::after {
    margin-right: 0;
}
/* Modern Emoji Picker */
.emoji-picker-container {
    position: fixed;
    background: rgba(44, 47, 51, 0.5);
    border: 1px solid var(--discord-border);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    width: 400px;
    height: 500px;
    overflow: hidden;
    z-index: 10000;
    animation: emojiPickerSlideIn 0.2s ease-out;
}
@keyframes emojiPickerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.emoji-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--discord-border);
    background: var(--discord-darker);
}
.emoji-picker-header span {
    color: var(--discord-text);
    font-weight: 600;
    font-size: 16px;
}
.emoji-picker-close {
    background: var(--discord-lighter);
    border: none;
    color: var(--discord-text-muted);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: bold;
}
.emoji-picker-close:hover {
    background: var(--discord-accent);
    color: white;
    transform: scale(1.1);
}
.emoji-categories {
    display: flex;
    gap: 8px;
    padding: 20px;
    border-bottom: 1px solid var(--discord-border);
    background: var(--discord-darker);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--discord-border) transparent;
    flex-wrap: wrap;
    justify-content: center;
}
.emoji-categories::-webkit-scrollbar {
    height: 6px;
}
.emoji-categories::-webkit-scrollbar-track {
    background: transparent;
}
.emoji-categories::-webkit-scrollbar-thumb {
    background: var(--discord-border);
    border-radius: 3px;
}
.emoji-category {
    background: var(--discord-lighter);
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--discord-text);
    font-size: 24px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 60px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 2px;
}
.emoji-category:hover {
    background: var(--discord-light);
    border-color: var(--discord-accent);
}
.emoji-category.active {
    background: var(--discord-accent);
    color: white;
    border-color: var(--discord-accent);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
    transform: scale(1.05);
}
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    padding: 24px;
    height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--discord-border) transparent;
}
.emoji-grid::-webkit-scrollbar {
    width: 6px;
}
.emoji-grid::-webkit-scrollbar-track {
    background: transparent;
}
.emoji-grid::-webkit-scrollbar-thumb {
    background: var(--discord-border);
    border-radius: 3px;
}
.emoji-item {
    background: var(--discord-lighter);
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--discord-text);
    font-size: 26px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.emoji-item:hover {
    background: var(--discord-light);
    border-color: var(--discord-accent);
    transform: scale(1.1);
}
.emoji-item:active {
    transform: scale(0.95);
}
.text-input:focus {
    outline: none;
    border-color: var(--discord-accent);
    box-shadow: 0 0 10px var(--discord-glow);
}
/* Center Preview Container */
.preview-center-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.discord-message-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Discord Message Container als Blueprint Node */
.discord-message-container.blueprint-node-element {
    position: absolute;
    min-width: 900px;
    max-width: 1000px;
    z-index: 10;
    background: rgba(44, 47, 51, 0.38);
    border: 1px solid var(--discord-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px var(--discord-shadow);
    cursor: move;
    transition: all 0.3s ease;
    user-select: none;
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    pointer-events: auto;
    display: block;
    justify-content: flex-start;
    align-items: flex-start;
}
.discord-message-container.blueprint-node-element:hover:not(.dragging) {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--discord-shadow);
    border-color: var(--discord-accent);
}
.discord-message-container.blueprint-node-element.dragging {
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    cursor: grabbing;
}
.discord-message-container.blueprint-node-element h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--discord-text);
    font-size: 1rem;
    font-weight: 700;
    cursor: move;
    user-select: none;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(135deg, var(--discord-accent), rgba(114, 137, 218, 0.8));
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}
.discord-message-container.blueprint-node-element h3 .header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}
.discord-message-container.blueprint-node-element h3:active {
    cursor: grabbing;
}
.discord-message-container.blueprint-node-element h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.discord-message-container.blueprint-node-element h3:hover::before {
    left: 100%;
}
.discord-message-container.blueprint-node-element h3:hover {
    background: linear-gradient(135deg, var(--discord-accent-hover), rgba(114, 137, 218, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}
.discord-message-container.blueprint-node-element .discord-message {
    width: 100%;
    margin: 0;
    cursor: default;
}
/* Discord Live Indicator */
.discord-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #57f287, #4ade80);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(87, 242, 135, 0.3);
    animation: livePulse 2s ease-in-out infinite;
    font-size: 0.75rem;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}
.indicator-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: liveBlink 1.5s ease-in-out infinite;
}
.indicator-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}
/* Active Preset Indicator */
.active-preset-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.active-preset-indicator i {
    color: #ffd700;
    animation: sunGlow 2s ease-in-out infinite;
}
.preset-number {
    font-weight: 700;
    letter-spacing: 0.5px;
}
@keyframes sunGlow {
    0%, 100% {
        color: #ffd700;
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        color: #ffed4e;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    }
}
@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(87, 242, 135, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 16px rgba(87, 242, 135, 0.5);
        transform: scale(1.02);
    }
}
@keyframes liveBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}
.discord-message {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(44, 47, 51, 0.45);
    border-radius: 12px;
    border: 1px solid var(--discord-border);
    box-shadow: 0 8px 30px var(--discord-shadow);
    width: 900px;
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
/* Background Settings Container als Blueprint Node */
.background-settings.blueprint-node-element {
    position: absolute;
    min-width: 320px;
    max-width: 400px;
    z-index: 10;
    background: rgba(44, 47, 51, 0.4);
    border: 1px solid var(--discord-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px var(--discord-shadow);
    cursor: move;
    transition: all 0.3s ease;
    user-select: none;
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    pointer-events: auto;
    display: block;
}
.background-settings.blueprint-node-element:hover:not(.dragging) {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--discord-shadow);
    border-color: var(--discord-accent);
}
.background-settings.blueprint-node-element.dragging {
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    cursor: grabbing;
}
.background-settings.blueprint-node-element h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--discord-text);
    font-size: 1rem;
    font-weight: 700;
    cursor: move;
    user-select: none;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(135deg, var(--discord-accent), rgba(114, 137, 218, 0.8));
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}
.background-settings.blueprint-node-element h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.background-settings.blueprint-node-element h3:hover::before {
    left: 100%;
}
.background-settings.blueprint-node-element h3:hover {
    background: linear-gradient(135deg, var(--discord-accent-hover), rgba(114, 137, 218, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}
/* Welcome Settings Container als Blueprint Node */
.welcome-settings.blueprint-node-element {
    position: absolute;
    min-width: 380px;
    max-width: 450px;
    z-index: 10;
    background: rgba(44, 47, 51, 0.4);
    border: 1px solid var(--discord-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px var(--discord-shadow);
    cursor: move;
    transition: all 0.3s ease;
    user-select: none;
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    pointer-events: auto;
    display: block;
}
.welcome-settings.blueprint-node-element:hover:not(.dragging) {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--discord-shadow);
    border-color: var(--discord-accent);
}
.welcome-settings.blueprint-node-element.dragging {
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    cursor: grabbing;
}
.welcome-settings.blueprint-node-element h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--discord-text);
    font-size: 1rem;
    font-weight: 700;
    cursor: move;
    user-select: none;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(135deg, var(--discord-accent), rgba(114, 137, 218, 0.8));
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}
.welcome-settings.blueprint-node-element h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.welcome-settings.blueprint-node-element h3:hover::before {
    left: 100%;
}
.welcome-settings.blueprint-node-element h3:hover {
    background: linear-gradient(135deg, var(--discord-accent-hover), rgba(114, 137, 218, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}
/* Username Settings Container als Blueprint Node */
.username-settings.blueprint-node-element {
    position: absolute;
    min-width: 380px;
    max-width: 450px;
    z-index: 10;
    background: rgba(44, 47, 51, 0.4);
    border: 1px solid var(--discord-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px var(--discord-shadow);
    cursor: move;
    transition: all 0.3s ease;
    user-select: none;
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    pointer-events: auto;
    display: block;
}
.username-settings.blueprint-node-element:hover:not(.dragging) {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--discord-shadow);
    border-color: var(--discord-accent);
}
.username-settings.blueprint-node-element.dragging {
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    cursor: grabbing;
}
.username-settings.blueprint-node-element h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--discord-text);
    font-size: 1rem;
    font-weight: 700;
    cursor: move;
    user-select: none;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(135deg, var(--discord-accent), rgba(114, 137, 218, 0.8));
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}
.username-settings.blueprint-node-element h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.username-settings.blueprint-node-element h3:hover::before {
    left: 100%;
}
.username-settings.blueprint-node-element h3:hover {
    background: linear-gradient(135deg, var(--discord-accent-hover), rgba(114, 137, 218, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}
/* Member Settings Container als Blueprint Node */
.member-settings.blueprint-node-element {
    position: absolute;
    min-width: 380px;
    max-width: 450px;
    z-index: 10;
    background: rgba(44, 47, 51, 0.4);
    border: 1px solid var(--discord-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px var(--discord-shadow);
    cursor: move;
    transition: all 0.3s ease;
    user-select: none;
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    pointer-events: auto;
    display: block;
}
.member-settings.blueprint-node-element:hover:not(.dragging) {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--discord-shadow);
    border-color: var(--discord-accent);
}
.member-settings.blueprint-node-element.dragging {
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    cursor: grabbing;
}
.member-settings.blueprint-node-element h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--discord-text);
    font-size: 1rem;
    font-weight: 700;
    cursor: move;
    user-select: none;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(135deg, var(--discord-accent), rgba(114, 137, 218, 0.8));
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}
.member-settings.blueprint-node-element h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.member-settings.blueprint-node-element h3:hover::before {
    left: 100%;
}
.member-settings.blueprint-node-element h3:hover {
    background: linear-gradient(135deg, var(--discord-accent-hover), rgba(114, 137, 218, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}
/* Profile Settings Container als Blueprint Node */
.profile-settings.blueprint-node-element {
    position: absolute;
    min-width: 320px;
    max-width: 380px;
    z-index: 10;
    background: rgba(44, 47, 51, 0.4);
    border: 1px solid var(--discord-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px var(--discord-shadow);
    cursor: move;
    transition: all 0.3s ease;
    user-select: none;
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    pointer-events: auto;
    display: block;
}
.profile-settings.blueprint-node-element:hover:not(.dragging) {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--discord-shadow);
    border-color: var(--discord-accent);
}
.profile-settings.blueprint-node-element.dragging {
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    cursor: grabbing;
}
.profile-settings.blueprint-node-element h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--discord-text);
    font-size: 1rem;
    font-weight: 700;
    cursor: move;
    user-select: none;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(135deg, var(--discord-accent), rgba(114, 137, 218, 0.8));
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}
.profile-settings.blueprint-node-element h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.profile-settings.blueprint-node-element h3:hover::before {
    left: 100%;
}
.profile-settings.blueprint-node-element h3:hover {
    background: linear-gradient(135deg, var(--discord-accent-hover), rgba(114, 137, 218, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}
/* Ensure Blueprint Node Elements are always visible */
.blueprint-node-element {
    display: block !important;
    visibility: visible !important;
}
.discord-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--discord-shadow);
}
.discord-avatar {
    flex-shrink: 0;
    display: block;
}
.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--discord-accent), #7289da);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--discord-glow);
    border: 2px solid var(--discord-accent);
}
.bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.discord-content {
    flex: 1;
    min-width: 0;
    display: block;
}
.discord-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.discord-author {
    font-weight: 600;
    color: #dcddde;
    font-size: 1rem;
}
.bot-badge {
    background: #5865f2;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.discord-timestamp {
    color: #72767d;
    font-size: 0.8rem;
}
.discord-text {
    margin-bottom: 1rem;
    display: block;
}
.discord-text p {
    color: #dcddde;
    margin: 0;
    line-height: 1.4;
}
/* Editable Message Styles */
.editable-message-container {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.editable-message {
    flex: 1;
    min-height: 1.5em;
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--discord-text);
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: text;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    outline: none;
}
.editable-message:hover {
    border-color: var(--discord-border);
    background: rgba(255, 255, 255, 0.02);
}
.editable-message:focus {
    border-color: var(--discord-accent);
    background: rgba(88, 101, 242, 0.05);
}
.editable-message:empty::before {
    content: "Nachricht eingeben...";
    color: var(--discord-muted);
    font-style: italic;
}
/* Emoji Button - using existing emoji-btn class */
.emoji-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--discord-border);
    border-radius: 6px;
    background: var(--discord-darker);
    color: var(--discord-text);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.emoji-btn:hover {
    border-color: var(--discord-accent);
    background: var(--discord-accent);
    color: white;
    transform: translateY(-1px);
}
.emoji-btn:active {
    transform: translateY(0);
}
.discord-attachments {
    margin-top: 1rem;
    display: block;
}
.welcome-preview-container {
    margin-top: 1rem;
    display: block;
}
.welcome-preview {
    width: 800px;
    height: 400px;
    border: 2px dashed var(--discord-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}
/* Layer System */
.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
/* Background layers should be interactive when they have content */
.background-image,
.gif-overlay {
    pointer-events: auto;
}
/* Background Color Layer */
.background-color {
    background: #000000;
    z-index: 1;
}
/* Background Image Layer */
.background-image {
    background-size: 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    z-index: 2;
    cursor: move;
}
/* GIF Overlay Layer */
.gif-overlay {
    background-size: 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    z-index: 3;
    cursor: move;
}
/* Opacity Overlay Layer */
.opacity-overlay {
    background: rgba(0, 0, 0, 0);
    z-index: 4;
}
/* Elements Overlay Layer */
.elements-overlay {
    z-index: 5;
    pointer-events: auto;
}
/* Card Elements */
.element {
    position: absolute;
    transition: all 0.3s ease;
}
.profile-picture {
    width: 189px;
    height: 189px;
    border-radius: 50%;
    overflow: hidden;
    left: 20%;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    border: 20px solid #000000;
    box-sizing: content-box;
    /* Spezielle Regeln für Profilbild-Drag */
    transition: none;
}
/* Profilbild-spezifische Hover-Effekte */
.profile-picture:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
    transition: all 0.2s ease;
    /* Wichtig: Position und Transform beibehalten */
    transform: translate(-50%, -50%) !important;
}
/* Profilbild beim Draggen */
.profile-picture.dragging {
    filter: brightness(1.2);
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.7);
    transform: translate(-50%, -50%) scale(1.02);
    transition: none;
    z-index: 1001;
}
.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.welcome-text {
    font-size: 31px;
    font-weight: bold;
    color: #ffffff;
    left: 45%;
    top: 25%;
    transform: translate(-50%, -50%);
    width: 300px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: pre;
    overflow: visible;
    line-height: 1.3;
    min-height: 60px;
}
.username-text {
    font-size: 31px;
    font-weight: 600;
    color: #ffffff;
    left: 45%;
    top: 45%;
    transform: translate(-50%, -50%);
    width: 300px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: visible;
    display: block;
    text-align: center; /* Default center alignment */
}
.member-count {
    font-size: 31px;
    color: #72767d;
    left: 45%;
    top: 65%;
    transform: translate(-50%, -50%);
    width: 300px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: visible;
}
/* Draggable Elements */
.draggable {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: all 0.2s ease;
}
.draggable:hover {
    filter: brightness(1.05);
    transform: scale(1.01);
    transition: all 0.2s ease;
    z-index: 1000;
}
/* Profilbild-spezifische Hover-Regeln - überschreiben die allgemeinen */
.profile-picture.draggable:hover {
    transform: translate(-50%, -50%) !important;
}
.draggable.dragging {
    z-index: 1001;
    opacity: 0.9;
    filter: brightness(1.2) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transform: scale(1.02);
    cursor: grabbing !important;
    transition: none !important;
}
.welcome-preview:hover {
    border-color: var(--discord-accent);
    box-shadow: 0 0 30px var(--discord-glow);
    transform: scale(1.02);
}
/* Preview elements styling */
.welcome-preview .element {
    position: absolute;
    cursor: grab;
    transition: all 0.2s ease;
    will-change: transform, left, top;
}
.welcome-preview .element:hover {
    filter: brightness(1.1);
    transform: translate(-50%, -50%) scale(1.02);
}
.welcome-preview .element.dragging {
    cursor: grabbing;
    transition: none;
    will-change: transform, left, top;
}
.preview-placeholder {
    text-align: center;
    color: var(--discord-text-muted);
    display: block;
    transition: all 0.3s ease;
}
.preview-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
    display: block;
    color: var(--discord-accent);
    text-shadow: 0 0 20px var(--discord-glow);
}
.preview-placeholder p {
    font-size: 1.2rem;
    margin: 0;
    display: block;
    font-weight: 500;
}
/* Navigation styles are handled by /styles.css and /shared/css/mobile-nav.css */
/* Only welcome-specific styles below */
/* Tablet and Mobile Styles - Language Switcher positioning */
@media (max-width: 1306px) {
    /* Mobile Profile Avatar Fix */
    .nav-menu .mobile-auth-buttons .profile-section .profile-avatar,
    .nav-menu .mobile-auth-buttons .profile-avatar {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu .mobile-auth-buttons .profile-section .profile-avatar img,
    .nav-menu .mobile-auth-buttons .profile-avatar img,
    .nav-menu .mobile-auth-buttons .profile-section .profile-avatar .avatar-img,
    .nav-menu .mobile-auth-buttons .profile-avatar .avatar-img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    
    .language-switcher {
        position: absolute;
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
        text-align: center;
        z-index: 1004;
    }

    .server-management-header {
        top: 70px;
        padding: 0 1rem;
        height: 70px;
        min-height: 70px;
        max-height: 70px;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        margin-top: 0;
        margin-bottom: 0;
        background: rgba(15, 15, 15, 0.3);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .server-management-header .header-left {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        width: auto;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .server-management-header .header-right {
        width: auto;
        justify-content: flex-end;
        flex-shrink: 0;
    }

    .server-management-header .back-btn {
        padding: 0;
        min-width: 40px;
        width: 40px;
        height: 40px;
        max-height: 40px;
        justify-content: center;
        font-size: 0;
    }

    .server-management-header .back-btn i {
        font-size: 1rem;
        margin: 0;
    }

    .server-management-header .back-btn span,
    .server-management-header .back-btn::after {
        display: none !important;
    }

    .server-management-header .breadcrumb {
        font-size: 0.875rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: calc(100vw - 120px);
    }

    .server-management-header .breadcrumb span:not(.breadcrumb-separator) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 150px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .server-management-header {
        top: 70px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 0.75rem;
    }
    /* Zoom Controller auf Mobile verstecken */
    .zoom-controller {
        display: none !important;
    }
    .language-switcher {
        right: 50px;
    }
    
    /* Responsive adjustments for very small screens */
    @media (max-width: 400px) {
        .language-switcher {
            right: 45px;
        }
    }
    
    @media (max-width: 360px) {
        .language-switcher {
            right: 40px;
        }
    }
    .language-menu {
        position: fixed;
        top: calc(50% + 30px);
        right: 20px;
        width: 200px;
        background: rgba(15, 15, 15, 0.3);
        backdrop-filter: var(--kynx-blur);
        -webkit-backdrop-filter: var(--kynx-blur);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        box-shadow: 0 8px 25px var(--discord-shadow);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    .language-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    /* Mobile welcome-preview styles deaktiviert */
    /* .welcome-preview {
        width: 600px;
        height: 300px;
    } */
    /* Mobile discord-message styles deaktiviert */
    /* .discord-message {
        width: 700px;
        flex-direction: column;
        gap: 0.5rem;
    } */
    /* Mobile Styles für sehr kleine Bildschirme deaktiviert */
    /* @media (max-width: 480px) {
        .welcome-preview {
            width: 400px;
            height: 200px;
        }
        .discord-message {
            width: 500px;
        }
    } */
    .bot-avatar {
        width: 32px;
        height: 32px;
    }
    .main-content {
        margin-top: 140px;
    }
    /* Mobile Styles deaktiviert - Container bleiben wie Desktop */
    /* .channel-actions-container {
        position: absolute;
        top: 100px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 2rem);
        max-width: 400px;
        height: auto;
        min-height: 200px;
        margin: 0;
        padding: 0.8rem;
        z-index: 200;
        box-sizing: border-box;
    } */
    /* Mobile h3 styles deaktiviert */
    /* .channel-actions-container h3 {
        text-align: center;
        margin-bottom: 1rem;
        color: var(--discord-text);
        font-size: 1rem;
        font-weight: 700;
        cursor: move;
        user-select: none;
        padding: 0.5rem 0.8rem;
        background: linear-gradient(135deg, var(--discord-accent), rgba(114, 137, 218, 0.8));
        border-radius: 8px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
        position: relative;
        overflow: hidden;
        transition: all 0.2s ease;
    } */
    /* Mobile h3 pseudo-elements deaktiviert */
    /* .channel-actions-container h3::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    .channel-actions-container h3:hover::before {
        left: 100%;
    }
    .channel-actions-container h3:hover {
        background: linear-gradient(135deg, var(--discord-accent-hover), rgba(114, 137, 218, 0.9));
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
    } */
    /* Mobile input group styles deaktiviert */
    /* .channel-input-group {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    .channel-select {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    .channel-refresh-btn {
        align-self: center;
        width: 35px;
        height: 35px;
    }
    .global-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    .action-btn {
        width: 100%;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        justify-content: center;
        min-width: 80px;
    } */
    /* Intelligente Positionierung für Extended Settings (Preset System) auf Mobile */
    /* WICHTIG: Nur für normale Settings, nicht für Blueprint-Elemente */
    .extended-settings:not(.blueprint-node-element) {
        position: absolute;
        top: 180px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 2rem);
        max-width: 400px;
        height: auto;
        max-height: 60vh;
        margin: 0;
        padding: 0.8rem;
        z-index: 200;
        box-sizing: border-box;
        overflow-y: auto;
    }
    .extended-settings h3 {
        text-align: center;
        margin-bottom: 1rem;
        color: var(--discord-accent);
        font-size: 1.1rem;
        font-weight: 600;
        cursor: move;
        user-select: none;
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    .extended-settings h3:hover {
        background: rgba(88, 101, 242, 0.1);
        color: var(--discord-accent-hover);
    }
    .preset-container {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .preset-box {
        flex: 1;
        min-width: 100px;
        max-width: 120px;
    }
    .preset-preview {
        width: 100%;
        height: 60px;
        border-radius: 6px;
    }
    .preset-buttons {
        gap: 0.3rem;
        margin-top: 0.3rem;
    }
    .preset-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    .welcome-card-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    .welcome-card-container h1 {
        font-size: 2rem;
    }
}
/* MEE6-Style Emoji Picker CSS */
.mee6-emoji-picker {
    background: #2f3136;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid #40444b;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.emoji-picker-header {
    background: #36393f;
    padding: 16px 20px;
    border-bottom: 1px solid #40444b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    user-select: none;
}
.emoji-picker-header:active {
    cursor: grabbing;
}
.search-container {
    flex: 1;
    position: relative;
    margin-right: 12px;
}
.emoji-picker-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.emoji-picker-close {
    background: #40444b;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #dcddde;
    transition: all 0.2s ease;
}
.emoji-picker-close:hover {
    background: #5865f2;
    color: white;
}
.emoji-picker-close i {
    font-size: 14px;
}
.emoji-search {
    width: 100%;
    background: #40444b;
    border: none;
    border-radius: 4px;
    padding: 8px 12px 8px 36px;
    color: #dcddde;
    font-size: 14px;
    outline: none;
}
.emoji-search::placeholder {
    color: #72767d;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.6;
}
.variation-selector {
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.variation-selector:hover {
    background: #40444b;
}
.variation-icon {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}
.emoji-picker-main {
    display: flex;
    height: 400px;
}
.emoji-categories-sidebar {
    width: 200px;
    background: #36393f;
    border-right: 1px solid #40444b;
    padding: 16px 16px 16px 12px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 400px;
    scrollbar-width: thin;
    scrollbar-color: #40444b #2f3136;
}
.emoji-categories-sidebar::-webkit-scrollbar {
    width: 6px;
}
.emoji-categories-sidebar::-webkit-scrollbar-track {
    background: #2f3136;
}
.emoji-categories-sidebar::-webkit-scrollbar-thumb {
    background: #40444b;
    border-radius: 3px;
}
.emoji-categories-sidebar::-webkit-scrollbar-thumb:hover {
    background: #5865f2;
}
.server-category {
    padding: 12px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #40444b;
}
.server-category:hover {
    background: #40444b;
}
.server-category.active {
    background: #5865f2;
}
.server-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}
.server-name {
    font-size: 13px;
    color: #dcddde;
    font-weight: 600;
    white-space: nowrap;
}
.category-item {
    padding: 12px 16px;
    margin-bottom: 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 12px;
}
.category-item:hover {
    background: #40444b;
    opacity: 0.8;
}
.category-item.active {
    background: #5865f2;
    opacity: 1;
}
.category-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    opacity: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.category-name {
    color: #dcddde;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.emoji-content-area {
    flex: 1;
    background: #2f3136;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.category-header {
    background: #36393f;
    padding: 12px 16px;
    border-bottom: 1px solid #40444b;
}
.category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dcddde;
    font-weight: 600;
    font-size: 14px;
}
.category-server-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}
.emoji-grid {
    flex: 1;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
    overflow-y: auto;
}
.emoji-grid-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.emoji-grid-item:hover {
    background: #40444b;
}
.emoji-grid-item .emoji {
    width: 32px;
    height: 32px;
    user-select: none;
    -webkit-user-drag: none;
}
.emoji-picker-footer {
    background: #36393f;
    padding: 12px 16px;
    border-top: 1px solid #40444b;
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-emoji {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-emoji-img {
    width: 32px;
    height: 32px;
}
.footer-text {
    flex: 1;
}
.footer-text p {
    color: #dcddde;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #72767d;
}
.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.no-results p {
    font-size: 16px;
    margin-bottom: 8px;
    color: #dcddde;
}
.no-results small {
    font-size: 14px;
    opacity: 0.7;
}
/* Scrollbar Styling für den Emoji-Picker */
.emoji-grid::-webkit-scrollbar {
    width: 8px;
}
.emoji-grid::-webkit-scrollbar-track {
    background: #2f3136;
}
.emoji-grid::-webkit-scrollbar-thumb {
    background: #40444b;
    border-radius: 4px;
}
.emoji-grid::-webkit-scrollbar-thumb:hover {
    background: #4f545c;
}
/* ===== BLUEPRINT EDITOR ===== */
/* Blueprint Toggle Button */
.blueprint-toggle-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(44, 47, 51, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--discord-border);
    border-radius: 8px;
    color: var(--discord-text);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10000;
    font-weight: 500;
    font-size: 0.9rem;
}
.blueprint-toggle-btn:hover {
    border-color: var(--discord-accent);
    background: rgba(35, 39, 42, 0.6);
    transform: translateY(-1px);
}
.blueprint-toggle-btn.active {
    background: var(--discord-accent);
    border-color: var(--discord-accent);
    color: white;
}
.blueprint-toggle-btn i {
    font-size: 1rem;
}
/* Blueprint Editor Overlay */
.blueprint-editor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* Blueprint Editor Header */
.blueprint-editor-header {
    position: relative;
    height: 80px;
    background: rgba(44, 47, 51, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--discord-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 100001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.blueprint-editor-header h1 {
    color: var(--discord-text);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.blueprint-editor-header h1 i {
    color: var(--discord-accent);
}
.blueprint-header-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.blueprint-reset-btn,
.blueprint-close-btn {
    background: var(--discord-darker);
    border: 2px solid var(--discord-border);
    border-radius: 8px;
    color: var(--discord-text);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}
.blueprint-reset-btn:hover {
    border-color: #57f287;
    background: rgba(87, 242, 135, 0.1);
}
.blueprint-close-btn:hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}
/* Blueprint Canvas Container */
.blueprint-canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: transparent;
}
/* Blueprint Canvas */
.blueprint-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    background: transparent;
    will-change: transform;
    transform-style: preserve-3d;
    /* Performance-Optimierungen für smooth dragging */
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translateZ(0);
}
.blueprint-canvas:active {
    cursor: grabbing;
}
.blueprint-canvas.dragging {
    cursor: grabbing;
}
/* Blueprint Grid - Removed to prevent duplicate grid display */
/* Blueprint Nodes */
.blueprint-node-element {
    position: absolute;
    background: rgba(44, 47, 51, 0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid var(--discord-border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: move;
    user-select: none;
    transition: all 0.2s ease;
    min-width: 200px;
    max-width: 300px;
    z-index: 1000;
}
.blueprint-node-element:hover:not(.dragging) {
    border-color: var(--discord-accent);
    box-shadow: 0 12px 40px rgba(114, 137, 218, 0.2);
    transform: translateY(-2px);
}
.blueprint-node-element.dragging {
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
}
.blueprint-node-header {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--discord-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}
.blueprint-node-header i {
    color: var(--discord-accent);
    font-size: 0.9rem;
}
.blueprint-node-content {
    font-size: 0.85rem;
    color: var(--discord-text-muted);
    line-height: 1.4;
}
/* Blueprint Node Ports */
.blueprint-node-ports {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}
.port {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: var(--discord-accent);
    cursor: crosshair;
    transition: all 0.2s ease;
}
.port:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(114, 137, 218, 0.8);
}
.port-input {
    background: #57f287;
}
.port-output {
    background: #ff6b6b;
}
/* Blueprint Connection Lines */
.blueprint-connection-line {
    position: absolute;
    pointer-events: none;
    z-index: 999;
    background: linear-gradient(90deg, #57f287, #7289da);
    box-shadow: 0 0 10px rgba(87, 242, 135, 0.6);
}
.blueprint-connection-line.active {
    background: linear-gradient(90deg, #57f287, #57f287);
    box-shadow: 0 0 15px rgba(87, 242, 135, 0.8);
}
/* Blueprint Minimap */
.blueprint-minimap {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 200px;
    height: 150px;
    background: rgba(15, 20, 25, 0.9);
    border: 2px solid var(--discord-border);
    border-radius: 8px;
    overflow: hidden;
    z-index: 100000;
    backdrop-filter: blur(10px);
}
.minimap-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(114, 137, 218, 0.1);
}
/* Discord Channel Blueprint Node Specific Styles */
.discord-channel-node {
    min-width: 320px;
    max-width: 400px;
    background: linear-gradient(145deg, #5865f2, #4752c4);
    border: 2px solid #7289da;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.4);
}
.discord-channel-node:hover {
    border-color: #ffffff;
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.6);
    transform: translateY(-2px);
}
.discord-channel-node.dragging {
    transform: rotate(2deg) scale(1.05);
    box-shadow: 0 16px 50px rgba(88, 101, 242, 0.8);
    z-index: 1001;
    transition: none;
}
.discord-channel-node .blueprint-node-header {
    color: #ffffff;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    margin: -1rem -1rem 0.5rem -1rem;
    border-radius: 10px 10px 0 0;
    cursor: grab;
}
.discord-channel-node .blueprint-node-header:active {
    cursor: grabbing;
}
.discord-channel-node .blueprint-node-header i {
    color: #ffffff;
    font-size: 1.1rem;
}
.discord-channel-node .blueprint-node-content {
    color: #ffffff;
}
.discord-channel-node .setting-group label {
    color: #ffffff;
    font-weight: 600;
}
.discord-channel-node .channel-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
.discord-channel-node .channel-refresh-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
.discord-channel-node .action-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}
.discord-channel-node .action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}
.discord-channel-node .global-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
/* Blueprint Node Dragging States */
.blueprint-node-element.dragging {
    transition: none;
    pointer-events: none;
}
.blueprint-node-element.dragging * {
    pointer-events: none;
}
/* Blueprint Ports */
.blueprint-port {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #333333;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}
.blueprint-port:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.blueprint-port.input-port {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-color: #ff6b6b;
}
.blueprint-port.output-port {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border-color: #4ecdc4;
}
.blueprint-port.input-port:hover {
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
}
.blueprint-port.output-port:hover {
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.7);
}
/* Blueprint Editor Responsive */
@media (max-width: 1306px) {
    .blueprint-toggle-btn {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    .blueprint-editor-header {
        height: 60px;
        padding: 0 1rem;
    }
    .blueprint-editor-header h1 {
        font-size: 1.2rem;
    }
    .blueprint-minimap {
        width: 150px;
        height: 100px;
        bottom: 1rem;
        right: 1rem;
    }
    .discord-channel-node {
        min-width: 280px;
        max-width: 320px;
    }
}
@media (max-width: 480px) {
    .blueprint-toggle-btn {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    .blueprint-editor-header {
        height: 50px;
        padding: 0 0.5rem;
    }
    .blueprint-editor-header h1 {
        font-size: 1rem;
    }
    .blueprint-minimap {
        display: none;
    }
}
/* Professional Blueprint Canvas */
.blueprint-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow: hidden;
    background: transparent;
    cursor: grab;
}
.blueprint-canvas-container:active {
    cursor: grabbing;
}
.blueprint-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    /* will-change: transform; */
}
.blueprint-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.canvas-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.canvas-controls .zoom-controller {
    background: rgba(44, 47, 51, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.canvas-controls .zoom-btn {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}
.canvas-controls .zoom-btn:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}
.canvas-controls .zoom-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.2);
}
.canvas-controls .zoom-level {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    background: rgba(88, 101, 242, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(88, 101, 242, 0.2);
}
/* Blueprint Grid Animation - Disabled to prevent darkening during drag */
@keyframes gridPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.8;
    }
}
/* Einfaches CSS Grid - Basis-Styles, werden von JavaScript überschrieben */
.simple-blueprint-grid {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    will-change: background-size;
}
/* Responsive Design */
@media (max-width: 1306px) {
    .canvas-controls {
        top: 10px;
        right: 10px;
        scale: 0.9;
    }
    .canvas-controls .zoom-controller {
        padding: 6px;
        gap: 6px;
    }
    .canvas-controls .zoom-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .simple-blueprint-grid {
        opacity: 0.3;
    }
}
@media (max-width: 480px) {
    .canvas-controls {
        scale: 0.8;
    }
}
/* ========================================
   PRESET SYSTEM STYLES
   ======================================== */
.preset-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 4px;
    justify-content: space-between;
    width: 100%;
    min-width: 600px; /* Feste Mindestbreite */
    max-width: 800px; /* Feste Maximalbreite */
}
.preset-box {
    background: rgba(44, 47, 51, 0.8);
    border: none;
    border-radius: 8px;
    padding: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 180px; /* Feste Mindestbreite für Preset-Box */
    max-width: 200px; /* Feste Maximalbreite für Preset-Box */
}
.preset-box:hover {
    background: rgba(44, 47, 51, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
/* Header-Styles entfernt - nicht mehr benötigt */
/* Status Overlay in Preview */
.preset-status-overlay {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 10;
    pointer-events: none;
}
.preset-status-badge {
    background: rgba(67, 181, 129, 0.9);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.preset-status-badge i {
    font-size: 8px;
}
.preset-preview {
    width: 180px; /* Feste Breite */
    height: 90px; /* Feste Höhe (2:1 Seitenverhältnis) */
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(30, 33, 36, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.preset-preview:hover {
    transform: scale(1.02);
}
.preset-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #72767d;
    background: linear-gradient(135deg, rgba(30, 33, 36, 0.8), rgba(44, 47, 51, 0.8));
}
.preset-preview-placeholder i {
    font-size: 20px;
    margin-bottom: 4px;
    opacity: 0.6;
}
.preset-preview-placeholder span {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}
.preset-preview-content {
    width: 100%;
    height: 100%;
    position: relative;
    pointer-events: none;
}
.preset-buttons {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    justify-content: center;
}
.preset-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    position: relative;
    overflow: hidden;
}
.preset-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
.preset-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.preset-btn.save-btn {
    background: linear-gradient(135deg, #43b581, #3aa374);
    color: #ffffff;
}
.preset-btn.save-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #3aa374, #2d7d5a);
    box-shadow: 0 4px 12px rgba(67, 181, 129, 0.3);
}
.preset-btn.load-btn {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: #ffffff;
}
.preset-btn.load-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4752c4, #3c45a5);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}
.preset-btn.delete-btn {
    background: linear-gradient(135deg, #ed4245, #c73e1d);
    color: #ffffff;
}
.preset-btn.delete-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c73e1d, #a8321a);
    box-shadow: 0 4px 12px rgba(237, 66, 69, 0.3);
}
/* Active Preset Button */
.preset-btn.active-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #9ca3af;
    transition: all 0.3s ease;
}
.preset-btn.active-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4b5563, #374151);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}
.preset-btn.active-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
    animation: sunPulse 2s ease-in-out infinite;
}
.preset-btn.active-btn.active:hover:not(:disabled) {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}
@keyframes sunPulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
        transform: scale(1.05);
    }
}
/* Preset Preview Miniaturansicht - 2:1 Seitenverhältnis */
.preset-preview .welcome-preview {
    width: 800px;
    height: 400px;
    transform-origin: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.225);
    pointer-events: none;
}
/* Preset Animationen */
@keyframes presetSave {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.4);
    }
    25% { 
        transform: scale(1.05); 
        box-shadow: 0 0 0 4px rgba(67, 181, 129, 0.3);
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 0 0 8px rgba(67, 181, 129, 0.2);
    }
    75% { 
        transform: scale(1.05); 
        box-shadow: 0 0 0 4px rgba(67, 181, 129, 0.1);
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(67, 181, 129, 0);
    }
}
@keyframes presetPreviewSave {
    0% { 
        transform: scale(1); 
        filter: brightness(1);
        box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.4);
    }
    25% { 
        transform: scale(1.02); 
        filter: brightness(1.1);
        box-shadow: 0 0 0 3px rgba(67, 181, 129, 0.3);
    }
    50% { 
        transform: scale(1.05); 
        filter: brightness(1.2);
        box-shadow: 0 0 0 6px rgba(67, 181, 129, 0.2);
    }
    75% { 
        transform: scale(1.02); 
        filter: brightness(1.1);
        box-shadow: 0 0 0 3px rgba(67, 181, 129, 0.1);
    }
    100% { 
        transform: scale(1); 
        filter: brightness(1);
        box-shadow: 0 0 0 0 rgba(67, 181, 129, 0);
    }
}
@keyframes presetLoad {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}
.preset-save-animation {
    animation: presetSave 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.preset-preview-save-animation {
    animation: presetPreviewSave 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.preset-saving-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.preset-saving-indicator i {
    font-size: 0.9rem;
    color: var(--discord-green);
}
.preset-load-animation {
    animation: presetLoad 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Preset Status Indikatoren */
.preset-box[data-status="saved"] {
    background: rgba(44, 47, 51, 0.8);
}
.preset-box[data-status="saved"] .preset-preview {
    /* Keine spezielle Umrandung für gespeicherte Presets */
}
/* Responsive Preset System - Feste Größen beibehalten */
@media (max-width: 1306px) {
    .preset-container {
        flex-direction: row; /* Behalte horizontale Anordnung bei */
        gap: 6px;
        padding: 4px;
        min-width: 600px; /* Behalte Mindestbreite bei */
        max-width: 800px; /* Behalte Maximalbreite bei */
        overflow-x: auto; /* Horizontaler Scroll bei Bedarf */
    }
    .preset-box {
        padding: 6px;
        flex: 1;
        min-width: 180px; /* Behalte Mindestbreite bei */
        max-width: 200px; /* Behalte Maximalbreite bei */
    }
    .preset-preview {
        width: 180px; /* Feste Breite beibehalten */
        height: 90px; /* Feste Höhe beibehalten */
    }
    .preset-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}
