/* ==========================================
   1. GLOBAL & VARIABLES
   ========================================== */
:root {
    /* Modernes Farbschema */
    --primary-color: #007aff;
    --primary-hover: #0062cc;
    --bg-app: #e8e8e8;
    --text-main: #1d1d1f;
    --text-muted: #86868b;

    /* Fenster & Container */
    --window-bg: rgba(255, 255, 255, 0.85);
    --window-border: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(25px) saturate(180%);

    /* Dark Mode Variablen Default (werden unten überschrieben) */
    --container-bg: #f0f0f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    height: 100vh;
    display: block;
    overflow: hidden;
    transition:
        background-color 0.3s,
        color 0.3s;
}

/* Helper Classes */
.hidden {
    display: none !important;
}
.success {
    color: #27c93f;
}
.error {
    color: #ff5f56;
}

.modal-overlay {
    /* Deine bestehenden Overlay Styles (fixed, z-index, etc.) */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* Shader Background */
#shaderCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ==========================================
   2. HEADER & MENU
   ========================================== */
header {
    background-color: var(--window-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
}

.mac-menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px; /* Etwas höher für besseres Handling */
    z-index: 5000;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    user-select: none;
}

.mac-menu-bar nav,
.menu-right {
    display: flex;
    align-items: center;
}

.menu-item {
    padding: 4px 10px;
    color: var(--text-main);
    cursor: pointer;
    transition: background-color 0.1s;
    border-radius: 4px;
    font-size: 13px;
}
.menu-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* ==========================================
   3. HAUPT-CONTAINER (Upload Screen)
   ========================================== */
.container-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 150px 20px 20px 20px;
    box-sizing: border-box;
}

.container {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin: 0;
    width: 95vw;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s;
    color: var(--text-main);
}

.container.hidden-by-window {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: scale(0.95);
}

.content {
    padding: 40px;
    text-align: center;
}
.content p {
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 25px;
}
h1 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

/* ==========================================
   4. LOGIN & AUTH
   ========================================== */
#authSection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    background: transparent;
}

#loginPanel {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 320px;
    text-align: center;
    z-index: 101;
}

#loginForm input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
#loginForm input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

#loginButton {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
}
#loginButton:hover {
    background-color: var(--primary-hover);
}

/* ==========================================
   5. UPLOAD FORM & INPUTS
   ========================================== */
#uploadSection {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#uploadButton {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition:
        background-color 0.2s,
        transform 0.1s;
    width: 70%;
    margin: 15px auto 0 auto;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
}
#uploadButton:hover {
    background-color: var(--primary-hover);
}
#uploadButton:active {
    transform: scale(0.98);
}

.upload-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.upload-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
    margin-bottom: 15px;
}

.upload-options {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    justify-content: center;
    margin-top: 5px;
}

#fileInput {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px dashed #bbb;
    border-radius: 10px;
    padding: 20px;
    color: var(--text-main);
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
}
#fileInput:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
}

