/* ============================================
   BZPChat - Design System
   Teams-inspired dark theme
   ============================================ */

/* ── CSS Custom Properties ────────────────── */
:root {
    /* Primary colors */
    --gc-primary: #6264A7;
    --gc-primary-light: #7B7FBF;
    --gc-primary-dark: #4B4D8F;
    --gc-primary-glow: rgba(98, 100, 167, 0.3);

    /* Accent colors */
    --gc-accent: #8B5CF6;
    --gc-accent-light: #A78BFA;
    --gc-success: #10B981;
    --gc-warning: #F59E0B;
    --gc-danger: #EF4444;
    --gc-info: #3B82F6;

    /* Background tiers */
    --gc-bg-deepest: #1a1a2e;
    --gc-bg-deep: #1e1e3a;
    --gc-bg-base: #242448;
    --gc-bg-surface: #2a2a50;
    --gc-bg-elevated: #32325e;
    --gc-bg-hover: #3a3a6a;
    --gc-bg-active: #44447a;

    /* Text */
    --gc-text-primary: #e8e8f0;
    --gc-text-secondary: #a0a0c0;
    --gc-text-muted: #6e6e90;
    --gc-text-bright: #ffffff;

    /* Borders */
    --gc-border: rgba(255, 255, 255, 0.08);
    --gc-border-hover: rgba(255, 255, 255, 0.15);
    --gc-border-active: rgba(98, 100, 167, 0.5);

    /* Glassmorphism */
    --gc-glass-bg: rgba(36, 36, 72, 0.85);
    --gc-glass-border: rgba(255, 255, 255, 0.1);
    --gc-glass-blur: 20px;

    /* Shadows */
    --gc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --gc-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --gc-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Sizes */
    --gc-sidebar-width: 300px;
    --gc-members-width: 260px;
    --gc-header-height: 60px;
    --gc-input-height: 60px;

    /* Transitions */
    --gc-transition: 0.2s ease;
    --gc-transition-slow: 0.35s ease;

    /* Typography */
    --gc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gc-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Base Resets ──────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: var(--gc-font);
    background: var(--gc-bg-deepest);
    color: var(--gc-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gc-text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gc-text-secondary);
}

/* ── Auth Pages ──────────────────────────── */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, var(--gc-bg-deepest) 0%, #16213e 50%, var(--gc-bg-deep) 100%);
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(98, 100, 167, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: var(--gc-glass-bg);
    backdrop-filter: blur(var(--gc-glass-blur));
    -webkit-backdrop-filter: blur(var(--gc-glass-blur));
    border: 1px solid var(--gc-glass-border);
    border-radius: 20px;
    box-shadow: var(--gc-shadow-lg), 0 0 80px rgba(98, 100, 167, 0.08);
    animation: authFadeIn 0.6s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--gc-primary), var(--gc-accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 4px 20px var(--gc-primary-glow);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 4px 20px var(--gc-primary-glow); }
    50% { box-shadow: 0 4px 30px rgba(98, 100, 167, 0.45); }
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gc-text-bright);
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--gc-text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.auth-form .form-control {
    background: var(--gc-bg-elevated);
    border: 1px solid var(--gc-border);
    color: var(--gc-text-primary);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    transition: var(--gc-transition);
}

.auth-form .form-control:focus {
    background: var(--gc-bg-surface);
    border-color: var(--gc-primary);
    box-shadow: 0 0 0 3px var(--gc-primary-glow);
    color: var(--gc-text-bright);
}

.auth-form .form-floating label {
    color: var(--gc-text-muted);
}

.auth-form .form-check-input {
    background-color: var(--gc-bg-elevated);
    border-color: var(--gc-border);
}

.auth-form .form-check-input:checked {
    background-color: var(--gc-primary);
    border-color: var(--gc-primary);
}

.auth-form .form-check-label {
    color: var(--gc-text-secondary);
    font-size: 0.875rem;
}

.btn-auth {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--gc-primary), var(--gc-accent));
    border: none;
    color: white;
    transition: var(--gc-transition);
    position: relative;
    overflow: hidden;
}

.btn-auth::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
    opacity: 0;
    transition: var(--gc-transition);
}

.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--gc-primary-glow);
    color: white;
}

