* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-dark: #020005;
    --bg-gradient: radial-gradient(circle at top center, #1a0033 0%, #05001a 40%, #000000 100%);
    --bg-panel: rgba(10, 5, 25, 0.7);
    --bg-chat: rgba(255, 255, 255, 0.03);
    --text-main: #f7fbff;
    --text-muted: #aab6c6;
    --cyan: #00e5ff;
    --purple: #b026ff;
    --border: rgba(82, 243, 255, 0.2);
}

body {
    background-color: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    display: flex;
    height: 100vh; /* Fallback */
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    margin: 0;
    padding: 0;
    position: fixed; /* Verhindert das Wackeln auf iOS/Android komplett */
}

.app-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Stellt sicher, dass nichts übersteht */
}

/* ---------------------------------
   SIDEBAR (Chat History)
---------------------------------- */
.sidebar {
    width: 280px;
    background-color: rgba(5, 0, 26, 0.6);
    backdrop-filter: blur(16px);
    border-right: none;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 20;
}

.brand {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 30px;
    padding: 0 5px;
    background: linear-gradient(
        to right,
        var(--text-main) 20%,
        var(--cyan) 40%,
        var(--purple) 60%,
        var(--text-main) 80%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShine 4s linear infinite;
    display: inline-block;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.brand .highlight {
    /* Die Klasse bleibt fürs HTML bestehen, aber das Styling übernimmt jetzt der animierte Verlauf */
}

.new-chat-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: var(--cyan);
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.new-chat-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(82, 243, 255, 0.8), rgba(176, 38, 255, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.new-chat-btn:hover {
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(82, 243, 255, 0.5), 0 0 40px rgba(176, 38, 255, 0.4);
    color: #ffffff;
}

.new-chat-btn:hover::before {
    opacity: 1;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
}

/* Custom Scrollbar for Sidebar */
.chat-history::-webkit-scrollbar {
    width: 4px;
}
.chat-history::-webkit-scrollbar-thumb {
    background: rgba(82, 243, 255, 0.2);
    border-radius: 4px;
}

.history-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 0 5px;
    letter-spacing: 1.5px;
}

.history-item {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.history-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.history-item.active {
    background-color: rgba(82, 243, 255, 0.1);
    border-color: rgba(82, 243, 255, 0.3);
    color: #fff;
    box-shadow: inset 0 0 15px rgba(82, 243, 255, 0.1);
}

.sidebar-footer {
    border-top: none;
    padding-top: 20px;
    margin-top: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 0 5px;
}

.avatar-small {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.4);
}

.settings-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 10px 5px;
    border-radius: 6px;
    transition: color 0.2s;
    cursor: pointer;
}

.settings-link:hover {
    color: var(--cyan);
}

/* --- Settings Popover (Gemini Style) --- */
.sidebar-footer {
    padding: 20px;
    position: relative;
}

.settings-popover {
    position: absolute;
    bottom: 50px;
    left: 20px;
    background-color: #1e1e24; /* Dark gray similar to Gemini */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    width: 300px;
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.settings-popover.active {
    opacity: 1;
    transform: translateY(0);
}

.settings-menu {
    list-style: none; /* Removes the bullets */
    padding: 0;
    margin: 0;
}

.settings-menu li {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: #e2e8f0;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.settings-menu li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.settings-menu li .icon {
    margin-right: 15px;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    opacity: 0.8;
}

.settings-menu li .arrow {
    margin-left: auto;
    color: #888;
    font-size: 0.8rem;
}

/* ---------------------------------
   MAIN CHAT AREA
---------------------------------- */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent;
}

.chat-header {
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    border-bottom: none;
    background-color: rgba(2, 0, 5, 0.6);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.mobile-menu-btn:hover {
    color: var(--cyan);
}

.model-selector {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.badge {
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 900;
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.5);
}

/* Initial Center Logo Screen */
.initial-logo-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    animation: fade-in 0.8s ease-out;
}

.center-brand {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 0 40px rgba(82, 243, 255, 0.3);
    margin-bottom: 15px;
}

.center-brand .highlight {
    color: var(--cyan);
}

.center-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Messages */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Chat */
.messages-container::-webkit-scrollbar {
    width: 8px;
}
.messages-container::-webkit-scrollbar-thumb {
    background: rgba(82, 243, 255, 0.2);
    border-radius: 4px;
}

.message {
    display: flex;
    gap: 20px;
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
}

.message.user {
    flex-direction: row;
    justify-content: flex-end;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.ai-avatar {
    background-color: rgba(10, 5, 25, 0.8);
    border: 1px solid var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.geiles-s {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.5));
}

.user-avatar {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.3);
}

