/* ==========================================================================
   DESIGN SYSTEM - SECTOR MVP (DARK PREMIUM MODE)
   ========================================================================== */

:root {
    /* Harmonious Color Palette (HSL Tailored) */
    --bg-dark-base: #141c2e;
    --bg-dark-surface: rgba(30, 41, 59, 0.75);
    --bg-dark-glass: rgba(30, 41, 59, 0.45);
    
    --primary: #eab308;       /* Neon Violet */
    --primary-glow: rgba(234, 179, 8, 0.45);
    --primary-dark: #ca8a04;
    
    --secondary: #f8fafc;     /* Bright Blue */
    --secondary-glow: rgba(202, 138, 4, 0.45);
    
    --accent-emerald: #10b981;  /* Voice Active Emerald */
    --accent-emerald-glow: rgba(16, 185, 129, 0.35);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(234, 179, 8, 0.15);
    
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark-base);
    background-image: 
        radial-gradient(at 0% 0%, rgba(234, 179, 8, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(202, 138, 4, 0.15) 0px, transparent 50%);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
}

/* App Container Layout */
.app-container {
    display: grid;
    grid-template-rows: 75px 1fr 140px;
    height: 100vh;
    width: 100%;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
    background: #ffffff;
    backdrop-filter: none;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffffff, #fef08a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Context Tracker (State-Guided Visualization) */
.context-tracker {
    display: flex;
    gap: 20px;
}

.tracker-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}

.tracker-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
}

.tracker-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Estados Dinámicos */
.status-pending { color: #64748b; }
.status-pending .status-dot { background-color: #64748b; }

.status-resolved { color: var(--accent-emerald); }
.status-resolved .status-dot { 
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

.badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.badge i {
    animation: blink 2s infinite;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 30px;
    height: 100%;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.panel-header h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header h2 i {
    color: var(--primary);
}

/* Chat Section */
.chat-section, .sources-section {
    background: var(--bg-dark-surface);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 8px;
}

/* Chat Message Bubbles */
.message {
    display: flex;
    gap: 12px;
    max-width: 80%;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.assistant-message {
    align-self: flex-start;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 0 10px var(--primary-glow);
    font-size: 15px;
}

.user-message .avatar {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: none;
    border: 1px solid var(--border-light);
}

.message-bubble {
    background: var(--bg-dark-glass);
    border: 1px solid var(--border-light);
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 14.5px;
}

.user-message .message-bubble {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(202, 138, 4, 0.2));
    border-color: rgba(234, 179, 8, 0.3);
}

.message-bubble p {
    margin-bottom: 8px;
}

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

.message-time {
    font-size: 10px;
    color: var(--text-muted);
    align-self: flex-end;
    margin-bottom: 4px;
}

.btn-clear {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-clear:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ==========================================================================
   SOURCES PANEL (RAG REFERENCES)
   ========================================================================== */
.sources-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-sources {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    gap: 15px;
    padding: 0 40px;
}

.empty-sources i {
    font-size: 40px;
    background: linear-gradient(135deg, var(--text-muted), rgba(255,255,255,0.05));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-sources p {
    font-size: 13.5px;
}

/* Document Cards */
.source-card {
    background: var(--bg-dark-glass);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--secondary);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeIn 0.4s ease forwards;
    transition: var(--transition-smooth);
}

.source-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.1);
    transform: translateY(-2px);
}

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

.source-title i {
    font-size: 16px;
    color: var(--secondary);
}

.source-badges {
    display: flex;
    gap: 8px;
}

.s-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.s-badge-aseg {
    background: rgba(202, 138, 4, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(202, 138, 4, 0.2);
}

.s-badge-tipo {
    background: rgba(234, 179, 8, 0.15);
    color: var(--primary);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.source-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   FOOTER / CONTROLS BAR
   ========================================================================== */
.controls-bar {
    background: var(--bg-dark-surface);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-light);
    padding: 12px 30px;
    position: relative;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 5px;
}

/* Botón Grabador Nota de Voz */
.voice-btn-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-voice-record {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: var(--transition-smooth);
}

.btn-voice-record:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--primary-glow);
}

/* Grabar Activo */
.btn-voice-record.recording {
    background: var(--accent-emerald);
    box-shadow: 0 0 25px var(--accent-emerald-glow);
}

.record-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-glow);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-voice-record.recording .record-pulse {
    animation: recordPulse 1.5s infinite;
    background: var(--accent-emerald-glow);
    opacity: 1;
}

.record-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 120px;
}

