/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
    --bg-app: #070913;
    --sidebar-bg: rgba(10, 14, 31, 0.6);
    --card-bg: rgba(16, 22, 47, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(0, 242, 254, 0.4);
    
    /* Harmonious colors (HSL) */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary-start: #00f2fe;
    --primary-end: #4facfe;
    --primary-glow: rgba(0, 242, 254, 0.35);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Glassmorphism settings */
    --glass-blur: blur(20px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --border-glass: 1px solid var(--border-color);
    
    /* Layout transition */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

h1, h2, h3, .logo-text h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* ==========================================================================
   Background Animations & Elements
   ========================================================================== */
.bg-gradient {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.bg-grad-1 {
    background: radial-gradient(circle, var(--primary-start) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation: float-slow 20s infinite ease-in-out alternate;
}

.bg-grad-2 {
    background: radial-gradient(circle, var(--primary-end) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation: float-slow 25s infinite ease-in-out alternate-reverse;
}

@keyframes float-slow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.2); }
}

/* ==========================================================================
   Application Container & Layout
   ========================================================================== */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 36px 24px 24px 24px;
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #070913;
    box-shadow: 0 0 20px var(--primary-glow);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-text h1 {
    font-size: 20px;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-secondary);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: var(--border-glass);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.nav-item.active .nav-icon {
    color: var(--primary-start);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.nav-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

/* ==========================================================================
   Main Content Area & Header
   ========================================================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px;
    overflow: hidden;
    position: relative;
}

.content-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.header-title p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Tab Content Transitions
   ========================================================================== */
.tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    animation: fade-in 0.4s ease;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Cards (Glassmorphism design)
   ========================================================================== */
.card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ==========================================================================
   TAB: CHAT (RAG)
   ========================================================================== */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    overflow: hidden;
}

.chat-log {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

/* Custom Scrollbars */
.chat-log::-webkit-scrollbar,
.journal-list::-webkit-scrollbar,
.search-results-area::-webkit-scrollbar {
    width: 6px;
}

.chat-log::-webkit-scrollbar-thumb,
.journal-list::-webkit-scrollbar-thumb,
.search-results-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.chat-log::-webkit-scrollbar-track,
.journal-list::-webkit-scrollbar-track,
.search-results-area::-webkit-scrollbar-track {
    background: transparent;
}

.chat-message {
    display: flex;
    max-width: 80%;
    animation: slide-up-fade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.message-bubble {
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    word-wrap: break-word;
}

.chat-message.bot .message-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-message.user .message-bubble {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.2));
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: #e0f2fe;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.05);
}

.message-sources {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.source-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: monospace;
}

.source-tag svg {
    width: 10px;
    height: 10px;
    color: var(--primary-start);
}

@keyframes slide-up-fade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-input-area {
    padding: 20px 24px;
    background: rgba(7, 9, 19, 0.4);
    border-top: var(--border-glass);
}

.chat-form {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    border-radius: 14px;
    padding: 6px 10px;
    align-items: center;
    transition: var(--transition-smooth);
}

.chat-form:focus-within {
    border-color: var(--border-color-focus);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.chat-form textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: none;
    max-height: 120px;
    padding: 8px 12px;
}

.chat-form textarea::placeholder {
    color: var(--text-muted);
}

.btn-send {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #070913;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-send:hover {
    transform: scale(1.04);
    box-shadow: 0 0 12px var(--primary-glow);
}

.btn-send svg {
    width: 18px;
    height: 18px;
}

/* Typing Indicator Animation */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* ==========================================================================
   TAB: SEARCH (SERVIDOR EVENT SEARCH)
   ========================================================================== */
.search-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    overflow: hidden;
}

.search-bar-container {
    display: flex;
    background: var(--card-bg);
    border: var(--border-glass);
    border-radius: 16px;
    padding: 8px 12px;
    align-items: center;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    backdrop-filter: var(--glass-blur);
}

.search-bar-container:focus-within {
    border-color: var(--border-color-focus);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.search-icon {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
    margin-left: 12px;
}

.search-bar-container input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    padding: 10px 16px;
}

.search-bar-container input::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: #070913;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px var(--primary-glow);
}

.search-info {
    font-size: 12px;
    color: var(--text-secondary);
    padding-left: 6px;
}