#message {
    width: 80%;
    max-width: 400px;
    margin: 10px auto;
    text-align: center;
}
.success-box {
    background-color: rgba(39, 201, 63, 0.1);
    border: 1px solid rgba(39, 201, 63, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    color: #27c93f;
}

/* ==========================================
   6. FENSTER SYSTEM (Allgemein)
   ========================================== */
.draggable-window {
    position: fixed;
    width: 420px; /* Etwas breiter für das neue Design */
    background-color: var(--window-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--window-border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    transition:
        opacity 0.2s,
        transform 0.2s;
}

/* Maximierter Zustand */
.draggable-window.is-maximized {
    width: 100vw !important;
    height: calc(100vh - 32px) !important;
    top: 32px !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0;
    z-index: 3000;
}
.draggable-window.is-maximized .window-content,
.draggable-window.is-maximized .console-content,
.draggable-window.is-maximized .file-list-scroll {
    height: 100%;
    max-height: none;
}

/* Header & Controls */
.window-header {
    background: transparent; /* Cleaner Look, Blur scheint durch */
    padding: 0 16px;
    height: 44px; /* Standard macOS Header Höhe */
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    user-select: none;
}
.window-header:active {
    cursor: grabbing;
}

.window-content {
    padding: 0; /* Padding in Sub-Elementen steuern */
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.window-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
}
.window-controls:hover .dot {
    opacity: 1;
}
.dot.red {
    background-color: #ff5f56;
    border-color: #e0443e;
}
.dot.yellow {
    background-color: #ffbd2e;
    border-color: #dea123;
}
.dot.green {
    background-color: #27c93f;
    border-color: #1aab29;
    cursor: pointer;
}

/* Animationen */
@keyframes windowPopIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.window-animate-in {
    animation: windowPopIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.window-animate-out {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.2s ease;
}

/* ==========================================
   7. FILE MANAGER (Hübscher & Sauberer)
   ========================================== */
.file-manager-toolbar {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-icon {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

/* Breadcrumbs (Pfad) */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.crumb {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.crumb:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}
.crumb.active {
    font-weight: 600;
    color: var(--primary-color);
    cursor: default;
}
.crumb-separator {
    opacity: 0.4;
    font-size: 10px;
}

/* Dateiliste (Neu gestaltet: Row Layout) */
.file-list-scroll {
    flex-grow: 1;
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 4px;
    background: transparent;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background 0.1s;
    cursor: default;
}

/* Hover & Selected States */
.file-item:hover {
    background: rgba(0, 0, 0, 0.04);
}
.file-item.selected {
    background-color: var(--primary-color) !important;
    color: white !important;
}
/* Farben innerhalb des selektierten Elements anpassen */
.file-item.selected .file-name,
.file-item.selected .file-details,
.file-item.selected i,
.file-item.selected .mac-icon {
    color: white !important;
    opacity: 1;
}

.file-item.drag-over {
    background: rgba(0, 122, 255, 0.15) !important;
    border: 1px dashed var(--primary-color);
}

/* Item Details */
.file-main-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow: hidden;
}
.file-name {
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}
.file-icon-large {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* Rechte Seite (Meta & Actions) */
.file-details {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    min-width: 70px;
    margin-left: 10px;
}

/* Action Buttons (nur sichtbar bei Hover oder Select) */
.file-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
    margin-left: 10px;
}
.file-item:hover .file-actions,
.file-item.selected .file-actions {
    opacity: 1;
}

.btn-mini {
    padding: 4px 8px;
    border-radius: 5px;
    border: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}
.btn-mini:hover {
    background: rgba(0, 0, 0, 0.2);
}
.file-item.selected .btn-mini {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.btn-delete {
    background: none;
    border: none;
    color: #ff3b30;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}
.btn-delete:hover {
    color: #d6332a;
}
.file-item.selected .btn-delete {
    color: #ffcccc;
}

/* Storage Bar */
.storage-info {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 11px;
}
.storage-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 500;
}
#storageText {
    color: var(--primary-color);
    font-weight: 600;
}
.storage-bar-container {
    height: 5px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    overflow: hidden;
}
.storage-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: width 0.4s ease-out;
}

/* ==========================================
   8. PREVIEW WINDOW (Kino Modus)
   ========================================== */
#previewWindow {
    background: rgba(20, 20, 20, 0.95); /* Immer dunkel */
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}
#previewHeader {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.preview-title {
    color: #f0f0f0;
}

#previewContent {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    height: calc(100% - 44px);
    overflow: hidden;
}

#previewContent img,
#previewContent video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
#previewContent iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.preview-text-content {
    width: 100%;
    height: 100%;
    overflow: auto;
    background: #1e1e1e;
    color: #e0e0e0;
    padding: 20px;
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 12px;
}

/* ==========================================
   9. SETTINGS PANEL (iOS Style)
   ========================================== */
#settingsPanel {
    width: 340px;
    z-index: 8000;
}

.settings-scroll-area {
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
}

