/* ZIRVOX AI Platform - Premium Dark UI with 3D Effects */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'Danube';
    src: url('/styles/DANUBE__.TTF') format('truetype');
    font-display: swap;
}

/* Hide content while translating to prevent flash */
html.i18n-loading body {
    opacity: 0 !important;
}
html:not(.i18n-loading) body {
    opacity: 1;
    transition: opacity 0.1s ease;
}

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-elevated: #0f0f0f;
    --bg-card: rgba(255, 255, 255, 0.02);
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: rgba(255, 255, 255, 0.4);
    --text-dim: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.03);
    --shadow-3d: 0 20px 60px -15px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.logo-zirvox { font-family: 'Danube', 'Orbitron', sans-serif; letter-spacing: 3px; font-weight: 400; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24; }
::selection { background-color: rgba(255, 255, 255, 0.15); color: #ffffff; }
body { 
    background: var(--bg-primary); 
    color: var(--text-primary);
    font-family: var(--font-primary);
}

/* ========== TYPOGRAPHY WITH GRADIENT ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-xl {
    font-family: var(--font-primary);
    font-size: 72px;
    font-weight: 700;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-lg {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-md {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sm {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 3D CARD SYSTEM ========== */
.card-3d {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-3d);
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.card-3d::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.card-3d:hover {
    border-color: var(--border-glow);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.2), var(--shadow-glow);
}

/* Light Card Variant */
.card-light {
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.4s ease;
}

.card-light:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
    box-shadow: 0 20px 50px -15px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Glass Card */
.card-glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ========== SIDEBAR ========== */
.sidebar {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-right: 1px solid var(--border-subtle);
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}

.conversation-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text-muted);
    transition: all 0.4s ease;
    cursor: pointer;
    margin-bottom: 4px;
    position: relative;
    border: 1px solid transparent;
}

.conversation-sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: white;
    border-radius: 0 2px 2px 0;
    transition: height 0.25s ease;
}

.conversation-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

.conversation-sidebar-item.active {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
    color: var(--text-primary);
    border-color: var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.conversation-sidebar-item.active::before {
    height: 24px;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff 0%, #e8e8e8 100%);
    color: #000000;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.8);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: left 0.6s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0,0,0,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 12px 40px rgba(255,255,255,0.25), 0 6px 12px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.15);
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
    transition: all 0.1s ease;
}

/* Glow Button Variant */
.btn-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    border-radius: 14px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover {
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 30px rgba(255,255,255,0.1), inset 0 0 20px rgba(255,255,255,0.03);
}

.btn-glow:hover::after {
    opacity: 1;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-secondary:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-send {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff 0%, #e0e0e0 100%);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.3;
    box-shadow: 0 4px 12px rgba(255,255,255,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
    border: none;
}

.btn-send:not(:disabled) {
    opacity: 1;
}

.btn-send:not(:disabled):hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.btn-send:not(:disabled):active {
    transform: scale(0.95);
}

.btn-icon-sm {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.btn-icon-sm::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.btn-icon-sm:hover {
    color: var(--text-primary);
}

.btn-icon-sm:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* ========== INPUT FIELDS ========== */
.input-field {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border-radius: 16px !important;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-primary) !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.03);
}

.input-field::placeholder { color: var(--text-dim) !important; }

.input-field:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 0 4px rgba(255,255,255,0.03), 0 1px 0 rgba(255,255,255,0.05) !important;
}

/* Inputs menores (modais, etc) */
.input-field.text-sm {
    height: 48px;
    border-radius: 14px !important;
}

/* Textarea com input-field */
textarea.input-field {
    height: auto;
    min-height: 100px;
    padding: 14px 18px;
    line-height: 1.5;
}

.input-field-sm {
    height: 42px;
    padding: 0 14px;
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-primary) !important;
    font-size: 13px;
    transition: all 0.2s ease;
}

.input-field-sm.pl-11 {
    padding-left: 44px;
}

.input-field-sm::placeholder { color: var(--text-dim) !important; }
.input-field-sm:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.02) !important;
}

/* Search container arredondado */
.search-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 4px;
    transition: all 0.2s ease;
}