.search-results-area {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 13px;
    max-width: 320px;
}

/* Timeline Cards */
.person-event-card {
    background: var(--card-bg);
    border: var(--border-glass);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fade-in 0.3s ease;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.servidor-info h4 {
    font-size: 16px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 2px;
}

.servidor-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.event-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.event-badge.nomeacao { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.event-badge.exoneracao { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.event-badge.aposentadoria { background: rgba(79, 172, 254, 0.15); color: #60a5fa; border: 1px solid rgba(79, 172, 254, 0.3); }
.event-badge.licenca { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.event-badge.outro { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); border: 1px solid rgba(255, 255, 255, 0.15); }

.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
}

.detail-item strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-item span {
    color: var(--text-primary);
}

.event-context {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    border-left: 2px solid var(--primary-start);
    padding-left: 12px;
    margin-top: 4px;
}

/* ==========================================================================
   TAB: UPLOAD / STATUS
   ========================================================================== */
.upload-panel {
    flex: 1;
    overflow: hidden;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: 100%;
}

.upload-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.drop-zone {
    flex: 1;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.01);
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary-start);
    background: rgba(0, 242, 254, 0.02);
    box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.03);
}

.upload-cloud-icon {
    width: 60px;
    height: 60px;
    color: var(--text-muted);
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.drop-zone:hover .upload-cloud-icon {
    color: var(--primary-start);
    transform: translateY(-4px);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.drop-zone span {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.or-divider {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin: 12px 0;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: var(--border-glass);
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 8px;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-delete-item:hover {
    opacity: 1 !important;
    background: rgba(239, 68, 68, 0.15) !important;
}

.progress-container {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-glass);
    border-radius: 10px;
    animation: fade-in 0.3s ease;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.progress-status-text {
    color: var(--text-primary);
    font-weight: 500;
}

.progress-percentage {
    color: var(--primary-start);
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-start), var(--primary-end));
    box-shadow: 0 0 8px var(--primary-glow);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.status-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.journal-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.journal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 14px 18px;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.journal-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.journal-details h5 {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: monospace;
    word-break: break-all;
}

.journal-details p {
    font-size: 11px;
    color: var(--text-secondary);
}

.journal-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.journal-status.status-indexed { color: var(--success); }
.journal-status.status-indexed .status-indicator { background-color: var(--success); box-shadow: 0 0 6px var(--success); }

.journal-status.status-processing { color: var(--warning); }
.journal-status.status-processing .status-indicator { 
    background-color: var(--warning); 
    box-shadow: 0 0 6px var(--warning); 
    animation: pulse 1s infinite alternate;
}

.journal-status.status-failed { color: var(--danger); }
.journal-status.status-failed .status-indicator { background-color: var(--danger); box-shadow: 0 0 6px var(--danger); }

@keyframes pulse {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* Markdown styling inside bubbles */
.message-bubble strong {
    font-weight: 600;
    color: var(--primary-start);
}

.message-bubble code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

.message-bubble ul {
    margin: 8px 0 8px 20px;
}

.message-bubble li {
    margin-bottom: 4px;
}

/* ==========================================================================
   URL Input & Gazette Link Styles
   ========================================================================== */
.url-input-zone {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.url-input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    border-radius: 12px;
    padding: 4px 10px;
    align-items: center;
    transition: var(--transition-smooth);
}

.url-input-wrapper:focus-within {
    border-color: var(--border-color-focus);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.12);
}

.url-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.url-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    padding: 10px 12px;
}

input[type="month"] {
    color-scheme: dark;
}

body.light-theme input[type="month"] {
    color-scheme: light;
}

.url-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.journal-url-link {
    color: var(--primary-start);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-top: 4px;
    transition: var(--transition-smooth);
}

.journal-url-link:hover {
    color: var(--primary-end);
    text-decoration: underline;
}

.link-icon {
    width: 14px;
    height: 14px;
}

.journal-meta-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 6px;
}

/* ==========================================================================
   Variáveis para Tema Claro
   ========================================================================== */
body.light-theme {
    --bg-app: #f8fafc;
    --sidebar-bg: rgba(241, 245, 249, 0.75);
    --card-bg: rgba(255, 255, 255, 0.7);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-color-focus: rgba(37, 99, 235, 0.4);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --primary-start: #3b82f6;
    --primary-end: #1d4ed8;
    --primary-glow: rgba(59, 130, 246, 0.15);
    
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
}

/* ==========================================================================
   Ajustes Específicos do Modo Claro
   ========================================================================== */
body.light-theme .bg-gradient {
    opacity: 0.06;
}

body.light-theme .logo-text h1 {
    background: linear-gradient(to right, var(--text-primary), var(--primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .logo-icon {
    color: #ffffff;
}

body.light-theme .sidebar-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

body.light-theme .nav-item:hover {
    background: rgba(15, 23, 42, 0.03);
}

body.light-theme .nav-item.active {
    background: rgba(15, 23, 42, 0.04);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

body.light-theme .btn-primary,
body.light-theme .btn-send {
    color: #ffffff;
}

body.light-theme .chat-input-area {
    background: rgba(248, 250, 252, 0.5);
}

body.light-theme .chat-form {
    background: rgba(15, 23, 42, 0.02);
}

body.light-theme .chat-message.bot .message-bubble {
    background: rgba(15, 23, 42, 0.03);
}

body.light-theme .chat-message.user .message-bubble {
    color: #1e3a8a;
}

body.light-theme .chat-log::-webkit-scrollbar-thumb,
body.light-theme .journal-list::-webkit-scrollbar-thumb,
body.light-theme .search-results-area::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.1);
}

body.light-theme .journal-item {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

body.light-theme .journal-item:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.06);
}

body.light-theme .event-details {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

body.light-theme .progress-container {
    background: rgba(15, 23, 42, 0.01);
}

/* ==========================================================================
   Estilo do Botão do Tema
   ========================================================================== */
.btn-theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--glass-shadow);
}

.btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    border-color: var(--border-color-focus);
}

