/* style.css - Smartcoin BOT Dashboard Stylesheet with Theme Engine support */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Theme Variables - Dark Mode (Default) */
    --bg-dark: #080710;
    --bg-body: radial-gradient(circle at 50% 0%, #16142c 0%, #09080e 70%, #050508 100%);
    --bg-card: rgba(22, 20, 38, 0.55);
    --bg-header: rgba(8, 7, 16, 0.6);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(99, 102, 241, 0.25);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --table-header-bg: rgba(255, 255, 255, 0.02);
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-focus-bg: rgba(255, 255, 255, 0.05);
    --modal-bg: #0d0c15;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --card-shadow-hover: rgba(99, 102, 241, 0.08);
    --overlay-bg: rgba(8, 7, 16, 0.85);
    --item-bg: rgba(255, 255, 255, 0.01);
    
    /* Core Constants */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    /* Solid Colors */
    --color-primary: #6366f1;
    --color-primary-hover: #4f46e5;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    
    /* Layout Sizes */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables Overrides */
html.light-theme, :root.light-theme {
    --bg-dark: #f1f5f9;
    --bg-body: radial-gradient(circle at 50% 0%, #f8fafc 0%, #e2e8f0 70%, #cbd5e1 100%);
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-header: rgba(255, 255, 255, 0.85);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-glow: rgba(99, 102, 241, 0.15);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --table-header-bg: rgba(15, 23, 42, 0.02);
    --input-bg: rgba(15, 23, 42, 0.02);
    --input-focus-bg: rgba(15, 23, 42, 0.04);
    --modal-bg: #ffffff;
    --shadow-color: rgba(15, 23, 42, 0.08);
    --card-shadow-hover: rgba(99, 102, 241, 0.04);
    --overlay-bg: rgba(241, 245, 249, 0.9);
    --item-bg: rgba(15, 23, 42, 0.01);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
.light-theme ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.01);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Glassmorphism utility classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--border-glow);
    box-shadow: 0 12px 40px 0 var(--card-shadow-hover);
}

/* App Header */
header.app-header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.brand-logo {
    height: 34px;
    object-fit: contain;
    transition: var(--transition);
}

.brand-logo.smartcoin-logo {
    height: 38px;
}

.brand-logo.ikontel-logo {
    height: 28px;
}

.brand-divider {
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 300;
    margin: 0 4px;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(120deg, var(--text-primary) 40%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-top: -2px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--input-focus-bg);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    gap: 4px;
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
}

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

.btn-text.active {
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.05);
}

/* Theme toggle button specific spacing/size */
.btn-theme-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout Wrapper */
.dashboard-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Info Banner */
.info-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.info-banner-left h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-banner-left p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.kpi-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
}

.kpi-icon-container {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.kpi-icon-container.primary { background: var(--gradient-primary); }
.kpi-icon-container.success { background: var(--gradient-success); }
.kpi-icon-container.warning { background: var(--gradient-warning); }
.kpi-icon-container.danger { background: var(--gradient-danger); }

.kpi-body {
    margin-top: 16px;
}

.kpi-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.kpi-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

.kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 700;
}

.kpi-trend.positive { color: var(--color-success); }
.kpi-trend.negative { color: var(--color-danger); }