.search-container:focus-within {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.search-container .input-field-sm {
    border: none !important;
    background: transparent !important;
    height: 34px;
}

/* Override Tailwind */
[type='text'], [type='email'], [type='password'], [type='tel'], [type='number'], textarea, select {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
}

[type='text']:focus, [type='email']:focus, [type='password']:focus, textarea:focus, select:focus {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    --tw-ring-color: transparent !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.03) !important;
    outline: none !important;
}

/* ========== CHAT COMPONENTS ========== */
.chat-header {
    background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(5,5,5,0.9) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.ai-model-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}

.ai-model-selector:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-color: var(--border-glow);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}

.ai-model-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.model-dropdown {
    position: absolute;
    top: 75px;
    left: 24px;
    width: 340px;
    background: linear-gradient(180deg, rgba(20,20,20,0.98) 0%, rgba(10,10,10,0.98) 100%);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    z-index: 50;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: dropdownSlide 0.25s ease;
}

@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.model-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.model-option:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-subtle);
}

.model-option.active {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-color: var(--border-light);
}

.model-option .check-icon { opacity: 0; }
.model-option.active .check-icon { opacity: 1; }

/* ========== QUICK PROMPT CARDS ========== */
.quick-prompt-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--border-light);
    text-align: left;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}

.quick-prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.quick-prompt-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(255,255,255,0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.quick-prompt-card:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-color: var(--border-glow);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1), 0 0 30px rgba(255,255,255,0.02);
}

.quick-prompt-card:hover::after { opacity: 1; }

.quick-prompt-card .material-symbols-outlined {
    color: var(--text-secondary) !important;
    transition: all 0.4s ease;
}

.quick-prompt-card:hover .material-symbols-outlined {
    color: var(--text-primary) !important;
    transform: scale(1.1);
}

/* ========== CHAT MESSAGES ========== */
.chat-message {
    display: flex;
    gap: 16px;
    padding: 24px;
    border-radius: 20px;
    animation: messageSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: flex-start;
}

@media (max-width: 480px) {
    .chat-message {
        gap: 12px;
        padding: 16px;
    }
}

.chat-message-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.chat-message-avatar.user {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}

.chat-message-avatar.ai {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.15);
}

.chat-message-avatar.ai span {
    font-family: 'Danube', 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0;
}

.chat-message-avatar.user img,
.chat-message-avatar.user .user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chat-message-avatar.user .avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
}

@media (max-width: 480px) {
    .chat-message-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 50%;
    }
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message.user {
    background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}

.chat-message.ai { background: transparent; }

.chat-message-content { flex: 1; min-width: 0; }
.chat-message-content p { color: var(--text-primary); line-height: 1.75; font-size: 15px; }

.chat-message-content pre {
    background: linear-gradient(145deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 18px;
    margin: 18px 0;
    overflow-x: auto;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.chat-message-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: #e2e8f0;
}

.chat-message-content .inline-code {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid var(--border-subtle);
}

.chat-message-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.chat-message:hover .chat-message-actions { opacity: 1; }

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.action-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.action-btn.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

/* ========== NEW CHAT INPUT ========== */
.chat-input-container {
    background: linear-gradient(180deg, rgba(5,5,5,0) 0%, rgba(5,5,5,0.95) 30%, rgba(5,5,5,1) 100%);
    backdrop-filter: blur(20px);
}

@media (min-width: 768px) {
    .chat-input-container {
        position: fixed;
        bottom: 0;
        left: 64px;
        right: 0;
        padding-bottom: 16px;
    }
}

.chat-input-box {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.chat-input-box:focus-within {
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.chat-input-inner {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 12px 16px;
}

.chat-textarea {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.5;
    resize: none;
    min-height: 24px;
    max-height: 150px;
    outline: none !important;
    box-shadow: none !important;
    padding: 4px 0;
    caret-color: white;
}

.chat-textarea:focus {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    --tw-ring-shadow: none !important;
    --tw-ring-color: transparent !important;
}

.chat-textarea::placeholder {
    color: rgba(255,255,255,0.3) !important;
}

/* Remove qualquer estilo de focus do Tailwind */
.chat-textarea:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

textarea.chat-textarea {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

textarea.chat-textarea:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.chat-input-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.chat-input-tools {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-tool-btn:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}

.chat-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

.chat-send-btn:active {
    transform: translateY(0);
}

/* Botão de pausa durante digitação da IA */
.chat-send-btn.is-typing {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(239, 68, 68, 0.15) 100%);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    animation: pausePulse 1.5s ease-in-out infinite;
}

.chat-send-btn.is-typing:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4) 0%, rgba(239, 68, 68, 0.2) 100%);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

@keyframes pausePulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2); }
    50% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4); }
}

