/* web-counter-dark-theme.css */

/* Only apply these styles when dark theme is active */
[data-theme="dark"] .stats-container {
    max-width: 1000px;
    margin: 0 auto;
}

[data-theme="dark"] .stats-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--widget-bg);
    border-radius: 8px;
    box-shadow: var(--secondary-shadow);
}

[data-theme="dark"] .stats-title {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .stats-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

[data-theme="dark"] .stats-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--primary-shadow);
}

[data-theme="dark"] .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

[data-theme="dark"] .stat-item {
    background-color: var(--widget-bg);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

[data-theme="dark"] .stat-item:hover {
    transform: translateY(-5px);
}

[data-theme="dark"] .stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--link-color);
}

[data-theme="dark"] .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

[data-theme="dark"] .region-chart,
[data-theme="dark"] .visitor-trend-chart,
[data-theme="dark"] .chart-container {
    height: 300px;
    margin-bottom: 2rem;
}

[data-theme="dark"] .region-table {
    width: 100%;
    border-collapse: collapse;
}

[data-theme="dark"] .region-table th, 
[data-theme="dark"] .region-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .region-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

[data-theme="dark"] .region-table tr:hover {
    background-color: var(--widget-bg);
}

[data-theme="dark"] .back-button {
    margin-top: 2rem;
    text-align: center;
}

[data-theme="dark"] .tab-content {
    padding: 1.5rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* Updated for Bootstrap 5 in dark mode */
[data-theme="dark"] .nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: var(--text-muted);
    margin-bottom: -1px;
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    color: var(--link-color);
    background-color: var(--bg-white);
    border-color: var(--border-light) var(--border-light) var(--bg-white);
}

[data-theme="dark"] .nav-tabs {
    border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .last-updated {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

[data-theme="dark"] .positive-growth {
    color: var(--success-color);
}

[data-theme="dark"] .negative-growth {
    color: var(--danger-color);
}

[data-theme="dark"] .neutral-growth {
    color: var(--text-muted);
}

/* Adjustments for chart styling in dark mode */
[data-theme="dark"] .chart-wrapper {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 1rem;
}

/* Custom styles for table in dark mode */
[data-theme="dark"] .table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* Make sure text is readable in dark mode */
[data-theme="dark"] .text-center {
    color: var(--text-muted);
}

/* Customizing Chart.js tooltips for dark mode */
[data-theme="dark"] .chartjs-tooltip {
    background-color: var(--widget-bg) !important;
    color: var(--text-dark) !important;
    border-color: var(--border-light) !important;
}

/* Apply media query for responsive layout */
@media (max-width: 768px) {
    [data-theme="dark"] .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    [data-theme="dark"] .stat-value {
        font-size: 1.5rem;
    }
    
    [data-theme="dark"] .stat-icon {
        font-size: 1.5rem;
    }
} 