﻿/* ==========================================================
   ⚖️ dashboard.css — خاص بلوحات التحكم (Dashboard)
   ---------------------------------------------------------- */

/* ✅ ترويسة */
.dashboard-header {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 1.5rem;
}

/* ✅ بطاقات الإحصائيات */
.stat-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }

    .stat-card h4 {
        font-size: 1.1rem;
        font-weight: 600;
        color: #555;
    }

    .stat-card .stat-number {
        font-size: 1.8rem;
        font-weight: bold;
        color: #0d6efd;
        margin-top: 0.5rem;
    }

/* ✅ رسوم بيانية */
.chart-container {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/* ✅ عداد السعة (Gauge) */
.gauge-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 1.2rem;
    color: #0d6efd;
}

/* ✅ الوضع الداكن */
body.dark-mode .stat-card,
body.dark-mode .chart-container {
    background-color: #1e1e1e;
    color: #e4e4e4;
}

body.dark-mode .dashboard-header {
    color: #66b0ff;
}

body.dark-mode .stat-card .stat-number {
    color: #66b0ff;
}

body.dark-mode .gauge-text {
    color: #66b0ff;
}

/* ✅ تحسين الحركات */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