.settings-group-box {
    background: rgba(255, 255, 255, 0.6); /* Heller als Fenster */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.dark-mode .settings-group-box {
    background: rgba(50, 50, 50, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
}
.settings-row:last-child {
    border-bottom: none;
}
.settings-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
}

/* Toggle Switch (Pure CSS) */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
input:checked + .slider {
    background-color: var(--primary-color);
}
input:checked + .slider:before {
    transform: translateX(20px);
}

input[type="color"] {
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    background: none;
    padding: 0;
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* ==========================================
   10. TERMINAL / CONSOLE (Hacker Look)
   ========================================== */
.terminal-window {
    width: 600px;
    background-color: rgba(10, 10, 15, 0.95) !important; /* Fast schwarz */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #33ff33 !important; /* Hacker Grün */
    font-family: "SF Mono", "Courier New", monospace;
}
.terminal-window .window-header {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}
.terminal-window .window-title {
    color: #aaa;
}

.console-content {
    background: transparent;
    padding: 15px;
    height: 350px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.5;
}
.console-content .line {
    border-left: 2px solid #333;
    padding-left: 8px;
    margin-bottom: 2px;
}

.console-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

/* ==========================================
   11. NOTIFICATIONS & ICONS
   ========================================== */
.mac-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    vertical-align: middle;
}
.menu-bar-icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    fill: currentColor;
}

/* Toast (oben rechts) */
#toastContainer {
    position: fixed;
    top: 45px;
    right: 20px;
    width: 320px;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast-notification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    color: #000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(50px);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}
.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    padding-top: 2px;
}
.toast-body {
    flex-grow: 1;
}
.toast-title {
    font-weight: 600;
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}
.toast-message {
    font-size: 12px;
    color: #555;
    line-height: 1.3;
}

/* Sidebar Notification Center */
#notificationCenter {
    position: fixed;
    top: 45px;
    bottom: 15px;
    right: 15px;
    width: 350px;
    background: rgba(255, 255, 255, 0.95); /* Etwas deckender */
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: -10px 10px 50px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    transform: translateX(130%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
}

#notificationCenter.active {
    transform: translateX(0);
}

/* WICHTIG: Das ist der Anker für das Badge */
#notificationToggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Header --- */
/* Header Bereich */
.nc-header {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
}

.nc-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.nc-group {
    margin-bottom: 5px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    overflow: hidden;
}
.nc-group-header {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}
.nc-group-header:hover {
    background: rgba(0, 0, 0, 0.04);
}
.nc-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
    opacity: 0.5;
}
.nc-group.collapsed .nc-arrow {
    transform: rotate(-90deg);
}
.nc-group.collapsed .nc-group-list {
    display: none;
}

/* Fix für die Buttons im Header (Sortieren & Alle Löschen) */
#sortNotifications,
#clearNotifications {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kleiner Sortier-Button */
#sortNotifications {
    color: var(--text-muted);
    padding: 4px;
    border-radius: 4px;
}
#sortNotifications:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

#clearNotifications {
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(0, 122, 255, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
#clearNotifications:hover {
    background: rgba(0, 122, 255, 0.15);
    transform: scale(1.02);
}

/* --- Content Area --- */
.nc-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* GRÖSSERER ABSTAND */
}

/* --- Einzelne Nachricht (Card) --- */
.nc-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px 15px 15px 15px; /* Standard Padding */
    padding-right: 40px !important; /* WICHTIG: Platz rechts für den Button reservieren */
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative; /* Für absolute Positionierung des Löschen-Buttons */
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.nc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

/* --- Icon Farben (Farbenfrohheit) --- */
/* Diese Klassen werden im SVG im JS verwendet */
.nc-item .icon-info {
    color: #007aff;
    filter: drop-shadow(0 2px 4px rgba(0, 122, 255, 0.2));
}
.nc-item .icon-success {
    color: #34c759;
    filter: drop-shadow(0 2px 4px rgba(52, 199, 89, 0.2));
}
.nc-item .icon-error {
    color: #ff3b30;
    filter: drop-shadow(0 2px 4px rgba(255, 59, 48, 0.2));
}
.nc-item .icon-warning {
    color: #ff9500;
    filter: drop-shadow(0 2px 4px rgba(255, 149, 0, 0.2));
}
.nc-item .icon-system {
    color: #8e8e93;
}
.nc-item .icon-security {
    color: #af52de;
    filter: drop-shadow(0 2px 4px rgba(175, 82, 222, 0.2));
}
.nc-item .icon-upload {
    color: #007aff;
}