body.light-theme .btn-theme-toggle {
    background: rgba(15, 23, 42, 0.05);
}

body.light-theme .btn-theme-toggle:hover {
    background: rgba(15, 23, 42, 0.08);
}

.theme-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.5s ease;
}

.btn-theme-toggle:active .theme-icon {
    transform: rotate(45deg) scale(0.9);
}

/* ==========================================================================
   AI Provider Selection & Badges
   ========================================================================== */
.provider-select-wrapper {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.provider-select-wrapper label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Radio cards container */
.provider-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.provider-radio-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-glass);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.provider-radio-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Hide native radio input but keep it accessible */
.provider-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.provider-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.provider-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.provider-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Active State styles */
.provider-radio-card.active {
    background: rgba(0, 242, 254, 0.05);
    border-color: var(--primary-start);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.provider-radio-card.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-start), var(--primary-end));
}

/* Light Theme overrides */
body.light-theme .provider-radio-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .provider-radio-card:hover {
    background: rgba(0, 0, 0, 0.04);
}

body.light-theme .provider-radio-card.active {
    background: rgba(79, 172, 254, 0.06);
    border-color: #4facfe;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.1);
}

body.light-theme .provider-name {
    color: #1e293b;
}

body.light-theme .provider-desc {
    color: #64748b;
}

/* Badges on Journal List */
.journal-item {
    position: relative;
}

.provider-badge {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    vertical-align: middle;
}