.chat-input-hints {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 0 4px;
    flex-wrap: wrap;
}

.chat-hint-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-hint-tag:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
}

.chat-hint-tag svg {
    opacity: 0.6;
}

@media (max-width: 640px) {
    .chat-input-inner {
        padding: 10px 12px;
    }
    
    .chat-tool-btn {
        width: 32px;
        height: 32px;
    }
    
    .chat-send-btn {
        width: 36px;
        height: 36px;
    }
    
    .chat-hint-tag {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Chip Buttons */
.chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chip-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border-color: var(--border-glow);
}

.chip-btn.active {
    background: linear-gradient(145deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ========== TYPING INDICATOR ========== */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 16px 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 16px;
    width: fit-content;
    border: 1px solid var(--border-subtle);
}

.typing-indicator span {
    display: block;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.typing-indicator span:nth-child(1) {
    animation: dot1 3.5s infinite ease-in-out !important;
    animation-duration: 3.5s !important;
}

.typing-indicator span:nth-child(2) {
    animation: dot2 3.5s infinite ease-in-out !important;
    animation-duration: 3.5s !important;
}

.typing-indicator span:nth-child(3) {
    animation: dot3 3.5s infinite ease-in-out !important;
    animation-duration: 3.5s !important;
}

@keyframes dot1 {
    0%, 10%, 100% {
        background-color: rgba(255, 255, 255, 0.25);
        transform: scale(1);
    }
    15%, 25% {
        background-color: rgba(255, 255, 255, 1);
        transform: scale(1.25);
    }
}

@keyframes dot2 {
    0%, 30%, 100% {
        background-color: rgba(255, 255, 255, 0.25);
        transform: scale(1);
    }
    35%, 45% {
        background-color: rgba(255, 255, 255, 1);
        transform: scale(1.25);
    }
}

@keyframes dot3 {
    0%, 50%, 100% {
        background-color: rgba(255, 255, 255, 0.25);
        transform: scale(1);
    }
    55%, 65% {
        background-color: rgba(255, 255, 255, 1);
        transform: scale(1.25);
    }
}

/* ========== STAT CARDS ========== */
.stat-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1), 0 0 40px rgba(255,255,255,0.02);
}

/* ========== CONVERSATION LIST ITEMS ========== */
.conversation-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.conversation-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: white;
    transition: height 0.25s ease;
    border-radius: 0 2px 2px 0;
}

.conversation-list-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.conversation-list-item:hover::before { height: 40%; }

/* ========== TOGGLE SWITCH - Premium Style ========== */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.05);
}

.toggle-switch::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.4) 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
}

.toggle-switch:hover::before {
    opacity: 1;
}