/* Caja de Texto */
.text-input-container {
    flex: 1;
    background: var(--bg-dark-glass);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    padding: 4px 4px 4px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.text-input-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.15);
}

.text-input-container input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14.5px;
    height: 44px;
}

.text-input-container input::placeholder {
    color: var(--text-muted);
}

.btn-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-send:hover {
    background: #7c3aed;
    transform: scale(1.05);
}

/* Waveform Canvas */
.waveform-container {
    position: absolute;
    top: -50px;
    left: 30px;
    right: 30px;
    height: 48px;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.waveform-container.active {
    opacity: 1;
    top: -55px;
}

#visualizer-canvas {
    width: 100%;
    height: 100%;
}

.footer-note {
    text-align: center;
    margin-top: 10px;
    font-size: 10px;
    color: var(--text-muted);
}

/* ==========================================================================
   ANIMATIONS & SCROLLBARS
   ========================================================================== */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

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

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

@keyframes recordPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.3);
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   ADMINISTRATOR MODAL & INDEXER FORM
   ========================================================================== */
.btn-admin-open {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #ca8a04;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-admin-open:hover {
    background: #ca8a04;
    color: white;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
    border-color: transparent;
    transform: translateY(-1px);
}

.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.admin-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-dark-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    width: 550px;
    max-width: 90%;
    padding: 26px;
    box-shadow: var(--shadow-premium), 0 0 40px rgba(234, 179, 8, 0.15);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.admin-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: #ef4444;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-dark-glass);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.15);
}

.form-group select option {
    background: var(--bg-dark-base);
    color: var(--text-primary);
}

.drag-drop-area {
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.drag-drop-area:hover,
.drag-drop-area.dragover {
    border-color: var(--primary);
    background: rgba(234, 179, 8, 0.05);
}

.drag-drop-area i {
    font-size: 28px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.drag-drop-area:hover i {
    color: var(--primary);
    transform: translateY(-2px);
}

.drag-drop-area p {
    font-size: 12.5px;
    color: var(--text-secondary);
}

#file-selected-name {
    font-size: 11px;
    color: var(--accent-emerald);
    font-weight: 500;
}

.btn-submit-doc {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition-smooth);
    margin-top: 5px;
}

.btn-submit-doc:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* ==========================================================================
   SPA ROUTING & PATH NAVIGATION
   ========================================================================== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.nav-paths {
    display: flex;
    gap: 10px;
    margin-left: 30px;
    margin-right: auto;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #475569;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.04);
}

.nav-btn.active {
    color: #ca8a04;
    background: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.35);
    box-shadow: none;
}

.spa-view {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.spa-view.active-view {
    display: flex;
}

#view-chat {
    display: none;
    grid-template-rows: 1fr 140px;
    flex: 1;
    overflow: hidden;
}

#view-chat.active-view {
    display: grid;
}

/* ==========================================================================
   ADMIN EXPLORER VIEW (PATH 2)
   ========================================================================== */
.admin-explorer {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    padding: 24px 30px;
    height: 100%;
    overflow: hidden;
    flex: 1;
}

.explorer-sidebar {
    background: var(--bg-dark-surface);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.sidebar-header h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-header h3 i {
    color: var(--primary);
}

.sidebar-actions {
    display: flex;
    gap: 6px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 10px var(--primary-glow);
}

.tree-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

/* Recursive Directory Tree Styles */
.tree-node {
    margin-left: 12px;
}

.tree-node-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    margin-bottom: 2px;
}