.btn-auth:hover::after {
    opacity: 1;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gc-text-secondary);
    font-size: 0.875rem;
}

.auth-link {
    color: var(--gc-primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--gc-transition);
}

.auth-link:hover {
    color: var(--gc-accent-light);
    text-decoration: underline;
}

/* ── Chat App Layout ─────────────────────── */
.chat-app {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--gc-bg-deepest);
}

/* ── Sidebar ─────────────────────────────── */
.chat-sidebar {
    width: var(--gc-sidebar-width);
    min-width: var(--gc-sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gc-bg-deep);
    border-right: 1px solid var(--gc-border);
    transition: transform var(--gc-transition-slow);
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gc-border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-size: 1.5rem;
    color: var(--gc-primary-light);
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gc-primary-light), var(--gc-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sidebar Profile */
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--gc-border);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gc-text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-status {
    display: block;
    font-size: 0.75rem;
    color: var(--gc-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Search */
.sidebar-search {
    padding: 0.75rem 1.25rem;
    position: relative;
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gc-text-muted);
    font-size: 0.85rem;
}

.sidebar-search .form-control {
    background: var(--gc-bg-surface);
    border: 1px solid var(--gc-border);
    color: var(--gc-text-primary);
    border-radius: 10px;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    font-size: 0.85rem;
    transition: var(--gc-transition);
}

.sidebar-search .form-control:focus {
    background: var(--gc-bg-elevated);
    border-color: var(--gc-primary);
    box-shadow: 0 0 0 3px rgba(98, 100, 167, 0.15);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 1.25rem;
    right: 1.25rem;
    background: var(--gc-bg-elevated);
    border: 1px solid var(--gc-border);
    border-radius: 10px;
    box-shadow: var(--gc-shadow-md);
    max-height: 300px;
    overflow-y: auto;
    z-index: 200;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: var(--gc-transition);
    text-decoration: none;
    color: var(--gc-text-primary);
}

.search-result-item:hover {
    background: var(--gc-bg-hover);
    color: var(--gc-text-bright);
}

/* Sidebar Sections */
.sidebar-section {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gc-text-muted);
    cursor: pointer;
    user-select: none;
    transition: var(--gc-transition);
}

.section-header:hover {
    color: var(--gc-text-secondary);
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.section-chevron {
    transition: transform var(--gc-transition);
    font-size: 0.65rem;
}

.collapsed .section-chevron {
    transform: rotate(-90deg);
}

.nav-list {
    padding: 0 0.5rem 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--gc-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--gc-transition);
    cursor: pointer;
    position: relative;
}

.nav-item:hover {
    background: var(--gc-bg-hover);
    color: var(--gc-text-bright);
}

.nav-item.active {
    background: var(--gc-bg-active);
    color: var(--gc-text-bright);
    font-weight: 500;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--gc-primary);
    border-radius: 0 3px 3px 0;
}

.channel-icon {
    font-size: 0.8rem;
    color: var(--gc-text-muted);
    width: 20px;
    text-align: center;
}

.channel-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    background: var(--gc-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    from { transform: scale(0); }
    50% { transform: scale(1.2); }
    to { transform: scale(1); }
}

.sidebar-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--gc-border);
}

/* ── Buttons ─────────────────────────────── */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--gc-text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--gc-transition);
    font-size: 1rem;
    padding: 0;
}

.btn-icon:hover {
    background: var(--gc-bg-hover);
    color: var(--gc-text-bright);
}

.btn-icon-sm {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

/* ── User Avatars ────────────────────────── */
.user-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gc-primary), var(--gc-accent));
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.user-avatar-xs { width: 24px; height: 24px; font-size: 0.55rem; }
.user-avatar-sm { width: 32px; height: 32px; font-size: 0.7rem; }
.user-avatar-md { width: 40px; height: 40px; font-size: 0.8rem; }
.user-avatar-lg { width: 48px; height: 48px; font-size: 1rem; }

.avatar-initials {
    line-height: 1;
    letter-spacing: 0.02em;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--gc-bg-deep);
}

.user-avatar-sm .status-dot { width: 8px; height: 8px; }
.user-avatar-xs .status-dot { width: 6px; height: 6px; }

.status-online {
    background: var(--gc-success);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.status-offline {
    background: var(--gc-text-muted);
}

.status-away {
    background: var(--gc-warning);
}

/* ── Main Chat Area ──────────────────────── */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--gc-bg-base);
}

