/* ZEN GLASMORPHISM - Warm Brand Palette */
:root {
    --gradient-primary: var(--primary);
    --zen-ink: #1f1a1d;
    --zen-muted: rgba(69, 16, 103, 0.55);
    --zen-surface: rgba(255, 255, 255, 0.78);
    --zen-glass: rgba(255, 255, 255, 0.6);
    --zen-stroke: rgba(69, 16, 103, 0.12);
    --zen-shadow: 0 20px 40px rgba(69, 16, 103, 0.12);
    --zen-shadow-soft: 0 10px 25px rgba(69, 16, 103, 0.08);
    --zen-radius-lg: 2px;
    --zen-radius-md: 2px;
    --zen-radius-sm: 2px;
    --zen-accent: var(--tertiary);
    --zen-accent-soft: rgba(232, 94, 0, 0.12);
    --zen-highlight: var(--secondary);
    --zen-highlight-soft: rgba(252, 222, 103, 0.25);
    --zen-primary-soft: rgba(69, 16, 103, 0.14);
    --font-body: 'Champagne', 'Times New Roman', serif;
    --font-display: 'Champagne', 'Times New Roman', serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    color: var(--zen-ink);
    background: var(--primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative; /* Für die absoluten Blobs */
}

/* Aurora / Glass Background Effect */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(150px); /* Stärkerer Weichzeichner für sanftere Übergänge */
    z-index: -1;
    opacity: 0.12; /* Deutlich reduzierte Deckkraft für Dezentheit */
    animation: floatBackground 30s infinite alternate ease-in-out;
    pointer-events: none;
}

body::before {
    background: var(--tertiary); /* Orange Akzent */
    top: -15%;
    left: -10%;
}

body::after {
    background: var(--secondary); /* Gold Akzent */
    bottom: -15%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes floatBackground {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, 5%) scale(0.95); }
}

@keyframes drift {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

.container {
    position: relative;
    z-index: 1;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--primary);
}

.navbar-logo {
    height: 120px;
    width: auto;
    display: block;
}

.navbar-title-center {
    font-size: 1.7rem;
    font-family: 'Bogart', 'Times New Roman', serif;
    font-weight: 300;
    color: var(--tertiary);
    letter-spacing: 0.4px;
    justify-self: center;
    text-align: center;
}

#auth-user #userName {
    color: #fff;
}

@media (max-width: 900px) {
    .navbar-title-center {
        font-size: 1.45rem;
    }
}

.auth-required-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.auth-required-logo {
    width: min(420px, 72vw);
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 22px rgba(69, 16, 103, 0.18));
}

