﻿:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #ecf0f1;
    --widget-background: #ffffff;
    --text-color: #34495e;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

.dashboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.widget {
    background-color: var(--widget-background);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px);
}

.widget-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.widget-title {
    color: var(--primary-color);
    margin: 0;
}

.kpi-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.kpi {
    flex: 1;
}

.kpi-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--secondary-color);
}

.kpi-label {
    font-size: 0.9em;
    color: #7f8c8d;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--primary-color);
    color: white;
}

tr:hover {
    background-color: #f5f5f5;
}

.popularity-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.popularity-fill {
    height: 20px;
    background-color: #27ae60;
    text-align: right;
    padding-right: 5px;
    color: white;
    font-size: 0.8em;
    line-height: 20px;
}