.provider-badge.google {
    background: rgba(129, 140, 248, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.provider-badge.openai {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.provider-badge.deepseek {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.provider-badge.ollama {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.provider-badge.transparency {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

body.light-theme .provider-badge.transparency {
    background: rgba(168, 85, 247, 0.1);
    color: #7e22ce;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* ==========================================================================
   Dashboard Overlay Theme Styles
   ========================================================================== */
.dashboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b0f19;
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 30px;
    color: #ffffff;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

body.light-theme .dashboard-overlay {
    background: #f8fafc;
    color: #0f172a;
}

body.light-theme .dashboard-overlay .card.glass {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
}

body.light-theme .dashboard-overlay h1, 
body.light-theme .dashboard-overlay h4,
body.light-theme .dashboard-overlay p,
body.light-theme .dashboard-overlay span,
body.light-theme .dashboard-overlay .kpi-card h2 {
    color: #0f172a !important;
}

body.light-theme .dashboard-overlay .dashboard-header {
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

/* ==========================================================================
   Dossier Specific Styling (Scoped under .dossier-markdown-body)
   ========================================================================== */
.dossier-markdown-body {
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.dossier-markdown-body h1 {
    font-size: 24px;
    font-weight: 800;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--primary-start);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.dossier-markdown-body h2 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--primary-start);
    font-family: 'Outfit', sans-serif;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.dossier-markdown-body h3 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--primary-start);
    font-family: 'Outfit', sans-serif;
}

.dossier-markdown-body p {
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.dossier-markdown-body ul:not(.dossier-timeline) {
    padding-left: 20px;
    margin-bottom: 18px;
}

.dossier-markdown-body ul:not(.dossier-timeline) li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Premium Glassmorphic Table in Dossier */
.dossier-markdown-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0 28px 0;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.dossier-markdown-body th {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.dossier-markdown-body td {
    padding: 14px 18px;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.dossier-markdown-body tr:last-child td {
    border-bottom: none;
}

.dossier-markdown-body tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Dossier Timeline Track & Nodes */
.dossier-markdown-body .dossier-timeline {
    position: relative;
    padding-left: 24px;
    margin: 24px 0;
    list-style: none;
}

.dossier-markdown-body .dossier-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-start), var(--primary-end));
    opacity: 0.5;
    border-radius: 1px;
}

.dossier-markdown-body .dossier-timeline li {
    position: relative;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.dossier-markdown-body .dossier-timeline li::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-app);
    border: 2px solid var(--primary-start);
    box-shadow: 0 0 6px var(--primary-glow);
    z-index: 1;
    transition: var(--transition-smooth);
}

.dossier-markdown-body .dossier-timeline li:hover::before {
    transform: scale(1.3);
    background: var(--primary-start);
    box-shadow: 0 0 10px var(--primary-start);
}

/* ==========================================================================
   Verdict Badges (Pills)
   ========================================================================== */
.verdict-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 4px 0;
    font-family: 'Outfit', sans-serif;
    border: 1px solid transparent;
}

.verdict-badge.approved {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.verdict-badge.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.verdict-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

/* ==========================================================================
   Light Theme Overrides for Dossier Elements
   ========================================================================== */
body.light-theme .dossier-markdown-body h2 {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .dossier-markdown-body table {
    background: rgba(15, 23, 42, 0.01);
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

body.light-theme .dossier-markdown-body th {
    background: rgba(15, 23, 42, 0.02);
    color: var(--text-secondary);
    border-bottom-color: rgba(15, 23, 42, 0.06);
}

body.light-theme .dossier-markdown-body td {
    border-bottom-color: rgba(15, 23, 42, 0.03);
}

body.light-theme .dossier-markdown-body tr:hover td {
    background: rgba(15, 23, 42, 0.015);
}

body.light-theme .dossier-markdown-body .dossier-timeline::before {
    opacity: 0.3;
}

body.light-theme .dossier-markdown-body .dossier-timeline li::before {
    background: var(--bg-app);
}

body.light-theme .verdict-badge.approved {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: none;
}

body.light-theme .verdict-badge.rejected {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.2);
    box-shadow: none;
}

body.light-theme .verdict-badge.pending {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.2);
    box-shadow: none;
}

/* ==========================================================================
   Print Style overrides (@media print)
   ========================================================================== */
@media print {
    /* Hide everything on the page except the dossier overlay */
    body * {
        visibility: hidden;
    }
    
    #dossier-overlay,
    #dossier-overlay * {
        visibility: visible;
    }
    
    #dossier-overlay {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
    }
    
    /* Hide headers, close button and print button during printing */
    #dossier-overlay .dashboard-header,
    #dossier-overlay #btn-print-dossier,
    #dossier-overlay #btn-close-dossier,
    #dossier-overlay .btn-primary,
    #dossier-overlay .btn-secondary {
        display: none !important;
    }
    
    #dossier-overlay .card.glass {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #000000 !important;
        padding: 0 !important;
        min-height: auto !important;
    }
    
    /* Clean text styling for high-contrast print */
    .dossier-markdown-body {
        color: #000000 !important;
    }
    
    .dossier-markdown-body h1,
    .dossier-markdown-body h2,
    .dossier-markdown-body h3 {
        color: #000000 !important;
        page-break-after: avoid;
    }
    
    .dossier-markdown-body h2 {
        border-bottom: 1px solid #cccccc !important;
    }
    
    .dossier-markdown-body p {
        color: #000000 !important;
    }
    
    .dossier-markdown-body table {
        border: 1px solid #cccccc !important;
        background: transparent !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .dossier-markdown-body th {
        background: #f1f5f9 !important;
        color: #000000 !important;
        border-bottom: 1px solid #cccccc !important;
    }
    
    .dossier-markdown-body td {
        border-bottom: 1px solid #eeeeee !important;
        color: #000000 !important;
    }
    
    .dossier-markdown-body .dossier-timeline::before {
        background: #cccccc !important;
    }
    
    .dossier-markdown-body .dossier-timeline li::before {
        border-color: #000000 !important;
        background: #ffffff !important;
    }
    
    .verdict-badge {
        border: 1px solid #000000 !important;
        color: #000000 !important;
        background: #f1f5f9 !important;
        box-shadow: none !important;
    }
}

/* ==========================================================================
   Transparency Portal Styles (Toggles & Summary Cards)
   ========================================================================== */
.transparency-summary-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.transparency-summary-card:hover {
    border-color: rgba(0, 242, 254, 0.2) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

body.light-theme .transparency-summary-card {
    background: rgba(15, 23, 42, 0.02) !important;
    border-color: rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02) !important;
}

body.light-theme .transparency-summary-card:hover {
    border-color: rgba(59, 130, 246, 0.3) !important;
    background: rgba(15, 23, 42, 0.03) !important;
}

.upload-tab-btn {
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.upload-tab-btn:hover {
    color: var(--text-primary) !important;
}

.upload-tab-btn.active {
    color: var(--text-primary) !important;
    border-bottom-color: var(--primary-start) !important;
}

/* ==========================================================================
   Consignante Form Modal Overlay
   ========================================================================== */
.consignante-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 19, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.light-theme .consignante-modal-overlay {
    background: rgba(15, 23, 42, 0.4);
}

.consignante-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    width: 100%;
    max-width: 520px;
    background: var(--card-bg) !important;
    border: var(--border-glass) !important;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.consignante-modal-overlay.active .modal-card {
box-shadow: none;
}

body.light-theme .verdict-badge.pending {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.2);
    box-shadow: none;
}

/* ==========================================================================
   Print Style overrides (@media print)
   ========================================================================== */
@media print {
    /* Hide everything on the page except the dossier overlay */
    body * {
        visibility: hidden;
    }
    
    #dossier-overlay,
    #dossier-overlay * {
        visibility: visible;
    }
    
    #dossier-overlay {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
    }
    
    /* Hide headers, close button and print button during printing */
    #dossier-overlay .dashboard-header,
    #dossier-overlay #btn-print-dossier,
    #dossier-overlay #btn-close-dossier,
    #dossier-overlay .btn-primary,
    #dossier-overlay .btn-secondary {
        display: none !important;
    }
    
    #dossier-overlay .card.glass {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #000000 !important;
        padding: 0 !important;
        min-height: auto !important;
    }
    
    /* Clean text styling for high-contrast print */
    .dossier-markdown-body {
        color: #000000 !important;
    }
    
    .dossier-markdown-body h1,
    .dossier-markdown-body h2,
    .dossier-markdown-body h3 {
        color: #000000 !important;
        page-break-after: avoid;
    }
    
    .dossier-markdown-body h2 {
        border-bottom: 1px solid #cccccc !important;
    }
    
    .dossier-markdown-body p {
        color: #000000 !important;
    }
    
    .dossier-markdown-body table {
        border: 1px solid #cccccc !important;
        background: transparent !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .dossier-markdown-body th {
        background: #f1f5f9 !important;
        color: #000000 !important;
        border-bottom: 1px solid #cccccc !important;
    }
    
    .dossier-markdown-body td {
        border-bottom: 1px solid #eeeeee !important;
        color: #000000 !important;
    }
    
    .dossier-markdown-body .dossier-timeline::before {
        background: #cccccc !important;
    }
    
    .dossier-markdown-body .dossier-timeline li::before {
        border-color: #000000 !important;
        background: #ffffff !important;
    }
    
    .verdict-badge {
        border: 1px solid #000000 !important;
        color: #000000 !important;
        background: #f1f5f9 !important;
        box-shadow: none !important;
    }
}