.auth-required-button {
    font-size: 1.45rem;
    padding: 16px 46px;
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 28px rgba(69, 16, 103, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-required-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 18px 32px rgba(69, 16, 103, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.auth-required-button:active {
    transform: translateY(0);
    box-shadow: 0 12px 22px rgba(69, 16, 103, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
    .auth-required-logo {
        width: min(280px, 80vw);
    }

    .auth-required-button {
        width: 100%;
        text-align: center;
    }
}
/* ZEN LAYOUT */
.backstage-container {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    height: auto;
    min-height: calc(100vh - 140px);
    background: transparent;
    border-radius: var(--zen-radius-sm);
    box-shadow: none;
    overflow: visible;
    margin-top: 0;
    padding: 14px 0 36px;
    max-width: 100%;
    align-items: start;
}

.main-content {
    background: transparent;
    height: auto;
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* View Container füllen den gesamten Platz aus */
.view-section {
    height: auto;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ZEN GLASS SIDEBAR */
.sidebar {
    background: var(--zen-glass);
    backdrop-filter: blur(28px) saturate(120%);
    border-radius: var(--zen-radius-lg);
    border: 1px solid var(--zen-stroke);
    box-shadow: var(--zen-shadow);
    display: flex;
    flex-direction: column;
    padding: 26px 20px;
    position: sticky;
    top: 28px;
    height: fit-content;
    max-height: calc(100vh - 56px);
}
.sidebar-header {
    padding: 0 8px 16px;
    border-bottom: none;
    font-weight: 400;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 1.08rem;
    letter-spacing: 1.5px;
    font-family: 'Times New Roman', serif;
}
.channel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.channel-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: var(--zen-ink);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    border-radius: var(--zen-radius-sm);
    backdrop-filter: blur(10px);
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    font-family: 'Bogart', 'Times New Roman', serif;
    width: 100%;
    max-width: 100%;
    text-align: left;
    position: relative;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.55);
}
.channel-item i {
    width: 20px;
    min-width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.channel-item__main {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.channel-item.has-subchannels {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 16px 14px;
    border-radius: var(--zen-radius-md);
}
.channel-item:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary);
    border-color: rgba(69, 16, 103, 0.22);
    transform: translateY(-1px);
}
.channel-item.active {
    background: var(--secondary);
    color: var(--primary);
    border-color: rgba(69, 16, 103, 0.35);
    box-shadow: var(--zen-shadow-soft);
    font-weight: 600;
}
.chat-subchannels {
    list-style: none;
    margin: 2px 0 0;
    padding: 0 0 0 22px;
    width: 100%;
    max-width: 100%;
    font-size: 1.08rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
#logoutBtn {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid var(--zen-stroke) !important;
    border-radius: var(--zen-radius-sm) !important;
    color: var(--zen-ink) !important;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 10px 18px !important;
    font-size: 1.08rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
#logoutBtn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(69, 16, 103, 0.25) !important;
    transform: translateY(-1px);
}

/* ZEN GLASS CHAT */
.chat-area {
    display: flex;
    flex-direction: column;
    height: clamp(480px, 70vh, 720px);
    max-height: calc(100vh - 190px);
    background: var(--zen-surface);
    backdrop-filter: blur(24px) saturate(120%);
    border-radius: var(--zen-radius-lg);
    border: 1px solid var(--zen-stroke);
    box-shadow: var(--zen-shadow);
    overflow: hidden;
    font-size: 1.08rem;
}
.chat-header {
    flex-shrink: 0;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(69, 16, 103, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: transparent;
}
.chat-title {
    color: var(--primary);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    font-family: var(--font-display);
}
#chatSubtitle {
    color: var(--zen-muted) !important;
    font-size: 1rem !important;
}
.chat-header-actions {
    flex-wrap: wrap;
    gap: 10px;
}
.chat-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--zen-radius-sm);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--zen-stroke);
    color: var(--zen-muted);
    font-size: 1rem;
}
.chat-topic-btn {
    padding: 8px 14px;
    font-size: 1.08rem;
}
.btn-secondary.chat-topic-btn {
    background: var(--secondary);
    border-color: rgba(69, 16, 103, 0.25);
    color: var(--primary);
    box-shadow: 0 10px 18px rgba(252, 222, 103, 0.25);
}
.btn-secondary.chat-topic-btn:hover {
    background: var(--secondary);
    border-color: rgba(69, 16, 103, 0.35);
    box-shadow: 0 12px 20px rgba(252, 222, 103, 0.3);
}
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: 1px solid rgba(69, 16, 103, 0.45);
    border-radius: var(--zen-radius-sm);
    padding: 10px 18px;
    font-weight: 600;
    font-size: 1.08rem;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: 0 12px 20px rgba(69, 16, 103, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(69, 16, 103, 0.3);
}
.btn-primary.is-saved {
    background: var(--secondary);
    color: var(--primary);
    border-color: rgba(69, 16, 103, 0.2);
    box-shadow: 0 0 0 8px rgba(252, 222, 103, 0.35);
    animation: savedFlash 1.1s ease;
}
.btn-secondary {
    background: rgba(252, 222, 103, 0.22);
    color: var(--primary);
    border: 1px solid rgba(252, 222, 103, 0.55);
    border-radius: var(--zen-radius-sm);
    padding: 10px 18px;
    font-weight: 600;
    font-size: 1.08rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn-secondary:hover {
    background: rgba(252, 222, 103, 0.35);
    border-color: rgba(252, 222, 103, 0.7);
    transform: translateY(-1px);
}

@keyframes savedFlash {
    0% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(252, 222, 103, 0.4); }
    40% { transform: translateY(-2px); box-shadow: 0 0 0 10px rgba(252, 222, 103, 0.25); }
    100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(252, 222, 103, 0); }
}
.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    padding: 0;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    text-decoration: underline;
    margin-top: 8px;
}
.btn-link:hover {
    color: rgba(69, 16, 103, 0.85);
}

