/**
 * DIESELNET - Fuel Statistics Widget
 * Dashboard pentru statistici consum combustibil
 */

/* ============================================ */
/* FUEL STATS DASHBOARD                        */
/* ============================================ */

.fuel-stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fuel-stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.fuel-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #06b6d4;
}

.fuel-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.fuel-stat-icon.average {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.fuel-stat-icon.best {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.fuel-stat-icon.worst {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.fuel-stat-icon.trend {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.fuel-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.fuel-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 5px;
}

.fuel-stat-unit {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 600;
}

.fuel-stat-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.85rem;
}

.fuel-stat-trend.up {
    color: #ef4444;
}

.fuel-stat-trend.down {
    color: #10b981;
}

.fuel-stat-trend.stable {
    color: #64748b;
}

/* ============================================ */
/* FUEL TIPS                                   */
/* ============================================ */

.fuel-tips-container {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 5px solid #f59e0b;
}

.fuel-tips-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.fuel-tips-icon {
    width: 40px;
    height: 40px;
    background: #f59e0b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.fuel-tips-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #92400e;
}

.fuel-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fuel-tip-item {
    padding: 10px 0;
    color: #78350f;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.fuel-tip-item i {
    color: #f59e0b;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ============================================ */
/* FUEL CHART                                  */
/* ============================================ */

.fuel-chart-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.fuel-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fuel-chart-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.fuel-chart-canvas {
    position: relative;
    height: 300px;
}

/* ============================================ */
/* DARK MODE                                   */
/* ============================================ */

body.dark-mode .fuel-stat-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

body.dark-mode .fuel-stat-label {
    color: #cbd5e1;
}

body.dark-mode .fuel-stat-value {
    color: #f1f5f9;
}

body.dark-mode .fuel-stat-unit {
    color: #64748b;
}

body.dark-mode .fuel-tips-container {
    background: linear-gradient(135deg, #422006 0%, #78350f 100%);
}

body.dark-mode .fuel-tips-title {
    color: #fbbf24;
}

body.dark-mode .fuel-tip-item {
    color: #fde68a;
}

body.dark-mode .fuel-chart-container {
    background: #1e293b;
}

body.dark-mode .fuel-chart-title {
    color: #f1f5f9;
}

/* ============================================ */
/* RESPONSIVE                                  */
/* ============================================ */

@media (max-width: 768px) {
    .fuel-stats-dashboard {
        grid-template-columns: 1fr;
    }

    .fuel-stat-value {
        font-size: 1.5rem;
    }

    .fuel-chart-canvas {
        height: 250px;
    }
}