/* ==========================================================================
   Transparency Portal Styles (Toggles & Summary Cards)
   ========================================================================== */
.transparency-summary-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.transparency-summary-card:hover {
    border-color: rgba(0, 242, 254, 0.2) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

body.light-theme .transparency-summary-card {
    background: rgba(15, 23, 42, 0.02) !important;
    border-color: rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02) !important;
}

body.light-theme .transparency-summary-card:hover {
    border-color: rgba(59, 130, 246, 0.3) !important;
    background: rgba(15, 23, 42, 0.03) !important;
}

.upload-tab-btn {
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.upload-tab-btn:hover {
    color: var(--text-primary) !important;
}

.upload-tab-btn.active {
    color: var(--text-primary) !important;
    border-bottom-color: var(--primary-start) !important;
}

/* ==========================================================================
   Consignante Form Modal Overlay
   ========================================================================== */
.consignante-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 19, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.light-theme .consignante-modal-overlay {
    background: rgba(15, 23, 42, 0.4);
}

.consignante-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    width: 100%;
    max-width: 520px;
    background: var(--card-bg) !important;
    border: var(--border-glass) !important;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.consignante-modal-overlay.active .modal-card {
    transform: scale(1);
}

.btn-edit-consignante {
    transition: var(--transition-smooth);
}

.btn-edit-consignante:hover {
    opacity: 1 !important;
    background: rgba(0, 242, 254, 0.15) !important;
    color: var(--primary-start) !important;
}

body.light-theme .btn-edit-consignante:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    color: var(--primary-start) !important;
}

