﻿/* ============================================
   Default.Core.css - العناصر الأساسية
   ============================================ */

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
        border-color: #fbbf24;
        box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
    }

.stat-icon {
    font-size: 40px;
    color: #fbbf24;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

.stat-label {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 5px;
}

/* Two Columns Layout */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
}

/* Cards Base */
.card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header {
    border-bottom: 2px solid #fbbf24;
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .card-header i {
        color: #fbbf24;
        font-size: 24px;
    }

    .card-header h2 {
        font-size: 20px;
        margin: 0;
        color: #fff;
    }

/* Tables */
.table-custom {
    width: 100%;
    border-collapse: collapse;
}

    .table-custom th {
        text-align: right;
        padding: 12px;
        background: rgba(251, 191, 36, 0.1);
        color: #fbbf24;
        font-weight: 500;
    }

    .table-custom td {
        padding: 10px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .table-custom tr:hover {
        background: rgba(251, 191, 36, 0.05);
    }

/* Light Mode */
body.light-mode .stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

    body.light-mode .stat-card:hover {
        border-color: #fbbf24;
        box-shadow: 0 10px 25px rgba(251, 191, 36, 0.15);
    }

body.light-mode .stat-number {
    color: #0f172a;
}

body.light-mode .stat-label {
    color: #64748b;
}

body.light-mode .card {
    background: #ffffff;
}

body.light-mode .card-header h2 {
    color: #0f172a;
}

body.light-mode .card-header i {
    color: #f59e0b;
}