/* Icon Wrapper im Item */
.nc-item > div:first-child {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px; /* Icons größer machen */
    margin-top: 2px;
}

/* Text Container */
.nc-item > div:nth-child(2) {
    flex-grow: 1;
    overflow: hidden; /* Verhindert Text-Überlauf */
}

/* Titel Zeile */
.nc-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    flex-wrap: wrap; /* Falls Titel zu lang */
}

.nc-item-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-main);
}

/* 1. Farbiger Rand links + leichter Hintergrund-Schimmer */
.nc-item.type-success {
    border-left: 4px solid #34c759;
    background: linear-gradient(90deg, rgba(52, 199, 89, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
}
.nc-item.type-error {
    border-left: 4px solid #ff3b30;
    background: linear-gradient(90deg, rgba(255, 59, 48, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
}
.nc-item.type-warning {
    border-left: 4px solid #ff9500;
    background: linear-gradient(90deg, rgba(255, 149, 0, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
}
.nc-item.type-info {
    border-left: 4px solid #007aff;
    background: linear-gradient(90deg, rgba(0, 122, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
}

/* 2. Ungelesen-Punkt (blauer Dot oben rechts) */
.nc-item.unread {
    background-color: #fff; /* Ungelesen ist heller/weißer */
    font-weight: 500; /* Text etwas dicker */
}
.nc-item.unread::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
}
/* Punkt ausblenden beim Hovern, damit Löschen-Button Platz hat */
.nc-item.unread:hover::after {
    display: none;
}

/* Uhrzeit (Meta) */
.nc-meta {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    white-space: nowrap;
    margin-left: auto; /* Schiebt Zeit nach rechts */
    padding-left: 8px;
}

/* Nachrichtentext */
.nc-msg-text {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    word-break: break-word; /* Lange Wörter umbrechen */
}

/* --- Löschen Button (Fix: Überlappung) --- */
.nc-single-delete {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%); /* Vertikal mittig */
    background: transparent;
    border: none;
    color: #ccc;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0; /* Unsichtbar bis Hover */
    transition: all 0.2s;
}

.nc-item:hover .nc-single-delete {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.nc-single-delete:hover {
    background: #ff3b30 !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1);
}

.nc-empty {
    margin-top: 100px;
    color: #aaa;
    text-align: center;
}

/* ==========================================
   DARK MODE FÜR NC V2
   ========================================== */
body.dark-mode #notificationCenter {
    background: rgba(35, 35, 35, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .nc-header {
    background: rgba(255, 255, 255, 0.05);
}
body.dark-mode .nc-item {
    background: rgba(50, 50, 50, 0.8);
    box-shadow: none;
}
body.dark-mode .nc-item:hover {
    background: rgba(70, 70, 70, 0.9);
}
body.dark-mode .nc-item-title {
    color: #fff;
}
body.dark-mode .nc-msg-text {
    color: #ccc;
}
body.dark-mode .nc-meta {
    color: #777;
}

/* Badge */
#notificationBadge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ff3b30;
    color: white;
    font-size: 9px;
    font-weight: bold;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.2s;
}
#notificationBadge.show {
    transform: scale(1);
}

/* ==========================================
   12. USER DROPDOWN & BULK ACTIONS
   ========================================== */
.user-menu-trigger {
    background: transparent;
    border: none;
    padding: 0 10px;
    color: var(--text-main);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 100%;
}
.user-menu-trigger:hover {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.dropdown-content {
    position: absolute;
    top: 35px;
    right: 10px;
    width: 220px;
    background: var(--window-bg);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    border: 1px solid var(--window-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 6000;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dropdown-item {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 8px 12px;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
}
.dropdown-item.logout:hover {
    background: #ff3b30;
}

/* Bulk Action Bar */
#bulkActionBar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(15px);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9000;
    transition: transform 0.3s;
    color: white;
    font-size: 13px;
    font-weight: 500;
}
#bulkActionBar.visible {
    transform: translateX(-50%) translateY(0);
}
#bulkActionBar button {
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}
#bulkDeleteBtn {
    background: #ff3b30;
    color: white;
}
.btn-cancel {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ==========================================
   13. UPLOAD PROGRESS CARD (Unten Rechts)
   ========================================== */
.upload-card {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: var(--window-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--window-border);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition:
        transform 0.3s,
        opacity 0.3s;
}
.upload-card.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}
.upload-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}
.pro-progress-track {
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    overflow: hidden;
}
.pro-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: width 0.2s;
}

/* ==========================================
  14. MESSENGER / CHAT WINDOW (FINAL FIX)
   ========================================== */

/* --- FENSTER & LAYOUT --- */
#chatWindow {
    width: 900px;
    height: 600px;
    display: flex;
    flex-direction: column;
    resize: both;
    overflow: hidden;
    min-width: 600px;
    min-height: 400px;
}

/* Erzwingt das Nebeneinander von Sidebar und Main */
#chatWindow .window-content.chat-layout {
    display: flex !important;
    flex-direction: row !important;
    flex: 1;
    height: 100%;
    padding: 0 !important;
    overflow: hidden;
    background: var(--window-bg); /* Hintergrund vom Theme übernehmen */
}

/* --- SIDEBAR (Links) --- */
.chat-sidebar {
    width: 260px;
    height: 100%;
    background: rgba(0, 0, 0, 0.03); /* Leicht abgedunkelt */
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 2;
}

/* Suchleiste */
.sidebar-search {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}
.sidebar-search input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    outline: none;
    box-sizing: border-box; /* Wichtig! */
    transition: all 0.2s;
}
.sidebar-search input:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Kontaktliste */
.contact-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Kontakt Item */
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}
.contact-item:hover {
    background: rgba(0, 0, 0, 0.05);
}
.contact-item.active {
    background: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Textfarben im aktiven Status */
.contact-item.active .contact-name,
.contact-item.active .contact-last-msg,
.contact-item.active .contact-time {
    color: #fff !important;
    opacity: 1 !important;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e0e0, #cfcfcf);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    justify-content: center;
}
.contact-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 2px;
}
.contact-last-msg {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.8;
}
.contact-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
    align-self: flex-start;
    opacity: 0.7;
}