/* Welcome Screen */
.welcome-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-content {
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

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

.welcome-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--gc-primary), var(--gc-accent));
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 40px var(--gc-primary-glow);
    animation: welcomePulse 3s ease-in-out infinite;
}

@keyframes welcomePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.welcome-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gc-text-bright);
    margin-bottom: 0.5rem;
}

.welcome-content p {
    color: var(--gc-text-secondary);
    margin-bottom: 1.5rem;
}

.welcome-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* Chat Area */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    height: var(--gc-header-height);
    min-height: var(--gc-header-height);
    border-bottom: 1px solid var(--gc-border);
    background: var(--gc-glass-bg);
    backdrop-filter: blur(10px);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.chat-header-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gc-text-bright);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-status {
    font-size: 0.75rem;
    color: var(--gc-text-muted);
}

.chat-header-actions {
    display: flex;
    gap: 0.25rem;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
}

.messages-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: var(--gc-text-muted);
    font-size: 0.85rem;
}

/* Date Divider */
.date-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--gc-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.date-divider::before,
.date-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gc-border);
}

/* Message Bubbles */
.message-group {
    margin-bottom: 0.25rem;
}

.message-group.first-in-group {
    margin-top: 0.75rem;
}

/* Own Messages Alignment */
.message-group.message-own .message-wrapper {
    flex-direction: row-reverse;
    text-align: right;
}

.message-group.message-own .message-content-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.message-group.message-own .message-header {
    flex-direction: row-reverse;
}

.message-group.message-own .message-meta {
    justify-content: flex-end;
}

.message-wrapper {
    display: flex;
    gap: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: background var(--gc-transition);
    position: relative;
}

.message-wrapper:hover {
    background: rgba(255, 255, 255, 0.03);
}

.message-avatar-col {
    width: 40px;
    flex-shrink: 0;
}

.message-content-col {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.message-sender {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gc-text-bright);
}

.message-time {
    font-size: 0.7rem;
    color: var(--gc-text-muted);
}

.message-edited {
    font-size: 0.65rem;
    color: var(--gc-text-muted);
    font-style: italic;
}

.message-body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gc-text-primary);
    word-break: break-word;
    white-space: pre-wrap;
}

.message-deleted .message-body {
    color: var(--gc-text-muted);
    font-style: italic;
}

.chat-image-attachment {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 0.5rem;
    object-fit: contain;
    background-color: var(--gc-bg-elevated);
    border: 1px solid var(--gc-border);
}

.chat-file-attachment {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--gc-bg-elevated);
    border: 1px solid var(--gc-border);
    border-radius: 8px;
    color: var(--gc-text-primary);
    text-decoration: none;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    transition: var(--gc-transition);
}

.chat-file-attachment:hover {
    background: var(--gc-bg-hover);
    color: var(--gc-text-bright);
    border-color: var(--gc-primary-light);
}

.message-reply {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0.375rem;
    background: var(--gc-bg-elevated);
    border-left: 3px solid var(--gc-primary);
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
    color: var(--gc-text-secondary);
    max-width: 400px;
}

.message-reply-sender {
    font-weight: 600;
    color: var(--gc-primary-light);
}

.message-reply-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.message-read-status {
    font-size: 0.7rem;
    color: var(--gc-text-muted);
}

.message-read-status .fa-check-double {
    color: var(--gc-info);
}

/* Message Actions */
.message-actions {
    position: absolute;
    top: -8px;
    right: 8px;
    display: none;
    gap: 0.125rem;
    background: var(--gc-bg-elevated);
    border: 1px solid var(--gc-border);
    border-radius: 6px;
    padding: 0.125rem;
    box-shadow: var(--gc-shadow-sm);
}

.message-wrapper:hover .message-actions {
    display: flex;
}

.message-actions .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
}