.js-member-avatar {
    cursor: pointer;
}
.btn-danger {
    background: #dc2626;
    color: #fff;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--zen-radius-sm);
    padding: 10px 18px;
    font-weight: 600;
    font-size: 1.08rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.25);
}

/* Chat Subchannels Styling - Wertiger ohne Hashtag */
.chat-subchannel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    margin: 4px 0;
    color: var(--zen-muted);
    cursor: pointer;
    border-radius: var(--zen-radius-sm);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    font-size: 1.08rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    background: transparent;
}

.chat-subchannel:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary);
    transform: translateX(2px);
}

.chat-subchannel.active {
    background: var(--zen-primary-soft);
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--zen-shadow-soft);
}

.chat-subchannel.is-loading {
    color: rgba(69, 16, 103, 0.35);
    cursor: default;
    font-style: italic;
}

.chat-subchannel-lock {
    font-size: 1rem;
    color: rgba(69, 16, 103, 0.45);
    margin-left: 8px; /* Adjusted from auto since contentDiv takes space */
}

/* Channel Avatars in Sidebar */
.channel-avatars {
    display: flex;
    align-items: center;
    margin-left: 10px;
    margin-right: 5px;
}

.mini-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-left: -6px; /* Overlap effect */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: var(--primary); /* Fallback */
    color: #fff;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.mini-avatar:first-child {
    margin-left: 0;
}

.mini-avatar.more-count {
    background: var(--secondary);
    color: var(--primary);
    font-weight: bold;
    font-size: 8px;
    border-color: rgba(69, 16, 103, 0.1);
    z-index: 0;
}

.messages-container {
    flex: 1;
    min-height: 0;
    padding: 24px 28px;
    overflow-y: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.message {
    max-width: 72%;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.message.own { align-self: flex-end; align-items: flex-end; }
.message.other { align-self: flex-start; align-items: flex-start; }
.msg-info {
    font-size: 1rem;
    color: var(--zen-muted);
    margin-bottom: 6px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
}
.msg-actions { display: inline-flex; gap: 6px; }
.msg-action {
    background: transparent;
    border: none;
    color: var(--zen-muted);
    cursor: pointer;
    padding: 3px;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.msg-action:hover { color: var(--tertiary); }
.msg-action.msg-edit { color: var(--secondary); }
.msg-action.msg-delete { color: #dc2626; }
.msg-action.msg-edit:hover { color: #f5c542; }
.msg-action.msg-delete:hover { color: #b91c1c; }
.msg-edited {
    font-size: 1rem;
    color: var(--zen-muted);
    background: rgba(69, 16, 103, 0.08);
    border-radius: var(--zen-radius-sm);
    padding: 2px 8px;
}
.message.own .msg-action {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--zen-radius-sm);
    padding: 5px 7px;
    margin-left: 2px;
}
.message.own .msg-action:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.1);
}
.msg-bubble {
    padding: 14px 20px;
    border-radius: var(--zen-radius-md);
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    box-shadow: var(--zen-shadow-soft);
    backdrop-filter: blur(15px);
    font-family: var(--font-body);
}
.message.own .msg-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: var(--zen-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.message.other .msg-bubble {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--zen-stroke);
    color: var(--zen-ink);
    border-bottom-left-radius: var(--zen-radius-sm);
}
.message.is-editing .msg-bubble {
    background: rgba(255, 255, 255, 0.8);
    color: var(--zen-ink);
    border: 1px solid var(--zen-stroke);
}
.msg-edit-input {
    width: 100%;
    min-height: 70px;
    border: 1px solid var(--zen-stroke);
    border-radius: var(--zen-radius-sm);
    padding: 12px;
    font-size: 1rem;
    resize: vertical;
    background: rgba(255, 255, 255, 0.7);
    color: var(--zen-ink);
    backdrop-filter: blur(10px);
    font-family: var(--font-body);
}
.msg-edit-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.msg-edit-actions button {
    border: 1px solid var(--zen-stroke);
    background: rgba(255, 255, 255, 0.7);
    color: var(--zen-ink);
    padding: 8px 16px;
    border-radius: var(--zen-radius-sm);
    cursor: pointer;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.msg-edit-actions button:hover {
    background: rgba(255, 255, 255, 0.9);
}
.msg-edit-actions button.primary {
    background: var(--gradient-primary);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.input-area {
    flex-shrink: 0;
    padding: 16px 24px;
    background: transparent;
    border-top: 1px solid rgba(69, 16, 103, 0.08);
    display: flex;
    gap: 15px;
}
.chat-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--zen-stroke);
    border-radius: var(--zen-radius-sm);
    outline: none;
    transition: all 0.3s ease;
    font-size: 1.12rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--zen-ink);
    backdrop-filter: blur(10px);
    font-family: var(--font-body);
}
.chat-input::placeholder {
    color: var(--zen-muted);
}
.chat-input:focus {
    border-color: rgba(69, 16, 103, 0.35);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(252, 222, 103, 0.25);
}
.send-btn {
    background: var(--gradient-primary);
    color: white;
    border: 1px solid rgba(69, 16, 103, 0.2);
    width: 50px;
    height: 50px;
    border-radius: var(--zen-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 18px rgba(69, 16, 103, 0.25);
}
.send-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 10px 24px rgba(69, 16, 103, 0.35);
}

/* ZEN GLASS CARDS for all views */
#view-dashboard,
#view-projects,
#view-members,
#view-settings,
#view-admin,
#view-recordings {
    background: var(--zen-surface);
    backdrop-filter: blur(24px) saturate(120%);
    border-radius: var(--zen-radius-lg);
    border: 1px solid var(--zen-stroke);
    box-shadow: var(--zen-shadow);
    padding: 40px;
    animation: rise 0.6s ease both;
}

#view-dashboard h2,
#view-projects .chat-title,
#view-members h2,
#view-settings h2 {
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.6px;
}