/* Sidebar Footer (Mein Code) */
.sidebar-footer {
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    color: var(--text-muted);
}

/* --- MAIN CHAT (Rechts) --- */
.chat-main {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--window-bg); /* Wichtig für Dark Mode */
    position: relative;
    min-width: 0;
}

/* Chat Header */
.chat-recipient-header {
    height: 56px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: 1px solid #fff;
}
.status-indicator.online {
    background: #34c759;
    box-shadow: 0 0 6px rgba(52, 199, 89, 0.4);
}

/* Nachrichten Container */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

/* Trenner (Datum) */
.msg-divider {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin: 10px 0;
    font-weight: 500;
    opacity: 0.6;
    position: relative;
}

/* Nachrichten Wrapper */
.message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    position: relative;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ausrichtung */
.message.received {
    align-self: flex-start;
    align-items: flex-start;
}
.message.sent {
    align-self: flex-end;
    align-items: flex-end;
}

/* Die Blase (Bubble) */
.bubble {
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Farben Received */
.message.received .bubble {
    background: #e9e9eb;
    color: #000;
    border-bottom-left-radius: 4px; /* Ecken-Form */
}
/* Dark Mode Fix für empfangene */
body.dark-mode .message.received .bubble {
    background: #3a3a3c;
    color: #fff;
}

/* Farben Sent */
.message.sent .bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px; /* Ecken-Form */
}

/* Zeit / Status unter der Nachricht */
.msg-status {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-right: 2px;
    opacity: 0.7;
}

