/* لوحة التحكم الاحترافية - Professional Dashboard */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

.dashboard-body {
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
    background: #f0f2f5;
}

.dashboard-body .breadcrumb {
    font-size: 0.85rem;
}

.dashboard-body .breadcrumb-item.active {
    color: #64748b;
}

/* الهيرو الرئيسي */
.dashboard-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    color: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-welcome {
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

.dashboard-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 500;
}

.dashboard-hero .btn-primary {
    background: #3b82f6;
    color: #fff;
    border: none;
    font-weight: 600;
}

.dashboard-hero .btn-primary:hover {
    background: #2563eb;
    color: #fff;
}

.dashboard-hero .btn-outline-success,
.dashboard-hero .btn-outline-primary {
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    font-weight: 500;
}

.dashboard-hero .btn-outline-success:hover,
.dashboard-hero .btn-outline-primary:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

.dashboard-quick-stats {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
}

.quick-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.quick-stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* عنوان الأقسام */
.dashboard-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 1rem;
}

/* البطاقات الاحترافية */
.dashboard-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-card .card-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.dashboard-card .card-body {
    padding: 1.25rem;
}

/* بطاقات الإحصائيات */
.stat-card-pro {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.stat-card-pro:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.stat-card-pro .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.stat-card-pro .stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.stat-card-pro .stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.stat-primary-pro { border-right: 4px solid #3b82f6; }
.stat-primary-pro .stat-icon { background: #eff6ff; color: #3b82f6; }

.stat-info-pro { border-right: 4px solid #06b6d4; }
.stat-info-pro .stat-icon { background: #ecfeff; color: #06b6d4; }

.stat-secondary-pro { border-right: 4px solid #8b5cf6; }
.stat-secondary-pro .stat-icon { background: #f5f3ff; color: #8b5cf6; }

.stat-success-pro { border-right: 4px solid #22c55e; }
.stat-success-pro .stat-icon { background: #f0fdf4; color: #22c55e; }

.stat-danger-pro { border-right: 4px solid #ef4444; }
.stat-danger-pro .stat-icon { background: #fef2f2; color: #ef4444; }

.stat-warning-pro { border-right: 4px solid #f59e0b; }
.stat-warning-pro .stat-icon { background: #fffbeb; color: #f59e0b; }

/* الجداول */
.dashboard-table {
    font-size: 0.9rem;
}

.dashboard-table thead th {
    background: #f8fafc !important;
    color: #475569;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border: none;
}

.dashboard-table tbody tr {
    transition: background 0.15s;
}

.dashboard-table tbody tr:hover {
    background: #f8fafc !important;
}

.dashboard-table tbody td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

/* التنبيهات */
.dashboard-alerts .alert-item {
    transition: all 0.2s;
    border-radius: 10px;
}

.alert-item-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-item-warning:hover { background: #fef3c7; }

.alert-item-info {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    color: #0e7490;
    border: 1px solid #a5f3fc;
}

.alert-item-info:hover { background: #cffafe; }

.alert-item-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-item-danger:hover { background: #fee2e2; }

/* القائمة الجانبية */
.dashboard-sidebar .nav-link-pro {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s;
}

.dashboard-sidebar .nav-link-pro:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.dashboard-sidebar .nav-link-pro i {
    width: 22px;
    margin-left: 0.5rem;
}

/* الرسم البياني */
.dashboard-chart-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
}

@media (max-width: 768px) {
    .stat-card-pro .stat-value { font-size: 1.35rem; }
    .stat-card-pro .stat-icon { width: 44px; height: 44px; }
    .dashboard-hero { padding: 1.5rem; }
}
