/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: #1e293b;
    --border-color: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --grafana-orange: #ff7f00;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navbar / Grafana-style Header */
.navbar {
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Grafana Header Specific */
.grafana-header {
    padding: 1rem 2rem;
}

.dialer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dialer-icon {
    font-size: 2rem;
}

.dialer-details h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.header-badges {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.client-id-badge {
    background: var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.campaign-display-badge {
    background: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: white;
    font-weight: 500;
}

.dialer-dropdown,
.campaign-dropdown-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.dialer-dropdown {
    background: var(--border-color);
    color: var(--text-secondary);
}

.campaign-dropdown-badge {
    background: var(--primary-color);
    color: white;
}

.stats-summary {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.live-count {
    color: var(--success-color);
}

.finished-count {
    color: var(--text-secondary);
}

.campaign-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.campaign-selector label {
    color: var(--text-secondary);
    font-weight: 500;
}

.campaign-dropdown {
    min-width: 150px;
}

.refresh-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Refresh Stack - Vertical */
.refresh-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

/* Refresh Button - Professional */
.btn-refresh {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-refresh:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Time Range Select - Professional */
.time-range-select {
    background: var(--dark-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
}

.time-range-select:focus {
    outline: none;
}

/* Logout Button - Professional */
.btn-logout {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.4rem 1rem;
}

/* Disposition Dropdown */
.disposition-dropdown {
    position: relative;
}

.disposition-btn {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

.disposition-btn:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.5);
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.disposition-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.disposition-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    max-height: 400px;
    overflow: hidden;
}

.disposition-dropdown.open .disposition-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.disposition-menu-header {
    padding: 0.75rem 1rem;
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.disposition-list {
    max-height: 340px;
    overflow-y: auto;
    padding: 0.5rem;
}

.disposition-list::-webkit-scrollbar {
    width: 6px;
}

.disposition-list::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

.disposition-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.disposition-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.disposition-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dispo-code {
    background: var(--border-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: monospace;
    min-width: 50px;
    text-align: center;
    color: var(--text-secondary);
}

.dispo-code.xfer {
    background: rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

.dispo-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dialer-status {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.dialer-active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.dialer-inactive {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.dialer-error {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Dashboard Sections */
.dashboard-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    padding: 1rem 1.5rem;
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-badge {
    background: var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.form-select {
    background: var(--darker-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Status Indicators */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.status-live {
    background: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

.status-finished {
    background: var(--text-secondary);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Dashboard Content Layout */
.dashboard-content {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: stretch;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.dashboard-content.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
    opacity: 0;
}

.collapse-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.collapse-toggle #collapseIcon {
    transition: transform 0.3s ease;
}

.collapse-toggle.collapsed #collapseIcon {
    transform: rotate(-90deg);
}

/* Stat Panel - Grafana Style */
.stat-panel {
    flex: 0 0 220px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.stat-panel:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.stat-panel-content {
    text-align: center;
    width: 100%;
}

.stat-panel .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.stat-panel .stat-value {
    font-size: 4rem;
    font-weight: 800;
    color: var(--success-color);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    50% {
        text-shadow: 0 2px 16px rgba(16, 185, 129, 0.6);
    }
}

/* Chart Panel */
.chart-panel {
    flex: 1;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    height: 280px;
    position: relative;
}

/* Chart Container */
.chart-container {
    padding: 2rem;
    height: 400px;
    position: relative;
}

/* Tables */
.table-container {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--dark-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

.row-live {
    border-left: 3px solid var(--success-color);
}

.row-finished {
    border-left: 3px solid var(--text-secondary);
}

.loading-cell,
.empty-cell,
.error-cell {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.error-cell {
    color: var(--danger-color);
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.badge-secondary {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.campaign-badge {
    background: var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: capitalize;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--border-color);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.login-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

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

/* Messages */
.message {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

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

.message-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

/* Admin Section */
.admin-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.create-client-form {
    max-width: 800px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-menu {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .campaign-selector {
        width: 100%;
    }

    .campaign-dropdown {
        flex: 1;
    }

    .stats-summary {
        width: 100%;
        justify-content: space-around;
    }

    .refresh-info {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-badges {
        flex-wrap: wrap;
    }

    .dashboard-content {
        flex-direction: column;
    }

    .stat-panel {
        flex: 0 0 auto;
        width: 100%;
        padding: 1.5rem;
    }

    .stat-panel .stat-value {
        font-size: 3rem;
    }

    .chart-panel {
        height: 250px;
    }
}

/* ========================================
   Live Calls Panel - Modern Design
   ======================================== */

.live-section {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.live-header {
    background: linear-gradient(90deg, var(--dark-bg) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.live-header-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #6ee7b7;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-header-badge .pulse-dot {
    background: #10b981;
}

.live-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.live-window-badge {
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    color: #6ee7b7;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Live Content Container - Single Row Layout */
.live-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: stretch;
    transition: all 0.3s ease;
    overflow: hidden;
}

.live-content.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
    opacity: 0;
}

/* Live Stat Card - Left Side */
.live-stat-card {
    position: relative;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, var(--dark-bg) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 220px;
    transition: all 0.3s ease;
}

.live-stat-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.live-stat-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #10b981;
    filter: blur(30px);
    opacity: 0.1;
    pointer-events: none;
}

.live-stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.live-stat-content {
    text-align: center;
    z-index: 1;
}

.live-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.live-stat-value {
    font-size: 4rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Live Chart Panel - Right Side */
.live-chart-panel {
    flex: 1;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    height: 280px;
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .live-content {
        flex-direction: column;
    }

    .live-stat-card {
        flex: 0 0 auto;
        width: 100%;
        padding: 1.5rem;
    }

    .live-stat-value {
        font-size: 3rem;
    }

    .live-header-info {
        display: none;
    }

    .live-chart-panel {
        height: 250px;
    }
}

/* ========================================
   XFER Analysis Panel - Modern Design
   ======================================== */

.xfer-section {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.xfer-header {
    background: linear-gradient(90deg, var(--dark-bg) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.xfer-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* XFER Status Indicator */
.status-xfer {
    background: #a855f7;
    box-shadow: 0 0 8px #a855f7;
}

.xfer-header-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #a5b4fc;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #818cf8;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* XFER Content Container */
.xfer-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.xfer-content.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
    opacity: 0;
}

/* Stats Grid */
.xfer-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* XFER Cards */
.xfer-card {
    position: relative;
    background: var(--dark-bg);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.xfer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.xfer-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    pointer-events: none;
}

/* Total Calls Card */
.xfer-card-total {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, var(--dark-bg) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.xfer-card-total:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.xfer-card-total .xfer-card-bg {
    background: #3b82f6;
}

.xfer-card-total .xfer-card-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.xfer-card-total .xfer-card-value {
    color: #60a5fa;
}

/* XFER Count Card */
.xfer-card-xfer {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, var(--dark-bg) 100%);
    border-color: rgba(168, 85, 247, 0.3);
}

.xfer-card-xfer:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
}

.xfer-card-xfer .xfer-card-bg {
    background: #a855f7;
}

.xfer-card-xfer .xfer-card-icon {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.xfer-card-xfer .xfer-card-value {
    color: #c084fc;
}

/* Gauge Card */
.xfer-card-gauge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, var(--dark-bg) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.xfer-card-gauge:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15);
}

/* Card Icon */
.xfer-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Card Content */
.xfer-card-content {
    flex: 1;
    z-index: 1;
}

.xfer-card-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.xfer-card-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* Gauge Container */
.xfer-gauge-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xfer-gauge-value {
    position: absolute;
    bottom: 5px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.xfer-gauge-value span:first-child {
    font-size: 2rem;
    font-weight: 800;
    color: #34d399;
    font-variant-numeric: tabular-nums;
}

.xfer-gauge-percent {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Chart Container */
.xfer-chart-container {
    background: var(--dark-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

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

.xfer-chart-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.xfer-chart-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.xfer-chart-wrapper {
    padding: 1.25rem;
    height: 220px;
}

/* Loading State */
.xfer-card.loading .xfer-card-value {
    background: linear-gradient(90deg, var(--border-color) 25%, var(--dark-bg) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .xfer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xfer-card-gauge {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .xfer-stats-grid {
        grid-template-columns: 1fr;
    }

    .xfer-card-gauge {
        grid-column: span 1;
    }

    .xfer-card-value {
        font-size: 2rem;
    }

    .xfer-header-badge {
        display: none;
    }
}

/* ========================================
   Disposition Graph Panel - Grafana Style
   ======================================== */

.dispo-section {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.dispo-header {
    background: linear-gradient(90deg, var(--dark-bg) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.dispo-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Disposition Status Indicator */
.status-dispo {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.dispo-header-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #6ee7b7;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Disposition Content Container */
.dispo-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.dispo-content.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
    opacity: 0;
}

/* Disposition Chart Container */
.dispo-chart-container {
    background: var(--dark-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1rem;
    height: 250px;
    position: relative;
}

/* Disposition Legend */
.dispo-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--dark-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.dispo-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.dispo-legend-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color);
}

.dispo-legend-item.inactive {
    opacity: 0.4;
}

.dispo-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.dispo-legend-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dispo-legend-value {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Disposition Chart Responsive */
@media (max-width: 768px) {
    .dispo-chart-container {
        height: 200px;
    }

    .dispo-legend {
        gap: 0.5rem;
    }

    .dispo-legend-item {
        padding: 0.25rem 0.5rem;
    }

    .dispo-legend-label {
        font-size: 0.65rem;
    }
}

/* ========================================
   Grid Panel - Call Records Table
   ======================================== */

.grid-section {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.grid-header {
    background: linear-gradient(90deg, var(--dark-bg) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.grid-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Grid Status Indicator */
.status-grid {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.grid-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.grid-count-badge {
    background: rgba(245, 158, 11, 0.15);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #fbbf24;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid Content Container */
.grid-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.grid-content.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
    opacity: 0;
}

/* Grid Table Container */
.grid-table-container {
    background: var(--dark-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

.grid-table-container::-webkit-scrollbar {
    width: 8px;
}

.grid-table-container::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

.grid-table-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.grid-table-container::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Grid Table */
.grid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.grid-table thead {
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--dark-bg) 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.grid-table th {
    padding: 0.5rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fbbf24;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
    vertical-align: top;
}

.grid-table th .th-content {
    margin-bottom: 0.5rem;
}

/* Grid Filter Inputs */
.grid-filter {
    width: 100%;
    padding: 0.35rem 0.5rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.grid-filter:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.grid-filter::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.grid-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.grid-table tbody tr {
    transition: background 0.2s ease;
}

.grid-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.08);
}

.grid-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.grid-table tbody tr:nth-child(even):hover {
    background: rgba(245, 158, 11, 0.08);
}

/* Grid Cell Styling */
.grid-table .cell-time {
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.grid-table .cell-phone {
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.grid-table .cell-dispo {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.grid-table .cell-dispo.dispo-xfer {
    color: #c084fc;
    background: rgba(168, 85, 247, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.grid-table .cell-dispo.dispo-ni {
    color: #f87171;
}

.grid-table .cell-dispo.dispo-cb {
    color: #4ade80;
}

.grid-table .cell-dispo.dispo-dnc {
    color: #ef4444;
}

.grid-table .cell-dispo.dispo-other {
    color: var(--text-secondary);
}

.grid-table .cell-duration {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #60a5fa;
    font-size: 0.8rem;
}

/* Empty and Loading States */
.grid-table .empty-cell,
.grid-table .loading-cell {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Grid Table Responsive */
@media (max-width: 768px) {
    .grid-table-container {
        max-height: 300px;
    }

    .grid-table th,
    .grid-table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .grid-table th {
        font-size: 0.65rem;
    }

    .grid-header-info {
        display: none;
    }
}

/* ========================================
   Admin Page - Action Buttons & Modals
   ======================================== */

/* Admin Action Buttons */
.admin-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.admin-actions .btn-icon {
    font-size: 1.25rem;
}

/* Action Cell in Table */
.action-cell {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.action-cell .btn-sm {
    white-space: nowrap;
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--dark-bg);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .form-group {
    margin-bottom: 1.25rem;
}

.modal-body .form-group:last-of-type {
    margin-bottom: 1rem;
}

.modal-body .form-group input:disabled {
    background: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.modal-actions .btn {
    min-width: 100px;
}

/* Responsive Modal */
@media (max-width: 576px) {
    .modal-content {
        max-width: 100%;
        margin: 1rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }

    .admin-actions {
        flex-direction: column;
    }

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

    .action-cell {
        flex-direction: column;
    }
}

/* ========================================
   Client Details Panel
   ======================================== */

.client-section {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.client-header {
    background: linear-gradient(90deg, var(--dark-bg) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Client Status Indicator */
.status-client {
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
}

.client-header-badge {
    background: rgba(59, 130, 246, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #60a5fa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Client Content Container */
.client-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.client-content.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
    opacity: 0;
}

/* Client Table Container */
.client-table-container {
    background: var(--dark-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Client Table */
.client-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.client-table thead {
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--dark-bg) 100%);
}

.client-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #60a5fa;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.client-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.client-table tbody tr {
    transition: background 0.2s ease;
}

.client-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.08);
}

.client-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.client-table tbody tr:nth-child(even):hover {
    background: rgba(59, 130, 246, 0.08);
}

/* Client Cell Styling */
.client-table .cell-dialer {
    font-weight: 600;
    color: var(--text-primary);
}

.client-table .cell-campaign {
    text-transform: uppercase;
    font-weight: 500;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.8rem;
}

.client-table .cell-model {
    font-weight: 500;
    color: #22c55e;
}

.client-table .cell-age {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #fbbf24;
    font-weight: 500;
}

.client-table .empty-cell {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Client Table Responsive */
@media (max-width: 768px) {
    .client-table th,
    .client-table td {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }

    .client-table th {
        font-size: 0.65rem;
    }

    .client-header-badge {
        display: none;
    }
}

/* ========================================
   Modern Split-Screen Client Login
   ======================================== */

.login-page-split {
    min-height: 100vh;
    background: var(--darker-bg);
    overflow: hidden;
}

.login-split-container {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Branding */
.login-brand-side {
    flex: 1;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    text-align: center;
}

.brand-logo {
    margin-bottom: 2.5rem;
}

.brand-logo img {
    max-width: 280px;
    height: auto;
    filter: brightness(0) invert(1);
}

.brand-tagline {
    margin-bottom: 3rem;
}

.brand-tagline h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.brand-tagline p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-item span {
    font-size: 1rem;
    font-weight: 500;
    color: white;
}

/* Decorative Elements */
.brand-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Right Side - Login Form */
.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--darker-bg);
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.mobile-logo {
    display: none;
    margin-bottom: 1.5rem;
}

.mobile-logo img {
    width: 60px;
    height: auto;
}

.login-form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-form-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Modern Form Groups */
.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-group-modern label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Only target the lock icon (direct child svg, not inside button) */
.input-wrapper > svg {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 3rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--dark-bg);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.input-wrapper input:focus ~ svg:first-of-type,
.input-wrapper:focus-within > svg {
    color: var(--primary-color);
}

/* Password toggle inside input-wrapper */
.input-wrapper .password-toggle {
    position: absolute;
    right: 0.75rem;
    z-index: 2;
}

.input-wrapper input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle svg {
    pointer-events: none;
}

/* Admin Login Password Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.password-input-wrapper input:focus {
    outline: none;
    border-color: #ef4444;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.password-input-wrapper input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.password-input-wrapper .password-toggle {
    position: absolute;
    right: 0.75rem;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

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

.btn-login svg {
    transition: transform 0.3s ease;
}

.btn-login:hover svg {
    transform: translateX(4px);
}

/* Footer Text */
.login-footer-text {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

.login-footer-text strong {
    color: var(--primary-color);
}

/* Alert Styling for Login */
.login-form-container .alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
}

/* Split Login Responsive */
@media (max-width: 992px) {
    .login-split-container {
        flex-direction: column;
    }

    .login-brand-side {
        padding: 2rem;
        min-height: auto;
    }

    .brand-logo img {
        max-width: 200px;
    }

    .brand-tagline {
        margin-bottom: 2rem;
    }

    .brand-tagline h2 {
        font-size: 1.5rem;
    }

    .brand-tagline p {
        font-size: 1rem;
    }

    .brand-features {
        display: none;
    }

    .login-form-side {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .login-brand-side {
        display: none;
    }

    .mobile-logo {
        display: block;
    }

    .login-form-container {
        max-width: 100%;
    }

    .login-form-header h1 {
        font-size: 1.75rem;
    }
}

/* ========================================
   Admin Login Page - Minimal & Secure
   ======================================== */

.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0a0a0f 0%, #111118 100%);
    padding: 1rem;
}

.admin-login-container {
    width: 100%;
    max-width: 380px;
}

.admin-login-box {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.admin-login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f87171;
}

.admin-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-login-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.admin-login-header p {
    font-size: 0.875rem;
    color: #ef4444;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Admin Form Groups */
.form-group-admin {
    margin-bottom: 1.25rem;
}

.form-group-admin label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group-admin input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group-admin input:focus {
    outline: none;
    border-color: #ef4444;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group-admin input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Admin Login Button */
.btn-admin-login {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-admin-login:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-admin-login:active {
    transform: scale(0.98);
}

/* Admin Alert Styling */
.admin-login-box .alert {
    margin-bottom: 1.5rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

/* ========================================
   Mobile-First Responsive Improvements
   ======================================== */

/* Improved Header for Mobile */
@media (max-width: 768px) {
    .grafana-header {
        padding: 0.75rem 1rem;
    }

    .navbar-brand {
        width: 100%;
    }

    .dialer-details h1 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .header-badges {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .dialer-dropdown,
    .campaign-dropdown-badge {
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .refresh-info {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    #lastRefresh {
        width: 100%;
        text-align: center;
        font-size: 0.75rem;
    }

    .disposition-dropdown {
        order: 2;
    }

    .refresh-stack {
        flex-direction: row;
        order: 1;
        flex: 1;
    }

    .btn-refresh {
        flex: 1;
        padding: 0.5rem 0.75rem;
        min-height: 44px;
        font-size: 0.75rem;
    }

    .time-range-select {
        flex: 1;
        padding: 0.4rem 0.5rem;
        min-height: 44px;
        font-size: 0.75rem;
    }

    .btn-logout {
        width: 100%;
        min-height: 44px;
        text-align: center;
        padding: 0.5rem 1rem;
    }

    .disposition-btn {
        min-height: 44px;
        padding: 0.5rem 0.75rem;
    }

    .disposition-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 60vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }

    .disposition-dropdown.open .disposition-menu {
        transform: translateY(0);
    }

    .container {
        padding: 1rem;
    }

    .dashboard-container {
        gap: 1rem;
    }

    /* Section headers mobile */
    .section-header {
        padding: 0.75rem 1rem;
    }

    .section-header h2 {
        font-size: 1rem;
    }

    .collapse-toggle {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Small Phone Breakpoint (480px and below) */
@media (max-width: 480px) {
    .grafana-header {
        padding: 0.5rem 0.75rem;
    }

    .dialer-details h1 {
        font-size: 1rem;
        word-break: break-word;
    }

    .navbar-menu {
        gap: 0.5rem;
    }

    #lastRefresh {
        font-size: 0.7rem;
    }

    .refresh-stack {
        gap: 0.35rem;
    }

    .btn-refresh,
    .time-range-select {
        font-size: 0.65rem;
        padding: 0.4rem 0.5rem;
    }

    .disposition-btn {
        font-size: 0.65rem;
        padding: 0.4rem 0.5rem;
    }

    .container {
        padding: 0.5rem;
    }

    .dashboard-container {
        gap: 0.75rem;
    }

    .section-header {
        padding: 0.5rem 0.75rem;
    }

    .section-header h2 {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .status-indicator {
        width: 8px;
        height: 8px;
    }

    /* Live Calls Panel Mobile */
    .live-content {
        padding: 1rem;
        gap: 1rem;
    }

    .live-stat-card {
        padding: 1rem;
    }

    .live-stat-value {
        font-size: 2.5rem;
    }

    .live-stat-label {
        font-size: 0.75rem;
    }

    .live-chart-panel {
        height: 200px;
        padding: 1rem;
    }

    /* XFER Panel Mobile */
    .xfer-content {
        padding: 1rem;
    }

    .xfer-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .xfer-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        font-size: 1.25rem;
    }

    .xfer-card-value {
        font-size: 1.75rem;
    }

    .xfer-card-label {
        font-size: 0.7rem;
    }

    .xfer-gauge-value span:first-child {
        font-size: 1.5rem;
    }

    /* Disposition Panel Mobile */
    .dispo-content {
        padding: 1rem;
    }

    .dispo-chart-container {
        height: 180px;
        padding: 0.75rem;
    }

    .dispo-legend {
        padding: 0.5rem;
        gap: 0.35rem;
    }

    .dispo-legend-item {
        padding: 0.25rem 0.4rem;
    }

    .dispo-legend-label {
        font-size: 0.6rem;
    }

    .dispo-legend-value {
        font-size: 0.6rem;
    }

    /* Grid/Table Panel Mobile */
    .grid-content {
        padding: 1rem;
    }

    .grid-table-container {
        max-height: 250px;
        border-radius: 8px;
    }

    /* Client Panel Mobile */
    .client-content {
        padding: 1rem;
    }

    .client-table-container {
        border-radius: 8px;
    }
}

/* Improved Touch Targets */
@media (max-width: 768px) {
    /* All interactive elements should be at least 44px */
    .btn,
    .btn-sm,
    .form-select,
    select,
    button {
        min-height: 44px;
    }

    .btn-sm {
        padding: 0.5rem 0.75rem;
    }

    /* Improve filter inputs touch targets */
    .grid-filter {
        min-height: 40px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    /* Improve form inputs */
    .form-group input {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .form-select {
        min-height: 44px;
        font-size: 16px;
    }
}

/* Mobile-Friendly Tables */
@media (max-width: 576px) {
    /* Client Table - Horizontal scroll with better visibility */
    .client-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .client-table {
        min-width: 500px;
        font-size: 0.75rem;
    }

    .client-table th,
    .client-table td {
        padding: 0.5rem 0.5rem;
        font-size: 0.7rem;
    }

    .client-table th {
        font-size: 0.6rem;
    }

    .client-table .cell-campaign {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }

    /* Grid/Call Records Table - Horizontal scroll */
    .grid-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .grid-table {
        min-width: 450px;
        font-size: 0.75rem;
    }

    .grid-table th,
    .grid-table td {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
    }

    .grid-table th {
        font-size: 0.6rem;
    }

    .grid-filter {
        font-size: 0.65rem;
        padding: 0.35rem 0.4rem;
        min-height: 36px;
    }

    /* Table scroll indicator hint */
    .client-table-container::after,
    .grid-table-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to left, rgba(15, 23, 42, 0.8), transparent);
        pointer-events: none;
    }

    .client-table-container,
    .grid-table-container {
        position: relative;
    }
}

/* Extra small phones (below 360px) */
@media (max-width: 360px) {
    .grafana-header {
        padding: 0.5rem;
    }

    .dialer-details h1 {
        font-size: 0.9rem;
    }

    .header-badges {
        gap: 0.35rem;
    }

    .dialer-dropdown,
    .campaign-dropdown-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }

    .section-header h2 {
        font-size: 0.8rem;
    }

    .live-stat-value {
        font-size: 2rem;
    }

    .xfer-card-value {
        font-size: 1.5rem;
    }

    .xfer-gauge-value span:first-child {
        font-size: 1.25rem;
    }
}

/* Landscape mode on phones */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .navbar-brand {
        flex: 1;
    }

    .navbar-menu {
        flex-direction: row;
        width: auto;
        flex-wrap: wrap;
    }

    .header-badges {
        flex-direction: row;
    }

    .dialer-dropdown,
    .campaign-dropdown-badge {
        width: auto;
        min-width: 120px;
    }

    .live-content,
    .xfer-content {
        max-height: none;
    }

    .live-chart-panel {
        height: 200px;
    }

    .dispo-chart-container {
        height: 180px;
    }
}

/* Safe area support for notched phones */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    @media (max-width: 768px) {
        .navbar {
            padding-left: max(0.75rem, env(safe-area-inset-left));
            padding-right: max(0.75rem, env(safe-area-inset-right));
        }

        .container {
            padding-left: max(0.5rem, env(safe-area-inset-left));
            padding-right: max(0.5rem, env(safe-area-inset-right));
        }
    }
}

/* ========================================
   Theme Toggle Button
   ======================================== */

.btn-theme {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-theme:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.theme-icon-dark,
.theme-icon-light {
    font-size: 1.25rem;
    transition: all 0.3s ease;
    position: absolute;
}

/* Dark theme (default) - show moon, hide sun */
.theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-icon-light {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Light theme - show sun, hide moon */
body.light-theme .theme-icon-dark {
    opacity: 0;
    transform: rotate(90deg);
}

body.light-theme .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg);
}

/* ========================================
   Light Theme Styles
   ======================================== */

body.light-theme {
    /* Primary colors - softer, more comfortable for eyes */
    --primary-color: #3b82f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;

    /* Background colors - warm white, easy on eyes */
    --dark-bg: #f8fafc;
    --darker-bg: #f1f5f9;
    --card-bg: #ffffff;

    /* Border - subtle but visible */
    --border-color: #e2e8f0;

    /* Text colors - high contrast for readability */
    --text-primary: #0f172a;
    --text-secondary: #475569;

    /* Additional light theme colors */
    --light-accent: #dbeafe;
    --light-success-bg: #d1fae5;
    --light-danger-bg: #fee2e2;
    --light-warning-bg: #fef3c7;
}

body.light-theme {
    background: var(--darker-bg);
    color: var(--text-primary);
}

/* Navbar Light Theme */
body.light-theme .navbar {
    background: var(--card-bg);
    border-bottom-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.light-theme .navbar-brand h1,
body.light-theme .dialer-details h1 {
    color: var(--text-primary);
}

/* Dropdowns Light Theme */
body.light-theme .dialer-dropdown {
    background: var(--dark-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

body.light-theme .campaign-dropdown-badge {
    background: var(--primary-color);
}

body.light-theme .form-select {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.light-theme .time-range-select {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Buttons Light Theme */
body.light-theme .btn-outline {
    color: var(--text-primary);
    border-color: var(--border-color);
    background: var(--card-bg);
}

body.light-theme .btn-outline:hover {
    background: var(--dark-bg);
}

body.light-theme .btn-theme {
    background: var(--dark-bg);
    border-color: var(--border-color);
}

body.light-theme .btn-theme:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Dashboard Sections Light Theme */
body.light-theme .dashboard-section {
    background: var(--card-bg);
    border-color: var(--border-color);
}

body.light-theme .section-header {
    background: var(--dark-bg);
    border-bottom-color: var(--border-color);
}

body.light-theme .section-header h2 {
    color: var(--text-primary);
}

/* Client Section Light Theme */
body.light-theme .client-section {
    border-color: rgba(59, 130, 246, 0.3);
}

body.light-theme .client-header {
    background: linear-gradient(90deg, var(--dark-bg) 0%, rgba(59, 130, 246, 0.1) 100%);
}

body.light-theme .client-table-container {
    background: var(--card-bg);
}

body.light-theme .client-table thead {
    background: var(--dark-bg);
}

body.light-theme .client-table td {
    border-bottom-color: var(--border-color);
}

body.light-theme .client-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.08);
}

body.light-theme .client-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

/* Live Section Light Theme */
body.light-theme .live-section {
    border-color: rgba(16, 185, 129, 0.3);
}

body.light-theme .live-header {
    background: linear-gradient(90deg, var(--dark-bg) 0%, rgba(16, 185, 129, 0.1) 100%);
}

body.light-theme .live-stat-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--card-bg) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

body.light-theme .live-chart-panel {
    background: var(--card-bg);
    border-color: var(--border-color);
}

/* XFER Section Light Theme */
body.light-theme .xfer-section {
    border-color: rgba(99, 102, 241, 0.3);
}

body.light-theme .xfer-header {
    background: linear-gradient(90deg, var(--dark-bg) 0%, rgba(99, 102, 241, 0.1) 100%);
}

body.light-theme .xfer-card {
    background: var(--card-bg);
}

body.light-theme .xfer-card-total {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, var(--card-bg) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

body.light-theme .xfer-card-xfer {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, var(--card-bg) 100%);
    border-color: rgba(168, 85, 247, 0.3);
}

body.light-theme .xfer-card-gauge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--card-bg) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

body.light-theme .xfer-chart-container {
    background: var(--card-bg);
    border-color: var(--border-color);
}

body.light-theme .xfer-chart-header {
    border-bottom-color: var(--border-color);
}

/* Disposition Section Light Theme */
body.light-theme .dispo-section {
    border-color: rgba(16, 185, 129, 0.3);
}

body.light-theme .dispo-header {
    background: linear-gradient(90deg, var(--dark-bg) 0%, rgba(16, 185, 129, 0.1) 100%);
}

body.light-theme .dispo-chart-container {
    background: var(--card-bg);
    border-color: var(--border-color);
}

body.light-theme .dispo-legend {
    background: var(--card-bg);
    border-color: var(--border-color);
}

body.light-theme .dispo-legend-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Grid Section Light Theme */
body.light-theme .grid-section {
    border-color: rgba(245, 158, 11, 0.3);
}

body.light-theme .grid-header {
    background: linear-gradient(90deg, var(--dark-bg) 0%, rgba(245, 158, 11, 0.1) 100%);
}

body.light-theme .grid-table-container {
    background: var(--card-bg);
}

body.light-theme .grid-table thead {
    background: var(--dark-bg);
}

body.light-theme .grid-table td {
    border-bottom-color: var(--border-color);
}

body.light-theme .grid-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.08);
}

body.light-theme .grid-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .grid-filter {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Disposition Menu Light Theme */
body.light-theme .disposition-menu {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

body.light-theme .disposition-menu-header {
    background: var(--dark-bg);
    border-bottom-color: var(--border-color);
}

body.light-theme .disposition-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .dispo-code {
    background: var(--dark-bg);
}

/* Stat Panel Light Theme */
body.light-theme .stat-panel {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(16, 185, 129, 0.05) 100%);
}

body.light-theme .chart-panel {
    background: var(--card-bg);
    border-color: var(--border-color);
}

/* Table Scroll Gradient for Light Theme */
body.light-theme .client-table-container::after,
body.light-theme .grid-table-container::after {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
}

/* Enhanced Light Theme - Better Colors & Readability */

/* Dashboard sections with subtle shadows */
body.light-theme .dashboard-section {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

body.light-theme .dashboard-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Table header colors - more visible */
body.light-theme .client-table th {
    color: #1e40af;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

body.light-theme .grid-table th {
    color: #b45309;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Stat values - darker for better visibility */
body.light-theme .live-stat-value {
    color: #047857;
    text-shadow: none;
}

body.light-theme .xfer-card-total .xfer-card-value {
    color: #1d4ed8;
}

body.light-theme .xfer-card-xfer .xfer-card-value {
    color: #7c3aed;
}

body.light-theme .xfer-gauge-value span:first-child {
    color: #047857;
}

/* Collapse toggle buttons */
body.light-theme .collapse-toggle {
    background: var(--dark-bg);
    color: var(--text-primary);
}

body.light-theme .collapse-toggle:hover {
    background: var(--border-color);
}

/* Refresh button - keep it vibrant */
body.light-theme .btn-refresh {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

body.light-theme .btn-refresh:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Badges in light theme */
body.light-theme .live-header-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

body.light-theme .xfer-header-badge {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

body.light-theme .dispo-header-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

body.light-theme .grid-count-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

body.light-theme .client-header-badge {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

/* Status indicators - slightly softer */
body.light-theme .status-live {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

body.light-theme .status-xfer {
    background: #8b5cf6;
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.5);
}

body.light-theme .status-dispo {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

body.light-theme .status-grid {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

body.light-theme .status-client {
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}

/* Disposition legend items */
body.light-theme .dispo-legend-label {
    color: var(--text-primary);
}

body.light-theme .dispo-legend-value {
    color: var(--text-primary);
    font-weight: 700;
}

/* Cell colors for tables */
body.light-theme .grid-table .cell-time {
    color: #475569;
}

body.light-theme .grid-table .cell-phone {
    color: var(--text-primary);
}

body.light-theme .grid-table .cell-duration {
    color: #2563eb;
}

body.light-theme .client-table .cell-campaign {
    background: rgba(139, 92, 246, 0.12);
    color: #6d28d9;
}

body.light-theme .client-table .cell-model {
    color: #047857;
}

body.light-theme .client-table .cell-age {
    color: #b45309;
}

/* XFER card icons - better contrast */
body.light-theme .xfer-card-icon {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Last refresh text */
body.light-theme #lastRefresh {
    color: var(--text-secondary);
}

/* Scrollbar for light theme */
body.light-theme .grid-table-container::-webkit-scrollbar-track,
body.light-theme .disposition-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body.light-theme .grid-table-container::-webkit-scrollbar-thumb,
body.light-theme .disposition-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

body.light-theme .grid-table-container::-webkit-scrollbar-thumb:hover,
body.light-theme .disposition-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Disposition codes in menu */
body.light-theme .dispo-code {
    background: #e2e8f0;
    color: #475569;
}

body.light-theme .dispo-code.xfer {
    background: rgba(139, 92, 246, 0.2);
    color: #6d28d9;
}

body.light-theme .dispo-name {
    color: var(--text-primary);
}

/* Chart.js Light Theme - handled via JavaScript */

/* Transition for smooth theme switching */
body,
.navbar,
.dashboard-section,
.section-header,
.btn,
.form-select,
.client-table-container,
.grid-table-container,
.live-stat-card,
.live-chart-panel,
.xfer-card,
.dispo-chart-container,
.dispo-legend,
.disposition-menu {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
