
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

/* تخطيط لوحة التحكم (الهيكل الأساسي) */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* القائمة الجانبية العريضة الكحلي */
.sidebar {
    width: 260px;
    background-color: #0d1b2a;
    color: #fff;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    padding-right: 10px;
}

.logo h2 {
    font-size: 24px;
    color: #4ea8de;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    color: #a3b18a;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 16px;
    transition: 0.3s;
}

.menu-item:hover, .menu-item.active {
    background-color: #1b263b;
    color: #fff;
}

/* منطقة المحتوى الرئيسي */
.main-content {
    flex: 1;
    padding: 30px;
    max-width: 1200px;
}

/* كارت الترحيب برقية */
.welcome-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.welcome-text h1 {
    font-size: 26px;
    color: #1b263b;
    margin-bottom: 5px;
}

.welcome-text p {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* شبكة الكروت التلقائية */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.stat-card.full-width {
    grid-column: span 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 15px;
    margin-bottom: 10px;
}

.card-icon {
    font-size: 22px;
}

.card-value {
    font-size: 28px;
    font-weight: bold;
    color: #1b263b;
    margin-bottom: 8px;
}

.card-badge {
    font-size: 13px;
    font-weight: 600;
}

.card-badge.positive {
    color: #2ec4b6;
}

.card-badge.negative {
    color: #e63946;
}

/* جدول العمليات الناجحة */
.table-section {
    background-color: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h3 {
    font-size: 18px;
    color: #1b263b;
}

.view-all {
    color: #0077b6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

th, td {
    padding: 14px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 15px;
}

th {
    color: #777;
    font-weight: 500;
}

td {
    color: #333;
}

/* شارات الحالة (Status Badges) */
.status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
}

.status.completed {
    background-color: #e8f8f5;
    color: #2ec4b6;
}

.status.pending {
    background-color: #fff9db;
    color: #f59f00;
}

/* جعل التصميم متجاوب بالكامل مع الشاشات والموبايل */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-card.full-width {
        grid-column: span 1;
    }
}