/* System Messages */
.system-message {
    text-align: center;
    padding: 0.5rem;
    color: var(--gc-text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

/* ── Typing Indicator ────────────────────── */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1.5rem;
    font-size: 0.8rem;
    color: var(--gc-text-muted);
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--gc-text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* ── Reply Preview ───────────────────────── */
.reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.25rem;
    background: var(--gc-bg-surface);
    border-top: 1px solid var(--gc-border);
    font-size: 0.8rem;
    color: var(--gc-text-secondary);
    animation: slideUp 0.2s ease;
}

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

.reply-preview-content {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Message Input ───────────────────────── */
.chat-input-area {
    position: relative;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--gc-border);
    background: var(--gc-bg-base);
}

/* Drag & Drop Overlay */
.drag-drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(98, 100, 167, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 12px;
    margin: 0.75rem 1.25rem;
    animation: fadeIn 0.2s ease;
}

.drag-drop-overlay.drag-over {
    background: rgba(139, 92, 246, 0.95);
    transform: scale(1.02);
}

.drag-drop-content {
    text-align: center;
    pointer-events: none;
}

.drag-drop-icon {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
    animation: bounce 1s ease infinite;
}

.drag-drop-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    background: var(--gc-bg-surface);
    border: 1px solid var(--gc-border);
    border-radius: 12px;
    padding: 0.375rem;
    transition: var(--gc-transition);
}

.chat-input-wrapper.drag-active {
    border-color: var(--gc-primary);
    box-shadow: 0 0 0 3px rgba(98, 100, 167, 0.3);
}

.chat-input-wrapper:focus-within {
    border-color: var(--gc-primary);
    box-shadow: 0 0 0 3px rgba(98, 100, 167, 0.15);
}

.chat-input-wrapper .form-control {
    background: transparent;
    border: none;
    color: var(--gc-text-primary);
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    resize: none;
    max-height: 150px;
    line-height: 1.5;
}

.chat-input-wrapper .form-control:focus {
    box-shadow: none;
    outline: none;
}

.chat-input-wrapper .form-control::placeholder {
    color: var(--gc-text-muted);
}

.btn-send {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(135deg, var(--gc-primary), var(--gc-accent));
    border: none;
    color: white;
    transition: var(--gc-transition);
    flex-shrink: 0;
}

.btn-send:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 12px var(--gc-primary-glow);
    color: white;
}

/* ── Members Panel ───────────────────────── */
.members-panel {
    width: var(--gc-members-width);
    min-width: var(--gc-members-width);
    border-left: 1px solid var(--gc-border);
    background: var(--gc-bg-deep);
    display: flex;
    flex-direction: column;
    animation: panelSlideIn 0.3s ease;
}

@keyframes panelSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.members-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gc-border);
}

.members-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--gc-text-bright);
}

.members-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: var(--gc-transition);
    cursor: pointer;
}