.tree-node-content:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.tree-node-content.active {
    background: linear-gradient(to right, rgba(234, 179, 8, 0.15), transparent);
    color: var(--primary);
    border-left: 2px solid var(--primary);
}

.tree-node-content i {
    font-size: 14px;
}

.tree-node-content .fa-folder, .tree-node-content .fa-folder-open {
    color: #eab308; /* Folder Gold */
}

.tree-node-content .fa-file {
    color: var(--secondary); /* File Blue */
}

/* Explorer Detail Main Area */
.explorer-main {
    background: var(--bg-dark-surface);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.explorer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
    gap: 16px;
}

.explorer-empty i {
    font-size: 60px;
    background: linear-gradient(135deg, var(--text-muted), rgba(255,255,255,0.02));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.explorer-empty h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

/* Directory view grid and card layout */
.explorer-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
}

.explorer-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.explorer-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    margin-top: 15px;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.grid-card {
    background: var(--bg-dark-glass);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.grid-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.08);
    transform: translateY(-1px);
}

.grid-card i {
    font-size: 24px;
}

.grid-card-folder i { color: #eab308; }
.grid-card-file i { color: var(--secondary); }

.grid-card-info h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.grid-card-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Document Creation / View Editor */
.editor-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.editor-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.editor-inputs-full {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editor-textarea {
    flex: 1;
    min-height: 250px;
    background: var(--bg-dark-glass);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    resize: none;
    transition: var(--transition-smooth);
}

.editor-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.15);
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* File Viewer Layout */
.file-details-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.details-card {
    background: var(--bg-dark-glass);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-item h5 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-item p {
    font-size: 14.5px;
    color: var(--text-primary);
    word-break: break-all;
}

.details-desc-box {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.preview-box {
    background: var(--bg-dark-glass);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
}

.preview-content {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    line-height: 1.5;
}

/* ==========================================================================
   ADMIN LOGIN MODULE (HSL TAILORED & NEON GLASS)
   ========================================================================== */
.admin-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 480px;
    flex: 1;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-out forwards;
}

.login-card {
    background: var(--bg-dark-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    width: 420px;
    max-width: 100%;
    padding: 40px 35px;
    box-shadow: var(--shadow-premium), 0 0 40px rgba(234, 179, 8, 0.1);
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.login-logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(202, 138, 4, 0.1));
    border: 1px solid rgba(234, 179, 8, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.15);
    margin-bottom: 5px;
}

.login-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.login-header p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.input-with-icon input {
    width: 100%;
    background: var(--bg-dark-glass);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 12px 14px 12px 42px;
    font-size: 14.5px;
    outline: none;
    transition: var(--transition-smooth);
}

.input-with-icon input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.15);
    background: rgba(30, 41, 59, 0.6);
}

.input-with-icon input:focus + i,
.input-with-icon input:focus ~ i {
    color: var(--primary);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition-smooth);
    margin-top: 5px;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-login:active {
    transform: translateY(1px);
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    font-size: 12.5px;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Cerrar Sesión Header Button */
.btn-admin-logout {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #dc2626;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-admin-logout:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    border-color: transparent;
    transform: translateY(-1px);
}

/* ==========================================================================
   CHAT MESSAGES CITATIONS & DOWNLOAD BUTTONS (HSL PREMIUM)
   ========================================================================== */
.chat-message-sources {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.chat-sources-header {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.chat-sources-header i {
    color: var(--primary);
}

.chat-source-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: var(--transition-smooth);
}

.chat-source-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(234, 179, 8, 0.25);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.05);
    transform: translateY(-1px);
}

.chat-source-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.chat-source-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-source-name i {
    color: var(--secondary);
    font-size: 13px;
}

.chat-source-meta {
    display: flex;
    gap: 6px;
    align-items: center;
}