.bubble {
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 1.05rem;
    line-height: 1.6;
    position: relative; /* For positioning the speaker icon */
}

.message.ai .bubble {
    background: var(--bg-panel);
    border: none;
    color: var(--text-main);
    border-top-left-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Speaker Icon for AI Messages */
.tts-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(10, 5, 25, 0.9);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.message.ai:hover .tts-btn {
    opacity: 1;
    transform: scale(1);
}

.tts-btn:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 15px var(--cyan);
}

.tts-btn.playing {
    animation: speaker-pulse 1s infinite;
    background: var(--cyan);
    color: #000;
}

@keyframes speaker-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.message.user .bubble {
    background: rgba(0, 229, 255, 0.1);
    border: none;
    color: #fff;
    border-top-right-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.bubble p {
    margin-bottom: 12px;
}

.bubble p:last-child {
    margin-bottom: 0;
}

.bubble ul {
    margin-left: 24px;
    margin-bottom: 12px;
}

.bubble li {
    margin-bottom: 8px;
}

/* --- Markdown & Code Highlighting --- */
.markdown-body pre {
    background-color: #0d1117; /* Dunklerer Hintergrund für Code */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 15px 0;
}

.markdown-body pre code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* Inline Code */
.markdown-body code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--cyan);
}

.markdown-body p {
    margin-bottom: 12px;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #fff;
}

/* Input Area */
.input-area {
    padding: 20px 40px 40px;
    background: linear-gradient(to top, var(--bg-dark) 80%, transparent);
}

/* Image Preview Container */
.image-preview-container {
    display: none;
    max-width: 850px;
    margin: 0 auto -15px auto;
    padding: 15px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-bottom: none;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    position: relative;
    z-index: 5;
    text-align: center; /* Zentriert das Bild auf dem Handy */
}

.image-preview-container img {
    height: 80px;
    width: auto; /* Verhindert Verzerrungen */
    max-width: 100%; /* Verhindert, dass das Bild über den Rand hinausgeht */
    object-fit: cover; /* Schneidet das Bild sauber ab, falls nötig */
    border-radius: 8px;
    border: 2px solid var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    display: inline-block; /* Wichtig für die Zentrierung */
}

.remove-image-btn {
    position: absolute;
    top: 5px;
    right: 15px; /* Auf die rechte Seite verschoben, damit es nicht vom Bild abhängt */
    background: #ff3366;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.8);
    transition: transform 0.2s;
    z-index: 10;
}

.remove-image-btn:hover {
    transform: scale(1.1);
}

.input-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: flex-end;
    padding: 12px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.input-wrapper:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
    background: rgba(15, 10, 35, 0.9);
}

/* Attachment Popover */
.attach-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.attach-popover {
    position: absolute;
    bottom: 50px;
    left: 0;
    background-color: #1e1e24;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 200px;
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.attach-popover.active {
    opacity: 1;
    transform: translateY(0);
}

.attach-popover ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attach-popover li {
    padding: 12px 20px;
    color: #e2e8f0;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.attach-popover li:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--cyan);
}

.attach-btn, .send-btn, .mic-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attach-btn:hover, .mic-btn:hover { 
    color: var(--cyan); 
    transform: scale(1.1);
}

.mic-btn.recording {
    color: #ff3366;
    animation: mic-pulse 1.5s infinite;
}

@keyframes mic-pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 51, 102, 0.5)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 15px rgba(255, 51, 102, 0.8)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 51, 102, 0.5)); }
}

.send-btn {
    background: transparent;
    border: none;
    color: var(--cyan);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 0;
    transition: transform 0.2s;
    height: auto;
    width: auto;
}

.send-btn:hover {
    background: transparent;
    color: #fff;
    transform: scale(1.15);
    box-shadow: none;
}

textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    padding: 12px 15px;
    resize: none;
    outline: none;
    max-height: 200px;
    font-family: inherit;
    line-height: 1.5;
}