.member-item:hover {
    background: var(--gc-bg-hover);
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gc-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-role {
    font-size: 0.7rem;
    color: var(--gc-primary-light);
    font-weight: 500;
}

.member-status-text {
    font-size: 0.7rem;
    color: var(--gc-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Modals ──────────────────────────────── */
.modal-content.bg-dark {
    background: var(--gc-bg-surface) !important;
    border: 1px solid var(--gc-border);
    border-radius: 16px;
    box-shadow: var(--gc-shadow-lg);
}

.modal-content.bg-dark .form-control {
    background: var(--gc-bg-elevated);
    border: 1px solid var(--gc-border);
    color: var(--gc-text-primary);
    border-radius: 10px;
}

.modal-content.bg-dark .form-control:focus {
    background: var(--gc-bg-base);
    border-color: var(--gc-primary);
    box-shadow: 0 0 0 3px var(--gc-primary-glow);
    color: var(--gc-text-bright);
}

.modal-content.bg-dark .form-label {
    color: var(--gc-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-content.bg-dark .form-check-label {
    color: var(--gc-text-secondary);
}

.modal-content.bg-dark .modal-title {
    color: var(--gc-text-bright);
}

/* Browse Channels Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.browse-channel-card {
    background: var(--gc-bg-elevated);
    border: 1px solid var(--gc-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: var(--gc-transition);
    cursor: pointer;
}

.browse-channel-card:hover {
    border-color: var(--gc-primary);
    background: var(--gc-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--gc-shadow-md);
}

.browse-channel-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gc-text-bright);
    margin-bottom: 0.375rem;
}

.browse-channel-desc {
    font-size: 0.8rem;
    color: var(--gc-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.browse-channel-join {
    margin-top: 0.75rem;
}

/* ── Toasts ──────────────────────────────── */
.toast {
    background: var(--gc-bg-elevated) !important;
    border: 1px solid var(--gc-border);
    border-radius: 12px !important;
    box-shadow: var(--gc-shadow-md);
    color: var(--gc-text-primary);
}

.toast-header {
    background: var(--gc-bg-surface) !important;
    color: var(--gc-text-bright) !important;
    border-bottom: 1px solid var(--gc-border);
}

/* ── Bootstrap Overrides ─────────────────── */
.btn-primary {
    background: linear-gradient(135deg, var(--gc-primary), var(--gc-primary-dark));
    border: none;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--gc-transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gc-primary-light), var(--gc-primary));
    box-shadow: 0 2px 12px var(--gc-primary-glow);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--gc-primary-light);
    border-color: var(--gc-primary);
    border-radius: 10px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background: var(--gc-primary);
    border-color: var(--gc-primary);
    color: white;
}

.btn-secondary {
    background: var(--gc-bg-elevated);
    border: 1px solid var(--gc-border);
    color: var(--gc-text-secondary);
    border-radius: 10px;
}

.btn-secondary:hover {
    background: var(--gc-bg-hover);
    border-color: var(--gc-border-hover);
    color: var(--gc-text-bright);
}

.dropdown-menu-dark {
    background: var(--gc-bg-elevated) !important;
    border: 1px solid var(--gc-border);
    border-radius: 10px;
    box-shadow: var(--gc-shadow-md);
    padding: 0.375rem;
}

.dropdown-menu-dark .dropdown-item {
    border-radius: 6px;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    color: var(--gc-text-secondary);
}

.dropdown-menu-dark .dropdown-item:hover {
    background: var(--gc-bg-hover);
    color: var(--gc-text-bright);
}

.dropdown-menu-dark .dropdown-divider {
    border-color: var(--gc-border);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    font-size: 0.85rem;
}

/* ── Emoji Picker (simple) ───────────────── */
.emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--gc-bg-elevated);
    border: 1px solid var(--gc-border);
    border-radius: 12px;
    box-shadow: var(--gc-shadow-md);
    padding: 0.75rem;
    width: 300px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 300;
    animation: slideUp 0.2s ease;
}

.emoji-picker span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--gc-transition);
}

.emoji-picker span:hover {
    background: var(--gc-bg-hover);
    transform: scale(1.2);
}

/* ── Mobile Backdrop Overlay ────────────── */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--gc-transition), visibility var(--gc-transition);
}