/* Input Area (Unten) */
.chat-input-area {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

/* Buttons unten */
.chat-attach-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    transition: color 0.2s;
}
.chat-attach-btn:hover {
    color: var(--text-main);
}

#messageInput {
    flex: 1;
    padding: 10px 16px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    font-size: 14px;
    transition: all 0.2s;
}
#messageInput:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.chat-send-btn:hover {
    transform: scale(1.05);
}
.chat-send-btn:active {
    transform: scale(0.95);
}

/* OVERLAY (Add Friend) */
.chat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
body.dark-mode .chat-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.overlay-box {
    background: var(--window-bg);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 280px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.overlay-box h3 {
    margin-top: 0;
    font-size: 16px;
    color: var(--text-main);
}
.overlay-box p {
    font-size: 13px;
    color: var(--text-muted);
}
.overlay-box input {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    box-sizing: border-box;
    text-align: center;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: bold;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}
.overlay-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}
.overlay-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}
.btn-primary {
    background: var(--primary-color);
    color: #fff;
}
.btn-cancel {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}
/* ==========================================
   15. DARK MODE OVERRIDES (Komplett)
   ========================================== */
body.dark-mode {
    --bg-app: #1e1e1e;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --window-bg: rgba(40, 40, 40, 0.8);
    --window-border: rgba(255, 255, 255, 0.1);
}