#view-settings .settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

#view-settings .settings-panel {
    min-width: 0;
}

#view-settings .settings-panel h3 {
    margin-top: 0;
}

#view-settings .settings-avatar-row {
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

#view-settings .settings-avatar {
    width: 120px;
    height: 120px;
    font-size: 1.6rem;
}

#view-settings .settings-avatar-hint {
    font-size: 1rem;
}

#view-recordings {
    padding: clamp(20px, 4vw, 40px);
}

.recordings-window {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 32px);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 22px 45px rgba(69, 16, 103, 0.16);
}

.recordings-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(69, 16, 103, 0.08);
    padding-bottom: 14px;
}

.recordings-header h2 {
    margin: 0;
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.recordings-header .text-muted {
    margin: 0;
    color: var(--zen-muted);
    font-size: 0.95rem;
}

.recordings-body {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 28px);
}

.recordings-panel {
    background: var(--zen-glass);
    border: 1px solid var(--zen-stroke);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--zen-shadow-soft);
}

.recordings-panel__title {
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    margin-bottom: 12px;
}

.recordings-codes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recordings-code {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.recordings-code__button {
    text-align: left;
    border: 1px solid rgba(69, 16, 103, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.recordings-code__button:hover {
    transform: translateY(-1px);
    border-color: rgba(69, 16, 103, 0.25);
    box-shadow: 0 10px 18px rgba(69, 16, 103, 0.12);
}

.recordings-code__value {
    display: block;
    font-weight: 600;
    color: var(--zen-ink);
    font-size: 1rem;
}

.recordings-code__meta {
    display: block;
    font-size: 0.78rem;
    color: var(--zen-muted);
    margin-top: 4px;
}

.recordings-code__actions {
    display: flex;
    gap: 8px;
}

.recordings-btn {
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
}

.recordings-btn--zip {
    color: #23406f;
    border-color: rgba(35, 64, 111, 0.2);
    background: rgba(220, 235, 255, 0.6);
}

.recordings-btn--zip:hover {
    box-shadow: 0 10px 16px rgba(35, 64, 111, 0.18);
    transform: translateY(-1px);
}

.recordings-btn--delete {
    color: #a33434;
    border-color: rgba(163, 52, 52, 0.2);
    background: rgba(255, 229, 229, 0.7);
}

.recordings-btn--delete:hover {
    box-shadow: 0 10px 16px rgba(163, 52, 52, 0.18);
    transform: translateY(-1px);
}

.recordings-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recordings-details__header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    background: rgba(252, 222, 103, 0.18);
    border: 1px solid rgba(252, 222, 103, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
    color: var(--primary);
}

.recordings-details__label {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.recordings-details__code {
    font-size: 0.95rem;
    font-weight: 600;
}

.recordings-script {
    border-bottom: 1px solid rgba(69, 16, 103, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 12px;
}

.recordings-script:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.recordings-script__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--zen-ink);
}

.recordings-script__summary::-webkit-details-marker {
    display: none;
}

.recordings-script__summary::after {
    content: '▾';
    font-size: 0.9rem;
    color: var(--zen-muted);
    transition: transform 0.2s ease;
}

.recordings-script[open] .recordings-script__summary::after {
    transform: rotate(180deg);
}

.recordings-script__title {
    font-weight: 600;
    color: var(--zen-ink);
}

.recordings-script__count {
    font-size: 0.75rem;
    color: var(--zen-muted);
    font-weight: 500;
    white-space: nowrap;
}

.recordings-script__content {
    margin-top: 10px;
}

.recordings-audio {
    margin-bottom: 10px;
}

.recordings-audio__label {
    font-size: 0.75rem;
    color: var(--zen-muted);
    margin-bottom: 4px;
}

.recordings-audio__player {
    width: 100%;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.recordings-message {
    font-size: 0.85rem;
    color: var(--zen-muted);
}

.recordings-message--error {
    color: #a33434;
}

@media (max-width: 900px) {
    .recordings-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .recordings-body {
        grid-template-columns: 1fr;
    }
}

/* Recorder Logo */
@keyframes popInBlur {
    0% { opacity: 0; transform: scale(0.86) translateY(-18px); filter: blur(8px); }
    70% { opacity: 1; transform: scale(1.02) translateY(0); filter: blur(0); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

@keyframes gradientSweep {
    0%, 70% { opacity: 0; transform: translateX(-120%); }
    80% { opacity: 0.6; }
    100% { opacity: 0; transform: translateX(120%); }
}

.logo-entrance {
    position: relative;
    overflow: hidden;
    animation: popInBlur 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.logo-entrance::after {
    display: none;
}

.recorder-logo-block {
    display: inline-flex;
    padding: 10px;
    cursor: pointer;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

#settingsAvatarBtn {
    background: var(--secondary);
    border-color: rgba(69, 16, 103, 0.25);
    color: var(--primary);
    box-shadow: 0 10px 18px rgba(252, 222, 103, 0.25);
}

#settingsAvatarBtn:hover {
    background: var(--secondary);
    border-color: rgba(69, 16, 103, 0.35);
    box-shadow: 0 12px 20px rgba(252, 222, 103, 0.3);
}

@media (max-width: 900px) {
    #view-settings .settings-layout {
        grid-template-columns: 1fr;
    }
}

#membersList {
    align-items: stretch;
}

.members-empty {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--zen-stroke);
    border-radius: var(--zen-radius-md);
    padding: 18px;
    color: var(--zen-muted);
    font-size: 1rem;
}

@keyframes zenFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.member-card__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--primary);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-card__avatar:hover {
    animation: zenFloat 2s ease-in-out infinite;
    box-shadow: 0 8px 20px rgba(69, 16, 103, 0.2);
}

.member-card__initials {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
}


.member-card__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.member-card__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.member-card__name {
    font-weight: 600;
    color: var(--zen-ink);
    font-size: 1rem;
}

.member-card__role {
    font-size: 0.85rem;
    color: var(--zen-muted);
}

.kanban-card.status-progress {
    background: rgba(255, 140, 0, 0.1); /* Vibrant Orange tint */
    border-left-color: #ff8c00; /* DarkOrange - clearly orange */
}

.col-progress .kanban-header {
    color: #ff8c00;
    border-color: #ff8c00;
}

.admin-header h2 i {
    color: var(--tertiary);
}

.admin-form,
.admin-table {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--zen-stroke);
    border-radius: var(--zen-radius-md);
    box-shadow: var(--zen-shadow-soft);
}

.admin-table th {
    background: rgba(69, 16, 103, 0.05);
    color: var(--zen-muted);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.9);
}