.toggle-switch.active {
    background: linear-gradient(145deg, #ffffff 0%, #e8e8e8 100%);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(255,255,255,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
}

.toggle-switch.active::after {
    left: 27px;
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Tailwind Toggle Override */
.peer:checked ~ div {
    background: linear-gradient(145deg, #ffffff 0%, #e8e8e8 100%) !important;
    box-shadow: 0 4px 20px rgba(255,255,255,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
}

.peer:checked ~ div::after {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* ========== PROGRESS BAR - Animated ========== */
.progress-bar {
    height: 8px;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.6) 0%, #ffffff 50%, rgba(255,255,255,0.6) 100%);
    background-size: 200% 100%;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255,255,255,0.3), 0 0 5px rgba(255,255,255,0.5);
    animation: progressShine 2s ease-in-out infinite;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    border-radius: 4px 4px 0 0;
}

@keyframes progressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== LOADERS ========== */

/* Loading Spinner - Button */
.loading-spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid rgba(0, 0, 0, 0.15);
    border-top-color: #000;
    animation: spinnerRotate 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

@keyframes spinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== LOGIN BUTTON ========== */
.login-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #000;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
}

.login-btn .btn-text {
    transition: all 0.3s ease;
}

.login-btn .btn-loader {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    animation: none;
}

.login-btn .btn-success {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.login-btn .btn-success svg {
    width: 100%;
    height: 100%;
    stroke: #000;
}

/* Loading State */
.login-btn.loading {
    pointer-events: none;
}

.login-btn.loading .btn-text {
    opacity: 0;
    transform: translateY(10px);
}

.login-btn.loading .btn-loader {
    opacity: 1;
    transform: scale(1);
    animation: loginSpinner 1.5s linear infinite !important;
}

@keyframes loginSpinner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success State */
.login-btn.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    pointer-events: none;
}

.login-btn.success .btn-text {
    opacity: 0;
    transform: translateY(10px);
}

.login-btn.success .btn-loader {
    opacity: 0;
    transform: scale(0);
}

.login-btn.success .btn-success {
    opacity: 1;
    transform: scale(1);
    animation: successPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-btn.success .btn-success svg {
    stroke: #fff;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Loading Spinner - Light (for dark backgrounds) */
.loading-spinner-light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    animation: spinnerRotate 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

/* Pulse Dot Loader */
.loading-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: loadingDotsPulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDotsPulse {
    0%, 80%, 100% { 
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
}

.loader::before,
.loader::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.loader::before {
    border-top-color: rgba(255,255,255,0.8);
    animation: loaderSpin 1s linear infinite;
}

.loader::after {
    border-bottom-color: rgba(255,255,255,0.3);
    animation: loaderSpin 1s linear infinite reverse;
    animation-delay: 0.3s;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dots Loader */
.loader-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.loader-dots span {
    width: 10px;
    height: 10px;
    background: linear-gradient(145deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    border-radius: 50%;
    animation: loaderDots 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderDots {
    0%, 80%, 100% { 
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Pulse Loader */
.loader-pulse {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    position: relative;
}

.loader-pulse::before,
.loader-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    animation: loaderPulse 2s ease-out infinite;
}

.loader-pulse::after {
    animation-delay: 1s;
}

@keyframes loaderPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ========== TOOLTIP ========== */
.tooltip { position: relative; }

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 10px 14px;
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
    color: #000000;
    font-size: 12px;
    font-weight: 500;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .sidebar { width: 80px; padding: 16px 10px; }
    .sidebar .conversation-sidebar-item span:last-child,
    .sidebar .conversation-sidebar-item p,
    .sidebar h1, .sidebar > div:first-child p { display: none; }
    main { margin-left: 80px; }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        width: 300px;
        z-index: 50;
        transition: left 0.3s ease;
    }
    .sidebar.open { left: 0; }
    main { margin-left: 0; }
    
    /* Quick Prompt Cards - Mobile */
    #welcomeState .grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 0 16px;
    }
    
    #welcomeState h2 {
        font-size: 1.5rem;
        padding: 0 16px;
    }
    
    #welcomeState p {
        font-size: 0.875rem;
        padding: 0 16px;
    }
    
    .quick-prompt-card {
        padding: 16px 18px;
    }
    
    .quick-prompt-card .material-symbols-outlined {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    #welcomeState {
        padding: 20px 0;
    }
    
    #welcomeState h2 {
        font-size: 1.25rem;
    }
    
    #welcomeState > p {
        margin-bottom: 24px;
    }
    
    .quick-prompt-card {
        padding: 14px 16px;
    }
    
    .quick-prompt-card p.text-sm {
        font-size: 0.8125rem;
    }
}


/* ========== ANIMATED BORDER CARDS ========== */
.card-animated-border {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border-radius: 20px;
    padding: 2px;
    overflow: hidden;
}

.card-animated-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(
        var(--border-angle, 0deg),
        transparent 20%,
        rgba(255,255,255,0.3) 40%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0.3) 60%,
        transparent 80%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 4s linear infinite;
}

.card-animated-border-content {
    background: var(--bg-primary);
    border-radius: 18px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

@keyframes borderRotate {
    0% { --border-angle: 0deg; }
    100% { --border-angle: 360deg; }
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ========== GLOW INPUT ========== */
.input-glow {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.input-glow:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.2),
        0 0 20px rgba(255,255,255,0.1),
        0 0 40px rgba(255,255,255,0.05);
}

/* ========== BADGE STYLES ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.badge-success {
    background: linear-gradient(145deg, rgba(34,197,94,0.15) 0%, rgba(34,197,94,0.05) 100%);
    border: 1px solid rgba(34,197,94,0.3);
    color: #4ade80;
}

.badge-warning {
    background: linear-gradient(145deg, rgba(234,179,8,0.15) 0%, rgba(234,179,8,0.05) 100%);
    border: 1px solid rgba(234,179,8,0.3);
    color: #facc15;
}

.badge-error {
    background: linear-gradient(145deg, rgba(239,68,68,0.15) 0%, rgba(239,68,68,0.05) 100%);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
}

.badge-info {
    background: linear-gradient(145deg, rgba(59,130,246,0.15) 0%, rgba(59,130,246,0.05) 100%);
    border: 1px solid rgba(59,130,246,0.3);
    color: #60a5fa;
}

/* ========== SKELETON LOADING ========== */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.03) 0%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.03) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== NOTIFICATION TOAST ========== */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    background: linear-gradient(145deg, rgba(20,20,20,0.95) 0%, rgba(10,10,10,0.95) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: toastSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== AVATAR ========== */
.avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

.avatar-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.avatar-status.online {
    background: linear-gradient(145deg, #4ade80 0%, #22c55e 100%);
    box-shadow: 0 0 10px rgba(34,197,94,0.5);
}

.avatar-status.offline {
    background: rgba(255,255,255,0.3);
}

/* ========== DIVIDER ========== */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    margin: 24px 0;
}

.divider-vertical {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent);
    margin: 0 16px;
}

