:root {
    --bg-main: #090D1A;
    --bg-card: rgba(17, 24, 39, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --primary-color: #10B981; /* Emerald green */
    --primary-hover: #34D399;
    --accent-color: #8B5CF6;  /* Purple */
    --accent-glow: rgba(139, 92, 246, 0.2);
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 60px;
}

/* Background Ambient Glows */
.glow-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(139, 92, 246, 0.05) 50%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Panel base */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-glow);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header */
.app-header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(9, 13, 26, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

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

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
}

.status-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Layout Grid Container */
.dashboard-container {
    max-width: 1400px;
    margin: 32px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Stats Row */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    font-size: 20px;
}

#stat-languages .stat-icon-wrapper {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-color);
}

#stat-sources .stat-icon-wrapper {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

#stat-marketing .stat-icon-wrapper {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-info h3 {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Search Bar Section */
.search-section {
    padding: 24px;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.search-options {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sensitivity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 90px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: var(--transition);
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 6px var(--accent-color);
    transition: var(--transition);
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

.slider-value {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 28px;
    text-align: right;
}

.search-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.vector-space-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.toggle-label {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 0 8px;
}

.btn-toggle {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-toggle.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-form-container {
    display: flex;
    gap: 12px;
}

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

.search-bar-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}

#search-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

#search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    outline: none;
    color: #fff;
    font-weight: 600;
    padding: 0 24px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Main Split View */
.dashboard-split {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

@media (max-width: 1024px) {
    .dashboard-split {
        grid-template-columns: 1fr;
    }
}

/* Results Pane */
.results-pane {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-title-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.results-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.results-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Article Card Style */
.article-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
}

.article-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.source-badge {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.lang-badge {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.date-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.similarity-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.similarity-bar {
    width: 60px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.similarity-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

.article-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.article-summary-box {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 14px;
    border-left: 3px solid var(--accent-color);
}

.summary-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-heading h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.summary-toggle-btn {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    text-decoration: underline;
}

.summary-text {
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.5;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.tag-topic {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.tag-theme {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
}

.tag-entity {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.15);
    color: #ddd6fe;
    cursor: pointer;
    transition: var(--transition);
}

.tag-entity:hover {
    background: rgba(139, 92, 246, 0.15);
}

.highlight-keyword {
    background-color: rgba(234, 179, 8, 0.2);
    color: #fde047;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

/* Empty State / Placeholders */
.empty-state {
    padding: 60px;
    text-align: center;
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.1);
}

/* Right Side Pane */
.analytics-pane {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.analytics-card {
    padding: 20px;
}

.analytics-card h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.chart-container {
    position: relative;
    height: 220px;
    width: 100%;
}

/* Entity Cloud */
.entity-cloud-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.entity-cloud-item {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.entity-cloud-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

.entity-type-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot-person { background-color: var(--accent-color); }
.dot-org { background-color: #3b82f6; }
.dot-gpe { background-color: #f59e0b; }
.dot-loc { background-color: #ec4899; }

.entity-count {
    color: var(--text-secondary);
    font-weight: 700;
    background: rgba(0, 0, 0, 0.2);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 9px;
}

.loading-placeholder {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Header Right & Auth Widgets */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-header-widget {
    display: flex;
    align-items: center;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-username {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Button small utility */
.btn-sm {
    padding: 6px 12px !important;
    font-size: 12px !important;
    height: 32px !important;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Notification Bell */
.notification-bell-container {
    position: relative;
}

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

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

.bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-color);
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px var(--primary-color);
    animation: pulseGlow 2s infinite;
}

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

/* Notifications Dropdown */
.notifications-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    width: 320px;
    z-index: 200;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 12px;
    animation: fadeIn 0.3s ease-out;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    outline: none;
}

.btn-text:hover {
    color: var(--primary-hover);
}

.notifications-dropdown-list {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
}

.empty-notifications {
    text-align: center;
    padding: 24px 0;
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

.notification-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition);
}

.notification-item.unread {
    border-left: 3px solid var(--primary-color);
    background: rgba(16, 185, 129, 0.03);
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 10px;
}

.notification-item-query {
    font-weight: 600;
    color: var(--text-primary);
}

.notification-item-body {
    line-height: 1.4;
}

.dropdown-footer {
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* Save Search Button inside search input wrapper */
.btn-save-search {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    z-index: 10;
}

.btn-save-search:hover {
    color: #F59E0B; /* Golden star on hover */
    transform: translateY(-50%) scale(1.1);
}

.btn-save-search.active {
    color: #F59E0B;
}

/* Personal Workspace Panel */
.workspace-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.workspace-tab {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.workspace-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.workspace-content {
    min-height: 100px;
    max-height: 320px;
    overflow-y: auto;
}

.workspace-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workspace-item {
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
}

.workspace-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.workspace-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.workspace-item-title {
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.workspace-item-meta {
    font-size: 10px;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
}

.btn-delete-search {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-delete-search:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Modals & Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 13, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    padding: 32px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.auth-tab {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 0;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--text-primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

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

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

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

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.input-wrapper input:focus {
    border-color: var(--accent-color);
}

.auth-error-message {
    font-size: 12px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Footer styling */
.app-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 11px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    background: rgba(9, 13, 26, 0.9);
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
    margin-top: 8px;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0 8px;
}

/* Custom Tooltip */
.custom-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: 280px;
    background-color: rgba(15, 23, 42, 0.98);
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 10px 14px;
    position: absolute;
    z-index: 100;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    font-size: 12px;
    line-height: 1.5;
    font-family: var(--font-body);
    font-weight: 400;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    pointer-events: none;
}

.custom-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(16, 185, 129, 0.4) transparent transparent transparent;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Make date picker calendar icon visible on dark background */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