.admin-table tbody tr.is-admin {
    background: rgba(69, 16, 103, 0.06);
}

.admin-table tbody tr.is-self {
    background: rgba(252, 222, 103, 0.18);
}

.admin-badge {
    background: var(--gradient-primary);
}

.owner-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #333;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--zen-stroke);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(69, 16, 103, 0.35);
    box-shadow: 0 0 0 3px rgba(252, 222, 103, 0.25);
}

.timeline-v2 {
    background: var(--zen-surface);
    border: 1px solid var(--zen-stroke);
    border-radius: var(--zen-radius-lg);
    box-shadow: var(--zen-shadow);
    padding: 28px;
}

.timeline-v2-header h2 {
    font-family: var(--font-display);
    color: var(--primary);
}

.timeline-v2-header h2 i {
    color: var(--tertiary);
}

.timeline-v2-zoom {
    color: var(--zen-muted);
}

.timeline-v2-zoom input[type="range"] {
    accent-color: var(--secondary);
}

.timeline-v2-toggle {
    background: var(--secondary);
    color: var(--primary);
    border-color: rgba(69, 16, 103, 0.15);
    border-radius: var(--zen-radius-sm);
}

.timeline-v2-legend span {
    color: var(--zen-muted);
}

.timeline-v2-line {
    background: rgba(69, 16, 103, 0.18);
}