/* ========== HOVER EFFECTS ========== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* ========== GLASSMORPHISM ENHANCED ========== */
.glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ========== FOCUS RING ========== */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1), 0 0 0 6px rgba(255,255,255,0.05);
}

/* ========== GRADIENT TEXT ========== */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== PULSE ANIMATION ========== */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== SHINE EFFECT ========== */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255,255,255,0.1) 50%,
        transparent 100%
    );
    transform: rotate(30deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}


/* ========== MOBILE BOTTOM NAVIGATION ========== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(5,5,5,0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 50;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 12px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 64px;
}

.mobile-nav-item span:first-child {
    font-size: 24px;
    transition: all 0.3s ease;
}

.mobile-nav-item span:last-child {
    font-size: 10px;
    font-weight: 500;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: rgba(255,255,255,0.7);
}

.mobile-nav-item.active {
    color: #ffffff;
}

.mobile-nav-item.active span:first-child {
    transform: scale(1.1);
}

/* ========== RESPONSIVE UTILITIES ========== */
@media (max-width: 767px) {
    .sidebar {
        display: none !important;
    }
    
    main {
        margin-left: 0 !important;
    }
    
    .chat-input-container {
        padding-bottom: 12px;
    }
    
    .quick-prompt-card {
        padding: 16px !important;
    }
    
    .quick-prompt-card .material-symbols-outlined {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Safe area for iOS */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    
    main.pb-16 {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
}


/* ========== TYPING CURSOR - Smooth Animation ========== */
.ai-text-content {
    display: inline;
}

.typing-cursor {
    display: inline;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    animation: cursorBlink 0.8s ease-in-out infinite;
    margin-left: 2px;
    font-size: 1.1em;
    line-height: 1;
    vertical-align: baseline;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ========== THINKING DOTS - Smooth Animation ========== */
.thinking-indicator {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}


/* ========== FORCE OVERRIDES - Remove Tailwind Focus Styles ========== */
.chat-textarea,
.chat-textarea:focus,
.chat-textarea:focus-visible,
.chat-textarea:active,
textarea.chat-textarea,
textarea.chat-textarea:focus,
textarea.chat-textarea:focus-visible,
#textInput,
#textInput:focus,
#textInput:focus-visible {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    --tw-ring-offset-shadow: none !important;
    --tw-ring-shadow: none !important;
    --tw-shadow: none !important;
    --tw-ring-color: transparent !important;
    --tw-ring-offset-color: transparent !important;
}

/* Remove any pseudo-element bars */
.chat-textarea::before,
.chat-textarea::after,
.chat-input-box::before,
.chat-input-box::after,
.chat-input-inner::before,
.chat-input-inner::after {
    display: none !important;
    content: none !important;
}


/* ========== ATTACHMENT PREVIEW ========== */
#attachmentPreview {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px 24px 0 0;
}

#attachmentPreview:not(.hidden) {
    display: flex;
}