.mac-menu-bar.dark-mode-bg {
    background-color: rgba(30, 30, 30, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dark-mode .menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .container {
    background-color: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

.dark-mode #loginPanel {
    background-color: rgba(40, 40, 40, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}
.dark-mode #loginForm input {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.dark-mode #fileInput {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.dark-mode .file-manager-toolbar,
.dark-mode .storage-info {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .file-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.dark-mode .btn-mini {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
}
.dark-mode .btn-mini:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dark-mode #notificationCenter,
.dark-mode .toast-notification,
.dark-mode .upload-card,
.dark-mode .dropdown-content {
    background: rgba(40, 40, 40, 0.9);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}
.dark-mode .toast-title {
    color: #fff;
}
.dark-mode .toast-message {
    color: #ccc;
}
.dark-mode .nc-item {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
}

body.dark-mode .chat-sidebar {
    background: rgba(0, 0, 0, 0.2);
    border-right-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .sidebar-search input {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: transparent;
}
body.dark-mode .message.received .bubble {
    background: #3a3a3c;
    color: #fff;
}
body.dark-mode .chat-input-area {
    border-top-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode #messageInput {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}
body.dark-mode .chat-recipient-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}
body.dark-mode .chat-overlay {
    background: rgba(0, 0, 0, 0.6);
}
body.dark-mode .overlay-box {
    background: #2c2c2e;
    border-color: #444;
    color: white;
}

/* =========================================
   16. MODERN SUPPORT MODAL STYLES
   ========================================= */

/* 1. Hintergrund Overlay */
.support-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dunkler Dimmer */
    backdrop-filter: blur(8px); /* Starker Weichzeichner für den Hintergrund */
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Verstecken Klasse */
.support-overlay.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

/* 2. Die Karte (Glassmorphism) */
.support-card {
    background: rgba(255, 255, 255, 0.95); /* Helles Design (passt meist besser für User) */
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Schöner Bounce-Effekt */
}

/* Dark Mode Support (falls deine App Dark Mode hat) */
@media (prefers-color-scheme: dark) {
    .support-card {
        background: #1e1e1e;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* 3. Icon mit Animation */
.support-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007aff, #00c6ff);
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
}

.support-icon {
    font-size: 32px;
    color: white;
    z-index: 2;
}

/* Pulsierender Ring hinter dem Icon */
.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #007aff;
    animation: pulse 2s infinite;
    z-index: 1;
}

/* 4. Text Content */
.support-content h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #333; /* Oder var(--text-color) falls vorhanden */
}
@media (prefers-color-scheme: dark) {
    .support-content h3 {
        color: #fff;
    }
}

.support-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}
@media (prefers-color-scheme: dark) {
    .support-content p {
        color: #aaa;
    }
}

.support-note {
    display: block;
    font-size: 12px;
    color: #28c840; /* Grün für "Sicher" */
    font-weight: 600;
    margin-bottom: 25px;
    background: rgba(40, 200, 64, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* 5. Buttons */
.support-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-ghost {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}
.btn-ghost:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}
@media (prefers-color-scheme: dark) {
    .btn-ghost {
        border-color: #444;
        color: #ccc;
    }
    .btn-ghost:hover {
        background: #333;
    }
}

.btn-gradient {
    background: linear-gradient(135deg, #007aff, #0056b3);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
    transition: all 0.2s;
    flex: 1.5; /* Breiter als der Abbrechen Button */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.6);
}
.btn-gradient:active {
    transform: translateY(0);
}

/* Animationen */
@keyframes slideUp {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ==========================================
   17. MEDIA QUERIES (Mobile)
   ========================================== */
@media screen and (max-width: 768px) {
    .draggable-window {
        width: 95% !important;
        left: 2.5% !important;
    }
    .container {
        width: 90%;
        padding: 20px;
    }
    #loginPanel {
        width: 90%;
    }

    #chatWindow {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        transform: none !important;
        min-width: 0 !important;
        min-height: 0 !important;
        z-index: 9999 !important; /* Immer ganz oben */
        margin: 0 !important;
    }

    /* Header etwas größer für Finger */
    #chatHeader {
        height: 60px; /* Mehr Platz für Touch */
    }

    /* Fenstertitel Buttons (rot/gelb/grün) ausblenden, braucht man mobil nicht */
    #chatWindow .window-controls {
        display: none;
    }
    /* Stattdessen einen Schließen-Button anzeigen (optional) oder einfach via Menü steuern */

    /* 2. Layout-Logik: Standardmäßig nur Sidebar sichtbar */
    .chat-sidebar {
        width: 100% !important;
        display: flex;
    }

    .chat-main {
        display: none; /* Chat standardmäßig ausblenden */
        width: 100% !important;
    }

    /* 3. Wenn Chat aktiv ist (Klasse wird per JS gesetzt) */
    #chatWindow.mobile-view-chat .chat-sidebar {
        display: none;
    }

    #chatWindow.mobile-view-chat .chat-main {
        display: flex;
    }

    /* Mobile Close Button (X) einblenden */
    .mobile-only-btn {
        display: block !important;
        background: none;
        border: none;
        color: #333;
        padding: 10px; /* Größere Touch-Fläche */
        cursor: pointer;
    }

    /* 4. Zurück-Button sichtbar machen */
    #chatBackBtn {
        display: block !important;
        background: none;
        border: none;
        font-size: 18px;
        color: var(--primary-color);
        padding: 5px 10px 5px 0;
    }

    /* Kleinere Anpassungen für Platz */
    .chat-recipient-header {
        padding: 0 10px;
    }

    /* Overlay (Add Friend) responsive machen */
    .overlay-box {
        width: 90%;
        max-width: 300px;
    }
}

.file-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.file-item:hover .file-actions {
    opacity: 1;
}

.action-btn {
    padding: 6px 10px;
    border-radius: 12px; /* Abgerundete Rechtecke */
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

/* Farbenfrohe Hintergründe (Pastell) */
.btn-copy {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}
.btn-copy:hover {
    background: rgba(0, 122, 255, 0.2);
    transform: scale(1.05);
}

.btn-preview {
    background: rgba(175, 82, 222, 0.1);
    color: #af52de;
}
.btn-preview:hover {
    background: rgba(175, 82, 222, 0.2);
    transform: scale(1.05);
}

.btn-delete {
    background: transparent;
    color: #ff3b30;
    width: 30px; /* Kleiner als die anderen */
}
.btn-delete:hover {
    background: rgba(255, 59, 48, 0.1);
}

/* Dark Mode */
body.dark-mode .btn-copy {
    background: rgba(10, 132, 255, 0.2);
    color: #409cff;
}
body.dark-mode .btn-preview {
    background: rgba(191, 90, 242, 0.2);
    color: #bf5af2;
}