.timeline-v2-today::before {
    background: rgba(252, 222, 103, 0.75);
}

.timeline-v2-today span {
    background: var(--secondary);
    color: var(--primary);
}

.tl-card-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--zen-radius-md);
    border: 1px solid var(--zen-stroke);
    box-shadow: var(--zen-shadow-soft);
}

.tl-tag {
    background: rgba(69, 16, 103, 0.08);
    color: var(--zen-muted);
}

.tl-status {
    font-weight: 600;
    letter-spacing: 0.4px;
}

.tl-card.status-planning .tl-status { background: rgba(69, 16, 103, 0.12); color: var(--primary); }
.tl-card.status-progress .tl-status { background: rgba(232, 94, 0, 0.15); color: var(--tertiary); }
.tl-card.status-done .tl-status { background: rgba(252, 222, 103, 0.15); color: #a18e14; }
.tl-card.is-overdue .tl-status { background: rgba(239, 68, 68, 0.18); color: #dc2626; }

.tl-days {
    background: rgba(69, 16, 103, 0.08);
    color: var(--zen-muted);
}

.tl-days.soon { background: rgba(252, 222, 103, 0.35); color: var(--primary); }
.tl-days.today { background: var(--primary); color: #fff; }
.tl-days.overdue { background: #dc2626; color: #fff; }
.tl-days.done { background: rgba(252, 222, 103, 0.18); color: #a18e14; }

.tl-avatars span {
    background: var(--primary);
}

/* Gradient Avatars */
.member-avatar,
.member-initials,
.settings-avatar,
.avatar-small,
.k-member {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    box-shadow: var(--zen-shadow-soft);
    border-radius: var(--zen-radius-sm);
}

/* Glow effect on hover */
.member-avatar::before,
.member-initials::before,
.settings-avatar::before,
.avatar-small::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: var(--zen-radius-sm);
    background: inherit;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.member-avatar:hover::before,
.member-initials:hover::before,
.settings-avatar:hover::before,
.avatar-small:hover::before {
    opacity: 0.7;
}

.member-avatar:hover,
.member-initials:hover,
.settings-avatar:hover,
.avatar-small:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 30px rgba(69, 16, 103, 0.2);
}

/* Avatar Gradient Colors */
[data-user-initials] {
    background: var(--primary);
}

/* Navbar adjustments */
.navbar {
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 24px 24px 12px;
    padding: 10px 28px;
    box-shadow: none;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
}

.logo {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 1.2px;
}

.avatar-small {
    background: var(--primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* Modals with Glasmorphism */
.modal-overlay {
    backdrop-filter: blur(8px);
    background: rgba(31, 26, 29, 0.35);
}

.modal-content {
    background: var(--zen-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--zen-stroke);
    box-shadow: var(--zen-shadow);
}

.modal-header {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--zen-stroke);
}

/* Member Details Modal */
.member-details-modal {
    max-width: 500px;
}

.project-details-modal {
    max-width: 560px;
}

.project-details-status {
    background: rgba(69, 16, 103, 0.12);
    color: var(--primary);
}

.project-details-status.status-progress {
    background: rgba(232, 94, 0, 0.18);
    color: var(--tertiary);
}

.project-details-status.status-done {
    background: rgba(252, 222, 103, 0.35);
    color: var(--primary);
}

.project-details-tag {
    background: rgba(69, 16, 103, 0.12);
    color: var(--primary);
}

.project-details-item__label,
.project-details-members__title {
    color: var(--zen-muted);
}

.project-details-item__value {
    color: var(--zen-ink);
}

.project-details-members {
    border-top: 1px solid var(--zen-stroke);
}

.project-details-member {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--zen-stroke);
    color: var(--zen-ink);
}

.member-details-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.member-details-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(69, 16, 103, 0.2);
}

.member-details-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-details-avatar .member-card__initials {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.member-details-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.member-details-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--zen-ink);
    text-align: center;
}

.member-details-role {
    font-size: 1rem;
    color: var(--zen-muted);
    text-align: center;
    margin-top: -8px;
}

.member-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--zen-stroke);
}