/* Filter Toolbar */
.toolbar-panel {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.filters-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.input-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.input-field {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    outline: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.input-field:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
    background: var(--input-focus-bg);
}

.input-field-icon {
    padding-left: 42px;
}

.search-input {
    width: 280px;
}

select.input-field {
    padding-right: 40px;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.light-theme select.input-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

.date-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.chart-card {
    padding: 24px;
    min-height: 380px;
}

.chart-card.col-8 {
    grid-column: span 8;
}

.chart-card.col-4 {
    grid-column: span 4;
}

.chart-card.col-12 {
    grid-column: span 12;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-title i {
    color: var(--color-primary);
}

/* Table Card */
.table-card {
    padding: 24px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.table-wrapper {
    overflow-x: auto;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

table.data-table th {
    background: var(--table-header-bg);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

table.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
}

table.data-table tbody tr:last-child td {
    border-bottom: none;
}

table.data-table tbody tr {
    cursor: pointer;
}

table.data-table tbody tr:hover td {
    background: var(--table-header-bg);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

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

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-payment {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    gap: 4px;
}

.light-theme .badge-payment {
    background: rgba(16, 185, 129, 0.1);
}

.badge-payment i {
    width: 11px;
    height: 11px;
}

/* PTP — Promise to Pay (date pledged, payment pending) — Amber */
.badge-ptp {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
    gap: 4px;
}
.light-theme .badge-ptp {
    background: rgba(245, 158, 11, 0.08);
}
.badge-ptp i {
    width: 11px;
    height: 11px;
}

/* RTP — Refused to Pay (connected, no commitment) — Orange-Red */
.badge-rtp {
    background: rgba(239, 68, 68, 0.10);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.22);
    gap: 4px;
}
.light-theme .badge-rtp {
    background: rgba(239, 68, 68, 0.07);
}
.badge-rtp i {
    width: 11px;
    height: 11px;
}

/* NA — No response / failed call — Muted grey */
.badge-na {
    background: rgba(148, 163, 184, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.15);
    gap: 4px;
}
.light-theme .badge-na {
    background: rgba(100, 116, 139, 0.07);
}
.badge-na i {
    width: 11px;
    height: 11px;
}

/* Phone mask styling */
.phone-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.btn-toggle-mask {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-toggle-mask:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Pagination container */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.pagination-stats {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-page {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    padding: 0 6px;
}

.btn-page:hover:not(:disabled) {
    background: var(--input-focus-bg);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-page.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.btn-page:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Details Panel / Drawer Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.details-drawer {
    width: 480px;
    height: 100%;
    background: var(--modal-bg);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px var(--shadow-color);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow-y: auto;
}

.modal-overlay.active .details-drawer {
    transform: translateX(0);
}

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

.drawer-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-close {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
    border-color: rgba(239, 68, 68, 0.20);
}

/* Call details timeline/cards */
.details-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.details-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-item {
    background: var(--item-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.detail-item.full-width {
    grid-column: span 2;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 4px;
}

.call-graphic {
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 80%);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.call-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Splash Loader Screen */
.splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.5s ease;
}

.splash-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(99, 102, 241, 0.1);
    border-left-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.splash-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(120deg, var(--text-primary) 40%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.splash-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 400px;
    text-align: center;
    line-height: 1.6;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Password Lock Overlay */
.lock-overlay {
    position: fixed;
    top: 80px; /* Below header */
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.lock-card {
    width: 440px;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: auto;
}

.lock-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.25rem;
}

.lock-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.lock-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: -8px;
    line-height: 1.5;
}

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

.error-txt {
    color: var(--color-danger);
    font-size: 0.75rem;
    font-weight: 600;
    height: 16px;
}

/* Upload Portal Dropzone */
.upload-card {
    padding: 40px;
    text-align: center;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    background: var(--item-bg);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.03);
    box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.05);
}

.upload-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.5rem;
}

.upload-zone:hover .upload-icon, .upload-zone.dragover .upload-icon {
    color: white;
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.upload-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.upload-text p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.upload-progress-container {
    width: 100%;
    margin-top: 20px;
    display: none;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    width: 100%;
    background: var(--input-bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.2s ease;
}

/* Upload Success Screen */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.stat-box {
    background: var(--item-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 4px;
}

/* Spinning animation for refreshes */
.spinning {
    animation: spin 1s linear infinite;
}

/* Table filters styling */
.table-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    align-items: center;
    background: var(--table-header-bg);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.table-filter-input {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    height: 34px;
}

.table-filter-input.select-input {
    padding-right: 30px;
}

.unique-filter-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.checkbox-label {
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .charts-grid {
        display: flex;
        flex-direction: column;
    }
    .chart-card {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .toolbar-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .filters-group {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
        width: 100%;
    }
    .filter-actions {
        display: flex;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    header.app-header {
        height: auto;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        align-items: center;
        text-align: center;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    .logo-container {
        justify-content: center;
        flex-wrap: wrap;
    }

    .brand-logo {
        height: 28px;
    }
    .brand-logo.smartcoin-logo {
        height: 32px;
    }
    .brand-logo.ikontel-logo {
        height: 24px;
    }

    .dashboard-wrapper {
        padding: 15px;
        gap: 20px;
    }

    .info-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: center;
    }

    .info-banner-right {
        display: flex;
        justify-content: center;
    }

    .table-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }

    .table-filters .input-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .table-filters .input-container .input-field {
        width: calc(100% - 80px);
    }

    .unique-filter-container {
        margin-left: 0;
        justify-content: flex-start;
    }

    .pagination-container {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .details-drawer {
        width: 100%;
        padding: 24px 16px;
    }
    
    .lock-card {
        width: 100%;
        padding: 24px 16px;
    }

    .stats-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .table-filters .input-container {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .table-filters .input-container .input-field {
        width: 100%;
    }
}