.mobile-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 800px) {
    .chat-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: var(--gc-shadow-lg);
        z-index: 1050;
        transition: transform var(--gc-transition-slow);
    }

    .chat-sidebar.show {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex !important;
    }

    .members-panel {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        transform: translateX(100%);
        box-shadow: var(--gc-shadow-lg);
        z-index: 1050;
        transition: transform var(--gc-transition-slow);
    }

    .members-panel[style*="display: flex"],
    .members-panel[style*="display:flex"],
    .members-panel:not([style*="display: none"]):not([style*="display:none"]) {
        display: flex !important;
        transform: translateX(0);
    }

    /* Ajustar header do chat para mobile */
    .chat-header {
        padding: 0 0.75rem;
    }

    .chat-header-name {
        font-size: 0.95rem;
    }

    /* Ajustar área de mensagens para mobile */
    .chat-messages {
        padding: 0.75rem;
    }

    /* Ajustar input para mobile */
    .chat-input-area {
        padding: 0.5rem 0.75rem;
    }

    .chat-input-wrapper {
        padding: 0.25rem;
    }

    .chat-input-wrapper .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.5rem;
    }

    /* Ajustar botões para touch */
    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .btn-icon-sm {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    /* Message actions mais fáceis de tocar */
    .message-actions {
        top: -12px;
    }

    .message-actions .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    /* Welcome screen mobile */
    .welcome-content {
        padding: 0 1rem;
    }

    .welcome-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .welcome-content h2 {
        font-size: 1.5rem;
    }

    .welcome-actions {
        flex-wrap: wrap;
    }

    .welcome-actions .btn {
        min-width: 120px;
    }

    /* Emoji picker mobile */
    .emoji-picker {
        width: calc(100vw - 2rem);
        max-width: 320px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Modal ajustes mobile */
    .modal-dialog {
        margin: 0.5rem;
    }

    .channels-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --gc-sidebar-width: 280px;
    }

    .auth-card {
        margin: 1rem;
        padding: 1.5rem;
    }

    .sidebar-profile {
        padding: 0.5rem 0.75rem;
    }

    .profile-name {
        font-size: 0.85rem;
    }

    .sidebar-search {
        padding: 0.5rem 0.75rem;
    }

    .section-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    .nav-list {
        padding: 0 0.25rem 0.5rem;
    }

    .nav-item {
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
    }

    /* Teclado virtual - ajustar input */
    .chat-input-area {
        position: relative;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }

    /* Mensagens mais compactas */
    .message-wrapper {
        gap: 0.5rem;
    }

    .message-avatar-col {
        width: 32px;
    }

    .message-sender {
        font-size: 0.85rem;
    }

    .message-body {
        font-size: 0.875rem;
    }

    /* Browse channel cards */
    .browse-channel-card {
        padding: 1rem;
    }

    /* Toasts mobile */
    .toast-container {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .toast {
        max-width: 100%;
    }
}

/* Landscape phone */
@media (max-width: 800px) and (orientation: landscape) {
    .chat-header {
        height: 48px;
        min-height: 48px;
    }

    .sidebar-header {
        padding: 0.75rem;
    }

    .sidebar-profile {
        padding: 0.5rem 0.75rem;
    }

    .welcome-icon {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    .chat-sidebar {
        padding-top: max(0px, env(safe-area-inset-top));
    }

    .chat-header {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }
}

/* ── Manage Members Modal ───────────────── */
.manage-members-list {
    max-height: 400px;
    overflow-y: auto;
}

.manage-member-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    gap: 0.75rem;
    border-radius: 8px;
    background: var(--gc-bg-surface);
    margin-bottom: 0.5rem;
    transition: background 0.2s;
}

.manage-member-item:hover {
    background: var(--gc-bg-hover);
}

.manage-member-info {
    flex: 1;
    min-width: 0;
}

.manage-member-name {
    font-weight: 500;
    color: var(--gc-text-primary);
    margin-bottom: 0.125rem;
}

.manage-member-role {
    font-size: 0.75rem;
    color: var(--gc-primary-light);
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--gc-primary-glow);
    border-radius: 4px;
}

.manage-member-creator {
    font-size: 0.75rem;
    color: var(--gc-warning);
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 4px;
}

.manage-member-actions {
    display: flex;
    gap: 0.5rem;
}

/* Add member search results - positioned within modal */
#manageMembersModal .modal-body {
    position: relative;
    overflow: visible;
}

#addMemberResults {
    position: relative;
    background: var(--gc-bg-surface);
    border: 1px solid var(--gc-border);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--gc-shadow-md);
    z-index: 10;
}

/* ── Mention System ──────────────────────── */

/* Mention Autocomplete Dropdown */
.mention-autocomplete {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--gc-bg-elevated);
    border: 1px solid var(--gc-border);
    border-radius: 12px;
    box-shadow: var(--gc-shadow-lg);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    animation: slideUp 0.2s ease-out;
}

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

.mention-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--gc-border);
}

.mention-autocomplete-item:last-child {
    border-bottom: none;
}

.mention-autocomplete-item:hover,
.mention-autocomplete-item.selected {
    background: var(--gc-bg-hover);
}

.mention-autocomplete-item.selected {
    border-left: 3px solid var(--gc-primary);
}

.mention-autocomplete-name {
    font-weight: 500;
    color: var(--gc-text-primary);
}

/* Mentions in Messages */
.mention {
    display: inline;
    padding: 0.125rem 0.375rem;
    background: var(--gc-primary-glow);
    color: var(--gc-primary-light);
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mention:hover {
    background: rgba(98, 100, 167, 0.5);
    color: var(--gc-text-bright);
}

.mention-me {
    background: rgba(245, 158, 11, 0.25);
    color: var(--gc-warning);
    font-weight: 600;
}

.mention-me:hover {
    background: rgba(245, 158, 11, 0.4);
}

/* Message with mention highlight */
.message-has-mention {
    position: relative;
}

.message-has-mention::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gc-warning);
    border-radius: 2px;
    opacity: 0.8;
}