.member-details-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    align-items: start;
}

.member-details-item__label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.member-details-item__value {
    color: var(--zen-ink);
    word-break: break-word;
    font-size: 0.9rem;
}

.member-details-empty {
    color: var(--zen-muted);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.modal-footer {
    background: rgba(255, 255, 255, 0.75);
    border-top: 1px solid var(--zen-stroke);
}

.close-btn {
    color: var(--zen-muted);
}

/* Kanban adjustments */
.kanban-board {
    background: transparent;
    padding: 24px;
}

.kanban-column {
    background: var(--zen-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--zen-stroke);
    border-radius: var(--zen-radius-md);
    box-shadow: var(--zen-shadow-soft);
}

.kanban-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(69, 16, 103, 0.08);
    border-radius: var(--zen-radius-md);
}

.kanban-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--zen-shadow-soft);
}

.kanban-column.drag-over {
    background: rgba(252, 222, 103, 0.2);
    border-color: rgba(69, 16, 103, 0.35);
}

.col-planning .kanban-header { color: var(--primary); border-color: var(--primary); }
.col-progress .kanban-header { color: #ff8c00; border-color: #ff8c00; }

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.col-done .kanban-header { color: #a18e14; border-color: var(--secondary); }

.kanban-card.status-planning {
    background: rgba(69, 16, 103, 0.06);
    border-left-color: var(--primary);
}
.kanban-card.status-progress {
    background: rgba(255, 140, 0, 0.1);
    border-left-color: #ff8c00;
}
.kanban-card.status-done {
    background: rgba(252, 222, 103, 0.12);
    border-left-color: var(--secondary);
}

/* Chat topic panels */
.chat-topic-panel {
    background: var(--zen-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--zen-stroke);
    border-radius: var(--zen-radius-md);
    padding: 12px 20px;
}

.chat-topic-input {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--zen-stroke);
    font-family: var(--font-body);
    font-size: 1.05rem;
}

.chat-topic-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(69, 16, 103, 0.35);
    box-shadow: 0 0 0 3px rgba(252, 222, 103, 0.25);
}
.chat-topic-create,
.chat-topic-cancel,
.chat-topic-delete {
    font-size: 1.05rem;
    padding: 8px 14px;
}
.chat-topic-label {
    font-size: 1rem;
}
.chat-topic-hint {
    font-size: 1rem;
}
.chat-topic-error {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .backstage-container {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 10px 0 28px;
    }
    .sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }
    .navbar {
        margin: 14px 14px 7px;
        border-radius: var(--zen-radius-md);
    }
}

/* TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: var(--zen-surface);
    backdrop-filter: blur(15px);
    border: 1px solid var(--zen-stroke);
    padding: 15px 25px;
    border-radius: var(--zen-radius-md);
    box-shadow: var(--zen-shadow-soft);
    color: var(--zen-ink);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto;
    font-family: var(--font-body);
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left: 4px solid var(--primary); }
.toast.error { border-left: 4px solid #dc3545; }
.toast.info { border-left: 4px solid #0dcaf0; }

.toast i { font-size: 1.1rem; }
.toast.success i { color: var(--primary); }
.toast.error i { color: #dc3545; }
.toast.info i { color: #0dcaf0; }

/* BENTO GRID DASHBOARD */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.bento-card {
    background: var(--zen-surface);
    backdrop-filter: blur(15px);
    border: 1px solid var(--zen-stroke);
    border-radius: var(--zen-radius-md);
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

.bento-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--zen-shadow-soft);
}