/* ==========================================================================
   Consignantes Stats & Responsiveness Overrides
   ========================================================================== */
.consignante-stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
}


.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    margin: 0;
    outline: none;
}

.stats-badge:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.stats-badge.btn-action-diary:hover {
    background: rgba(0, 242, 254, 0.05) !important;
    border-color: rgba(0, 242, 254, 0.3) !important;
    color: var(--primary-start) !important;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.stats-badge.btn-action-transparency:hover {
    background: rgba(139, 92, 246, 0.05) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    color: #bc8cff !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
}

.stats-badge svg {
    flex-shrink: 0;
}

/* Light Theme overrides for stats badges */
body.light-theme .stats-badge {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #475569;
}

body.light-theme .stats-badge:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

body.light-theme .stats-badge.btn-action-diary:hover {
    background: rgba(0, 180, 216, 0.06) !important;
    border-color: rgba(0, 180, 216, 0.3) !important;
    color: #0077b6 !important;
}

body.light-theme .stats-badge.btn-action-transparency:hover {
    background: rgba(124, 58, 237, 0.06) !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
    color: #6d28d9 !important;
}

@media (max-width: 768px) {
    .journal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .journal-item > div:first-child {
        width: 100%;
    }
    
    .journal-status-wrapper {
        width: 100%;
        justify-content: flex-end !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 12px;
    }
    
    body.light-theme .journal-status-wrapper {
        border-top-color: rgba(0, 0, 0, 0.06);
    }
}

/* ==========================================================================
   Accordion / Expandable Person Search Cards
   ========================================================================== */
.card-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.summary-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.summary-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

.meta-consignante {
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.meta-event-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-event-badge.nomeacao { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.meta-event-badge.exoneracao { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.meta-event-badge.aposentadoria { background: rgba(79, 172, 254, 0.15); color: #60a5fa; border: 1px solid rgba(79, 172, 254, 0.3); }
.meta-event-badge.licenca { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.meta-event-badge.outro { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); border: 1px solid rgba(255, 255, 255, 0.15); }

.summary-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.resource-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.indicator-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.indicator-badge svg {
    width: 12px;
    height: 12px;
}

.indicator-badge.diario.active {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--primary-start);
}

.indicator-badge.transparencia.active {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
    color: #a78bfa;
}

.indicator-badge.margem.active {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.indicator-badge.inactive {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    opacity: 0.45;
}

.summary-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.person-event-card:hover .summary-chevron {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.summary-chevron svg {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.person-event-card {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.person-event-card:hover {
    background: rgba(16, 22, 47, 0.55);
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.05), var(--glass-shadow);
}

.person-event-card.expanded {
    background: rgba(20, 30, 65, 0.6);
    border-color: var(--primary-start);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.15), var(--glass-shadow);
    cursor: default;
}

.person-event-card.expanded .summary-chevron svg {
    transform: rotate(180deg);
}

.card-details-expanded {
    display: none;
    opacity: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 16px;
}

.person-event-card.expanded .card-details-expanded {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: expand-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes expand-fade-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Light theme support */
body.light-theme .indicator-badge.inactive {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #94a3b8;
}

body.light-theme .summary-chevron {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .person-event-card:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 180, 216, 0.3);
}

body.light-theme .person-event-card.expanded {
    background: #ffffff;
    border-color: #0077b6;
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.12);
}

body.light-theme .card-details-expanded {
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* Custom styling for prominent Details button */
.btn-details-cta {
    padding: 6px 14px;
    font-size: 12px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    box-shadow: 0 0 12px var(--primary-glow);
    transition: var(--transition-smooth);
    font-weight: 700;
    color: #070913;
}

.btn-details-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 0 16px var(--primary-glow);
}

body.light-theme .btn-details-cta {
    color: #ffffff;
}

/* ==========================================================================
   TAB: CPF QUERY (GOOGLE-INSPIRED)
   ========================================================================== */
.cpf-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 60px;
    animation: fade-in 0.4s ease;
}

.google-logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.google-logo-text {
    font-size: 56px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px var(--primary-glow));
    line-height: 1;
}

.google-logo-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 600;
}

.google-desc {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 500px;
}

.google-search-bar {
    display: flex;
    width: 100%;
    background: var(--card-bg);
    border: var(--border-glass);
    border-radius: 28px;
    padding: 6px 14px 6px 20px;
    align-items: center;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    margin-bottom: 25px;
}

.google-search-bar:focus-within {
    border-color: var(--border-color-focus);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2), var(--glass-shadow);
}

.google-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    padding: 12px 16px;
}