.chat-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.chat-badge-aseg {
    background: rgba(234, 179, 8, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.chat-badge-tipo {
    background: rgba(202, 138, 4, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(202, 138, 4, 0.2);
}

.btn-chat-download {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white !important;
    text-decoration: none !important;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px var(--primary-glow);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.btn-chat-download:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-chat-download i {
    font-size: 11px;
}

/* Inline Markdown Download Hyperlink Styles */
.chat-inline-link {
    color: #60a5fa !important;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px dashed rgba(96, 165, 250, 0.4);
    transition: var(--transition-smooth);
}

.chat-inline-link:hover {
    color: #93c5fd !important;
    border-bottom-style: solid;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
}

.chat-inline-link i {
    font-size: 11px;
}

/* ==========================================================================
   PREMIUM INTERACTION MODE SWITCHER Styles
   ========================================================================== */
.mode-selector {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.mode-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mode-btn:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.04);
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    font-weight: 600;
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Voice mode visually interactive visual styles */
.btn-voice-record.ptt-active {
    animation: pttPulse 1s infinite alternate;
    background: linear-gradient(135deg, #ec4899, #eab308) !important;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.6) !important;
}

@keyframes pttPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* ==========================================================================
   IMMERSIVE VOICE VIEW STYLES
   ========================================================================== */
.voice-immersive-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 30px;
    height: 100%;
    min-height: 520px;
    padding: 30px;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.6) 0%, rgba(6, 9, 19, 0.95) 100%);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

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

/* Seccion izquierda: Interaccion */
.voice-main-layout {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Seccion derecha: Documentos y Archivos */
.voice-files-panel {
    flex: 0.8;
    background: rgba(6, 9, 19, 0.55);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    min-width: 290px;
    max-height: 500px;
}

.voice-files-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.voice-files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.empty-voice-files {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    gap: 12px;
    padding: 20px;
}

.empty-voice-files i {
    font-size: 32px;
    color: rgba(234, 179, 8, 0.4);
    margin-bottom: 5px;
}

.empty-voice-files p {
    font-size: 11px;
    line-height: 1.5;
}

/* Mobile and Tablet Responsiveness */
@media (max-width: 899px) {
    .app-container {
        grid-template-rows: 60px 1fr 100px;
    }

    .top-bar {
        padding: 0 15px;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text span {
        display: none;
    }

    .context-tracker {
        display: none;
    }

    .main-content {
        padding: 8px 12px;
        gap: 8px;
    }

    .chat-section, .sources-section {
        padding: 12px 12px 10px;
        border-radius: 16px;
    }

    /* Panel header compacto */
    .panel-header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }

    .panel-header h2 {
        font-size: 12px;
    }

    .mode-selector {
        gap: 4px;
    }

    .mode-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .message {
        max-width: 95%;
    }

    .message-bubble {
        padding: 10px 14px;
        font-size: 13.5px;
    }

    .controls-bar {
        padding: 8px 15px;
    }

    .chat-input {
        padding: 10px 15px;
        font-size: 14px;
    }

    .btn-send {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .btn-voice-record {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    /* ======================================================
       BROK INTERACTIVO — Vista Móvil Optimizada
       ====================================================== */
    .voice-immersive-container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow-y: auto;
        padding: 16px 12px;
        gap: 12px;
        min-height: unset;
        height: 100%;
    }

    .voice-main-layout {
        width: 100%;
        flex: unset;
        align-items: center;
        gap: 4px;
    }

    /* Avatar más pequeño y compacto en móvil */
    .brok-avatar-glow-container {
        width: 150px;
        height: 150px;
        margin-top: 0;
    }

    .brok-avatar-face {
        width: 118px;
        height: 118px;
        font-size: 28px;
    }

    .brok-avatar-outer-ring {
        width: 135px;
        height: 135px;
    }

    .brok-avatar-inner-ring {
        width: 152px;
        height: 152px;
    }

    /* Texto de estado más compacto */
    .voice-status-text {
        font-size: 10px;
        letter-spacing: 1.2px;
        margin-top: 4px;
        padding: 0 10px;
        text-align: center;
    }

    /* Waveform más pequeño */
    .voice-waveform-box {
        height: 48px;
        max-width: 100%;
        margin: 4px 0;
    }

    /* Botón PTT más grande y táctil */
    .voice-ptt-btn {
        width: 72px !important;
        height: 72px !important;
        font-size: 26px !important;
    }

    .voice-ptt-label {
        font-size: 10px;
    }

    /* Transcript bubble compacto */
    .voice-transcript-bubble {
        padding: 14px 16px;
        margin-top: 8px;
        border-radius: 12px;
    }

    .voice-transcript-bubble .transcript-content {
        font-size: 14px;
    }

    /* Panel de archivos — siempre visible en móvil */
    .voice-files-panel {
        width: 100%;
        flex: unset;
        min-width: unset;
        max-height: 220px;
        min-height: 120px;
        margin-top: 0;
        padding: 14px;
        display: flex;
        flex-direction: column;
    }

    .voice-files-header {
        font-size: 11px;
        padding-bottom: 8px;
    }

    .empty-voice-files i {
        font-size: 24px;
    }

    .empty-voice-files p {
        font-size: 10px;
    }
}

/* Futuristic pulsing avatar of Brok */
.brok-avatar-glow-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brok-avatar-face {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    z-index: 5;
    box-shadow: 0 0 35px var(--primary-glow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulsing outer rings for voice feedback */
.brok-avatar-outer-ring,
.brok-avatar-inner-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.5;
    animation: avatarPulse 2.5s infinite linear;
}

.brok-avatar-outer-ring {
    width: 225px;
    height: 225px;
    animation-delay: 0.5s;
}

.brok-avatar-inner-ring {
    width: 250px;
    height: 250px;
    border-color: var(--secondary);
}

@keyframes avatarPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
        filter: blur(0px);
    }
    50% {
        opacity: 0.3;
        filter: blur(1px);
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
        filter: blur(3px);
    }
}

/* Pulse states for speaking vs listening */
.brok-avatar-glow-container.listening .brok-avatar-face {
    background: linear-gradient(135deg, var(--accent-emerald), var(--secondary));
    box-shadow: 0 0 45px rgba(16, 185, 129, 0.6);
    transform: scale(1.05);
}
.brok-avatar-glow-container.listening .brok-avatar-outer-ring,
.brok-avatar-glow-container.listening .brok-avatar-inner-ring {
    border-color: var(--accent-emerald);
}

.brok-avatar-glow-container.speaking .brok-avatar-face {
    background: linear-gradient(135deg, #f43f5e, var(--primary));
    box-shadow: 0 0 50px rgba(244, 63, 94, 0.75);
    animation: speakingShake 0.4s infinite alternate;
}
.brok-avatar-glow-container.speaking .brok-avatar-outer-ring,
.brok-avatar-glow-container.speaking .brok-avatar-inner-ring {
    border-color: #f43f5e;
}

@keyframes speakingShake {
    0% { transform: scale(1.03) rotate(-1deg); }
    100% { transform: scale(1.08) rotate(1deg); }
}

/* Status Text */
.voice-status-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
    text-align: center;
    background: linear-gradient(to right, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

/* Visualizer fonogramas box */
.voice-waveform-box {
    width: 100%;
    max-width: 480px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

#voice-visualizer-canvas {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* PTT Button container */
.voice-ptt-button-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    margin-top: -20px;
}

.voice-ptt-btn {
    width: 85px !important;
    height: 85px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border: 3px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 30px var(--primary-glow) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 28px !important;
    position: relative;
    outline: none;
}

.voice-ptt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px var(--primary-glow) !important;
}

.voice-ptt-btn:active,
.voice-ptt-btn.ptt-active {
    transform: scale(0.92) !important;
    background: linear-gradient(135deg, var(--accent-emerald), var(--secondary)) !important;
    box-shadow: 0 0 35px var(--accent-emerald-glow) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.voice-ptt-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Floating Transcript Bubble - Larger & Beautiful */
.voice-transcript-bubble {
    width: 100%;
    max-width: 800px;
    background: var(--bg-dark-glass);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
    margin-top: 15px;
    transition: all 0.4s ease;
}

.voice-transcript-bubble .transcript-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.voice-transcript-bubble .transcript-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 400;
}

.voice-transcript-bubble .transcript-content a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: underline;
}



