/* assets/css/dashboard.css - الواجهة التفاعلية الموحدة لعام 2030 المعزولة بالكامل */
@import url('https://fonts.googleapis.com/css2?family=Cairo+Play:slnt,wght@-11..11,200..1000&display=swap');

:root {
    --bg-main: #0f172a;        /* خلفية السيرفر العميقة */
    --bg-card: #1e293b;        /* خلفية الكروت والموديولات */
    --border-color: #334155;   /* الحدود النحيفة الاحترافية */
    --text-main: #f8fafc;      /* النص الأساسي الناصع */
    --text-muted: #94a3b8;     /* النصوص الفرعية المريحة */
    --primary: #3b82f6;        /* اللون الأزرق التفاعلي */
    --success: #10b981;        /* الأخضر للمحفظة والنجاح */
    --danger: #ef4444;         /* الأحمر للخطأ والحظر */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo Play', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* حاوية النظام الموزعة */
.app-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* الكروت البرمجية المنعزلة */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card h2, .card h3 {
    color: var(--text-main);
    margin-bottom: 12px;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* المدخلات الاحترافية (Inputs) */
input, select, textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    transition: border 0.3s ease;
    margin-top: 5px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* الأزرار الذكية */
.btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
    justify-content: center;
}

.btn:hover {
    opacity: 0.9;
}

.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }

/* الجداول فائقة الخفة */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    text-align: right;
}

.custom-table th {
    background: rgba(0, 0, 0, 0.2);
    padding: 14px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.custom-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 14px;
}