.google-search-bar input::placeholder {
    color: var(--text-muted);
}

.google-search-bar .btn-primary {
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    margin-left: 10px;
}

#cpf-search-status {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Light theme support for CPF tab */
body.light-theme .google-search-bar {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
body.light-theme .google-search-bar:focus-within {
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.12);
}

/* ==========================================================================
   Login Page Styles
   ========================================================================== */
.login-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #070913;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.login-bg-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.login-grad-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0) 70%);
    filter: blur(80px);
}

.login-grad-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -200px;
    left: -100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0) 70%);
    filter: blur(80px);
}

/* Moving Pages Floating Animation (Gives premium "pages moving" aesthetic) */
.floating-pages-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    overflow: hidden;
}

.floating-page {
    position: absolute;
    width: 80px;
    height: 110px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: float-page 18s infinite linear;
    opacity: 0;
}

/* Make it look like documents/reports with dummy text lines */
.floating-page::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10px;
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    box-shadow: 
        0 10px 0 rgba(255, 255, 255, 0.15),
        0 20px 0 rgba(255, 255, 255, 0.15),
        0 30px 0 rgba(255, 255, 255, 0.1),
        0 40px 0 rgba(255, 255, 255, 0.1),
        0 50px 0 rgba(255, 255, 255, 0.15),
        0 60px 0 rgba(255, 255, 255, 0.15),
        0 70px 0 rgba(255, 255, 255, 0.1);
}

.floating-page:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 16s; width: 90px; height: 125px; }
.floating-page:nth-child(2) { left: 30%; animation-delay: 3s; animation-duration: 22s; transform: rotate(15deg); }
.floating-page:nth-child(3) { left: 55%; animation-delay: 7s; animation-duration: 19s; transform: rotate(-10deg); width: 85px; height: 115px; }
.floating-page:nth-child(4) { left: 80%; animation-delay: 1s; animation-duration: 25s; transform: rotate(8deg); }
.floating-page:nth-child(5) { left: 20%; animation-delay: 11s; animation-duration: 20s; transform: rotate(-5deg); }
.floating-page:nth-child(6) { left: 70%; animation-delay: 13s; animation-duration: 17s; transform: rotate(12deg); width: 90px; height: 125px; }