textarea::placeholder {
    color: var(--text-muted);
}

.disclaimer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 18px;
    letter-spacing: 0.5px;
}

.privacy-link {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: rgba(170, 182, 198, 0.4);
    margin-left: 8px;
    transition: all 0.2s ease;
}

.privacy-link:hover {
    color: var(--cyan);
    text-decoration-color: var(--cyan);
}

/* Typing Indicator Animation */
.typing-indicator .bubble {
    display: inline-flex;
    gap: 4px;
    padding: 18px 24px;
}

.strukon-sparkle {
    width: 24px;
    height: 24px;
    animation: sparkle-pulse 1.5s infinite ease-in-out;
}

.strukon-sparkle path {
    fill: var(--cyan);
    animation: sparkle-color 3s infinite ease-in-out;
}

@keyframes sparkle-pulse {
    0% { transform: scale(0.85) rotate(0deg); }
    50% { transform: scale(1.15) rotate(90deg); }
    100% { transform: scale(0.85) rotate(180deg); }
}

@keyframes sparkle-color {
    0% { fill: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
    50% { fill: var(--purple); filter: drop-shadow(0 0 12px var(--purple)); }
    100% { fill: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
}

@keyframes pulse-text {
    0% { opacity: 0.6; }
    50% { opacity: 1; text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
    100% { opacity: 0.6; }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        left: -300px;
        top: 0;
        bottom: 0;
        z-index: 2000;
        transition: left 0.3s ease;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: block !important;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .chat-header {
        position: relative;
        padding-left: 60px; /* Platz für das Hamburger-Menü machen */
        padding-right: 20px;
    }

    .model-selector {
        width: 100%;
        justify-content: center; /* Zentriert "STRUKON Alpha PRO" auf dem Handy */
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.6);
        z-index: 1999;
        backdrop-filter: blur(2px);
    }

    .mobile-overlay.active {
        display: block;
    }

    .messages-container {
        padding: 15px 10px;
        gap: 25px;
    }

    .message {
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }

    .avatar {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .bubble {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .center-brand {
        font-size: 3rem;
    }

    .input-area {
        padding: 10px 15px 15px; /* Etwas mehr Platz unten, damit es nicht an der iPhone/Android Leiste klebt */
        padding-bottom: env(safe-area-inset-bottom, 20px); /* Beachtet den Strich unten auf iPhones! */
    }
    
    .disclaimer {
        margin-top: 12px;
        font-size: 0.7rem;
        padding: 0 10px;
        line-height: 1.4;
    }

    .attach-popover {
        bottom: 60px;
        left: 0;
        width: 180px;
    }
}

/* Legal Pages (Datenschutz, etc.) */
.legal-page {
    overflow-y: auto;
    padding: 40px 20px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    color: var(--text-main);
    line-height: 1.6;
}

.legal-container h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--cyan);
    text-align: center;
}

.legal-container h2 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.legal-container h3 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--purple);
}

.legal-container p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.legal-container ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.legal-container li {
    margin-bottom: 5px;
}

.back-to-chat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 600;
    transition: transform 0.2s;
}

.back-to-chat:hover {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .legal-container {
        padding: 20px;
    }
    
    .legal-container h1 {
        font-size: 1.5rem;
    }
}

/* Generic Modal */
.generic-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.generic-modal-overlay.active {
    opacity: 1;
}

.generic-modal-content {
    background: #1e1e24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.generic-modal-overlay.active .generic-modal-content {
    transform: translateY(0);
}

.generic-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.generic-modal-header h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.generic-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.generic-modal-close:hover {
    color: #fff;
}

.generic-modal-body {
    padding: 25px;
    color: var(--text-main);
}

.generic-modal-body textarea, .generic-modal-body input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-family: inherit;
    margin-top: 10px;
    resize: vertical;
}

.generic-modal-body textarea:focus, .generic-modal-body input:focus {
    outline: none;
    border-color: var(--cyan);
}

.generic-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: rgba(0,0,0,0.1);
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.modal-btn.cancel {
    background: transparent;
    color: var(--text-muted);
}

.modal-btn.cancel:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.modal-btn.save {
    background: var(--cyan);
    color: #000;
}

.modal-btn.save:hover {
    background: #00b3cc;
    transform: translateY(-2px);
}