#attachmentPreview + .chat-input-inner {
    padding-top: 8px;
}

#attachmentPreview .file-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

#attachmentPreview .file-size {
    flex-shrink: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

#attachmentPreview .remove-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

#attachmentPreview .remove-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

#attachmentPreview .remove-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#attachmentPreview .loading-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== VOICE RECORDING STATE ========== */
.chat-tool-btn.recording {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    animation: recordingPulse 1.5s ease-in-out infinite;
}

@keyframes recordingPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.voice-status {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 8px;
    pointer-events: none;
}

/* ========== SKELETON LOADING ========== */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.04),
        transparent
    );
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-text {
    height: 1em;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    display: inline-block;
}

.skeleton-text.sm { width: 60px; }
.skeleton-text.md { width: 120px; }
.skeleton-text.lg { width: 200px; }
.skeleton-text.xl { width: 100%; }

.skeleton-circle {
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.skeleton-box {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

/* Blur transition for loaded content */
.loading-blur {
    filter: blur(4px);
    opacity: 0.5;
    transition: all 0.3s ease;
    pointer-events: none !important;
    user-select: none !important;
}

.loading-blur.loaded {
    filter: blur(0);
    opacity: 1;
    pointer-events: auto !important;
    user-select: auto !important;
}

/* Select/Dropdown dark styling */
select,
.input-field-sm[type="select"],
select.input-field-sm {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
    cursor: pointer;
}

select option {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
    padding: 10px;
}

select:focus {
    background-color: #0f0f0f !important;
}

/* ========== PAYMENT METHOD MODAL ========== */
.payment-option {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
}

.payment-option:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.payment-option.selected {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.payment-option .radio-dot {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.payment-option.selected .radio-dot {
    border-color: white;
}

.payment-option.selected .radio-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

/* ========== MINI SIDEBAR (Compact Style) ========== */
.mini-sidebar {
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

.mini-sidebar-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mini-sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
}

.mini-sidebar-btn.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mini-sidebar-btn .material-symbols-outlined {
    font-size: 22px;
}

.mini-sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mini-sidebar-avatar:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.mini-avatar-fallback {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* Expanded Sidebar Panel */
.expanded-sidebar {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(5, 5, 5, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 0.25s ease;
}

.expanded-sidebar.show {
    display: flex !important;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sidebar Menu Items */
.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
}

/* Folder Items */
.folder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 2px;
}

.folder-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.9);
}

.folder-item .folder-icon {
    color: rgba(255, 255, 255, 0.4);
}

.folder-item .folder-count {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Chat Items in Sidebar */
.chat-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 2px;
    border: 1px solid transparent;
}

.chat-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
}

.chat-sidebar-item.active {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(138, 43, 226, 0.1) 100%);
    color: white;
    border-color: rgba(138, 43, 226, 0.3);
}

.chat-sidebar-item .chat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.chat-sidebar-item .chat-icon .material-symbols-outlined {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

/* Section Headers */
.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 4px;
}

.sidebar-section-header h3 {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-section-header button {
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s ease;
}

.sidebar-section-header button:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Enterprise Badge */
.enterprise-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(138, 43, 226, 0.1) 100%);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #a855f7;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Expert Cards */
.expert-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.expert-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.expert-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.expert-avatar .material-symbols-outlined {
    font-size: 20px;
    color: white;
}

.expert-info {
    flex: 1;
    min-width: 0;
}

.expert-name {
    font-size: 13px;
    font-weight: 500;
    color: white;
    margin-bottom: 2px;
}

.expert-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Usage Indicator in Sidebar */
.sidebar-usage {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin: 8px 12px;
}

.sidebar-usage-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
}

.sidebar-usage-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.sidebar-usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.sidebar-usage-fill.warning {
    background: linear-gradient(90deg, #eab308 0%, #ca8a04 100%);
}

.sidebar-usage-fill.danger {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}