@keyframes float-page {
    0% {
        bottom: -150px;
        transform: translateY(0) rotate(0deg) scale(0.9);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        bottom: 110%;
        transform: translateY(-100px) rotate(45deg) scale(1.1);
        opacity: 0;
    }
}

.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    background: rgba(13, 17, 39, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.login-logo-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    box-shadow: 0 0 25px var(--primary-glow);
    color: #070913;
}

.login-logo-icon svg {
    width: 36px;
    height: 36px;
}

.login-logo h2 {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.login-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.login-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.login-input-group label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.login-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0 14px;
    height: 48px;
    transition: var(--transition-smooth);
}

.login-input-wrapper:focus-within {
    border-color: var(--primary-start);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.login-input-wrapper input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    font-size: 14px;
    height: 100%;
    padding-left: 10px;
    box-shadow: none !important;
}

/* Override browser autofill styling for login fields */
.login-input-wrapper input:-webkit-autofill,
.login-input-wrapper input:-webkit-autofill:hover, 
.login-input-wrapper input:-webkit-autofill:focus, 
.login-input-wrapper input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0d1127 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Global autofill override to prevent background mismatches in other inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #10162f inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

body.light-theme input:-webkit-autofill,
body.light-theme input:-webkit-autofill:hover, 
body.light-theme input:-webkit-autofill:focus, 
body.light-theme input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #0f172a !important;
}

.login-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.login-input-icon {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.45);
}

.btn-login-submit {
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: #070913;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: var(--transition-smooth);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
}

.btn-login-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-error-message {
    color: var(--danger);
    font-size: 12px;
    text-align: left;
    margin-top: 6px;
    display: none;
}

/* ==========================================================================
   Logs Viabillize Table Styling
   ========================================================================== */
.logs-table-container {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.premium-table {
    border-collapse: separate;
    border-spacing: 0;
}

.premium-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.premium-table td {
    padding: 12px 14px;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.premium-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Light Theme support for logs table */
body.light-theme .logs-table-container {
    background: rgba(15, 23, 42, 0.01);
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

body.light-theme .premium-table th {
    background: rgba(15, 23, 42, 0.02);
    color: #64748b;
    border-bottom-color: rgba(15, 23, 42, 0.06);
}

body.light-theme .premium-table td {
    border-bottom-color: rgba(15, 23, 42, 0.03);
    color: #334155;
}

body.light-theme .premium-table tr:hover td {
    background: rgba(15, 23, 42, 0.015);
}

/* ==========================================================================
   Logs Dashboard
   ========================================================================== */

/* Period filter buttons */
.logs-dash-filter {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.logs-dash-filter:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.logs-dash-filter.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 172, 254, 0.15));
    border-color: rgba(0, 242, 254, 0.4);
    color: #00f2fe;
    font-weight: 600;
}

/* KPI Cards */
.logs-dash-kpi-card {
    background: rgba(16, 22, 47, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}

.logs-dash-kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--kpi-accent, #00f2fe), transparent);
    opacity: 0.6;
}

.logs-dash-kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.logs-dash-kpi-value {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #00f2fe;
    line-height: 1;
}

/* Horizontal bar chart rows */
.ldash-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
}

.ldash-bar-label {
    width: 130px;
    flex-shrink: 0;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.ldash-bar-track {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    height: 22px;
    overflow: hidden;
    position: relative;
}

.ldash-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    min-width: 28px;
}

.ldash-bar-fill.sol {
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.3), rgba(0, 242, 254, 0.7));
}

.ldash-bar-fill.ent {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0.75));
}

/* Empty state for dashboard charts */
.ldash-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 260px;
    gap: 10px;
    opacity: 0.5;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Light theme overrides */
body.light-theme .logs-dash-filter {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
    color: #475569;
}

body.light-theme .logs-dash-filter.active {
    background: rgba(0, 150, 190, 0.12);
    border-color: rgba(0, 150, 190, 0.4);
    color: #0284c7;
}

body.light-theme .logs-dash-kpi-card {
    background: rgba(240, 245, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.1);
}

body.light-theme .ldash-bar-track {
    background: rgba(15, 23, 42, 0.06);
}

body.light-theme #logs-dashboard-overlay {
    background: rgba(230, 235, 248, 0.9);
}