.message-has-mention .message-wrapper {
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid var(--gc-warning);
    padding-left: 0.75rem;
}

/* Unread badge with mention */
.unread-badge-mention {
    background: linear-gradient(135deg, var(--gc-warning), #f97316) !important;
    font-weight: 600;
    animation: mentionPulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

@keyframes mentionPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
    }
}

/* Mobile adjustments for mentions */
@media (max-width: 768px) {
    .mention-autocomplete {
        max-height: 200px;
    }

    .mention {
        padding: 0.15rem 0.4rem;
        font-size: 0.9rem;
    }
}

/* ── Forward Message Modal ─────────────────── */

.forward-destinations-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.forward-destination-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.forward-destination-item:hover {
    background: var(--gc-bg-hover);
    border-color: var(--gc-border-hover);
}

.forward-destination-item:active {
    background: var(--gc-bg-active);
    transform: scale(0.98);
}

.channel-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gc-bg-surface);
    color: var(--gc-text-muted);
    font-size: 0.9rem;
}

#forwardMessagePreview {
    max-height: 150px;
    overflow-y: auto;
    word-break: break-word;
}

#forwardMessagePreview img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 6px;
}
    border-radius: 8px;
    border: 1px solid var(--gc-border);
    overflow-y: auto;
    z-index: 1;
    box-shadow: var(--gc-shadow-md);
}

#addMemberResults .search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

#addMemberResults .search-result-item:hover {
    background: var(--gc-bg-hover);
}
    .chat-input-area {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }
}

/* ── Utility Animations ──────────────────── */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in-left {
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

/* Admin Panel Layout */
.admin-panel {
    height: 100vh;
    display: flex;
}

.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Admin List Container */
.admin-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--gc-bg-deepest);
}

/* Admin Users Grid */
.admin-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    padding: 0.5rem;
}

.admin-user-card {
    background: var(--gc-bg-surface);
    border: 1px solid var(--gc-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: var(--gc-transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-user-card:hover {
    background: var(--gc-bg-elevated);
    border-color: var(--gc-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--gc-shadow-md);
}

.admin-user-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user-info {
    flex: 1;
    min-width: 0;
}

.admin-user-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gc-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-user-username {
    font-size: 0.875rem;
    color: var(--gc-text-muted);
    margin: 0.25rem 0 0 0;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--gc-accent);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.admin-user-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gc-border);
}

.admin-user-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gc-text-secondary);
}

.admin-user-detail i {
    width: 16px;
    text-align: center;
    color: var(--gc-text-muted);
}

.admin-user-card-footer {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gc-border);
}

/* Admin Conversations List */
.admin-conversations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
}

.admin-conversation-card {
    background: var(--gc-bg-surface);
    border: 1px solid var(--gc-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: var(--gc-transition);
}

.admin-conversation-card:hover {
    background: var(--gc-bg-elevated);
    border-color: var(--gc-border-hover);
    box-shadow: var(--gc-shadow-sm);
}

.admin-conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.conversation-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--gc-bg-elevated);
    border: 1px solid var(--gc-border);
    border-radius: 8px;
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--gc-text-secondary);
}

.conversation-type-badge i {
    color: var(--gc-accent);
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--gc-text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.admin-conversation-body {
    margin-bottom: 1rem;
}

.conversation-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gc-text-primary);
    margin: 0 0 0.375rem 0;
    display: flex;
    align-items: center;
}

.conversation-name i {
    color: var(--gc-accent);
}

.conversation-id {
    font-size: 0.75rem;
    font-family: var(--gc-font-mono);
    color: var(--gc-text-muted);
    margin: 0;
}

.admin-conversation-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gc-border);
}

/* Text utilities */
.text-success {
    color: var(--gc-success) !important;
}

.text-muted {
    color: var(--gc-text-muted) !important;
}

/* Button sizes for admin */
.btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.btn-danger {
    background: var(--gc-danger);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--gc-shadow-sm);
}

/* Mobile responsive for admin */
@media (max-width: 800px) {
    .admin-users-grid {
        grid-template-columns: 1fr;
    }

    .admin-list-container {
        padding: 1rem;
    }

    .admin-conversation-actions {
        flex-direction: column;
    }

    .admin-conversation-actions .btn {
        width: 100%;
    }
}