.bento-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--zen-radius-sm);
    background: rgba(252, 222, 103, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: var(--zen-shadow-soft);
}

.bento-value {
    font-size: 2.5rem;
    font-weight: 300;
    font-family: var(--font-display);
    color: var(--primary);
    line-height: 1;
}

.bento-label {
    font-size: 1rem;
    color: var(--zen-muted);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* FILES VIEW READABILITY FIXES */
#view-files .chat-title, 
#view-files .chat-title i,
#view-files .files-error,
#view-files .files-error div,
#view-files .files-error i,
#view-files .files-loading,
#view-files .files-loading div,
#view-files .files-loading i,
#view-files .files-empty-state,
#view-files .files-empty-text,
#view-files .files-empty-subtext,
#view-files .breadcrumb-separator {
    color: #E85E00 !important; /* Direktes Aicappella Orange */
}

/* Zusätzlicher Kontrast durch leichten Schatten, falls der Hintergrund sehr dunkel ist */
#view-files .chat-title, 
#view-files .files-error div {
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* PENDING USERS APPROVAL SYSTEM */
.admin-pending-section {
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease;
}

.admin-pending-section h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-pending-section h3 i {
    color: var(--tertiary);
}

.pending-users-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pending-user-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--zen-stroke);
    border-radius: var(--zen-radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    box-shadow: var(--zen-shadow-soft);
    transition: all 0.3s ease;
}

.pending-user-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: var(--zen-shadow);
}

.pending-user-info {
    flex: 1;
}

.pending-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pending-user-header strong {
    color: var(--zen-ink);
    font-size: 1.15rem;
}

.pending-date {
    color: var(--zen-muted);
    font-size: 0.9rem;
}

.pending-user-email {
    color: var(--zen-muted);
    margin-bottom: 10px;
}

.pending-user-role {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--zen-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.role-badge.role-team {
    background: rgba(69, 16, 103, 0.12);
    color: var(--primary);
}

.role-badge.role-speaker {
    background: rgba(252, 222, 103, 0.25);
    color: #a18e14;
}

.role-badge.role-admin {
    background: var(--gradient-primary);
    color: white;
}

.admin-warning {
    color: var(--tertiary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-approval-list {
    margin-top: 15px;
    padding: 12px;
    background: rgba(69, 16, 103, 0.04);
    border-radius: var(--zen-radius-sm);
}

.approval-title {
    font-size: 0.9rem;
    color: var(--zen-muted);
    margin-bottom: 8px;
}

.approval-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.approval-item {
    padding: 4px 8px;
    border-radius: var(--zen-radius-sm);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.approval-item.approved {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.approval-item.pending {
    background: rgba(69, 16, 103, 0.08);
    color: var(--zen-muted);
}

.pending-user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-approve,
.btn-reject {
    padding: 8px 15px;
    border-radius: var(--zen-radius-sm);
    border: 1px solid;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-approve {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-approve:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

.btn-approved-disabled {
    padding: 8px 15px;
    border-radius: var(--zen-radius-sm);
    border: 1px solid rgba(69, 16, 103, 0.15);
    background: rgba(69, 16, 103, 0.08);
    color: var(--zen-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-reject {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-reject:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.admin-error {
    padding: 20px;
    text-align: center;
    color: #dc2626;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--zen-radius-md);
}

.admin-empty {
    padding: 40px;
    text-align: center;
    color: var(--zen-muted);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--zen-stroke);
    border-radius: var(--zen-radius-md);
}

/* Remove button for create user form */
.admin-only #addUserBtn {
    display: none !important;
}

/* Chat Topic Selector */
.chat-topic-select {
    padding: 8px 14px;
    font-size: 1.08rem;
    font-family: var(--font-body);
    border-radius: var(--zen-radius-sm);
    border: 1px solid rgba(69, 16, 103, 0.25);
    background: white;
    color: var(--primary);
    cursor: pointer;
    margin-right: 10px;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    min-width: 150px;
    max-width: 300px;
}

.chat-topic-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(69, 16, 103, 0.1);
}
