/* ========================================
   تصميم بألوان زاهية وجذابة - Vibrant Theme
   ======================================== */

:root {
    /* الألوان الرئيسية - زاهية وحيوية */
    --primary: #eab7f7;      /* بنفسجي زاهي */
    --primary-dark: #8c9deb;
    --primary-light: #e29ff8;
    --secondary: #ec4899;     /* وردي زاهي */
    --success: #22c55e;       /* أخضر زاهي */
    --danger: #ef4444;        /* أحمر زاهي */
    --warning: #f59e0b;       /* برتقالي */
    --info: #06b6d4;          /* أزرق سماوي */
    --dark: #1e8a7b;
    --gray: #64748b;
    --light: #a7d0f8;
    --white: #ffffff;
    
    /* تأثيرات */
    --shadow: 0 8px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.2);
    --radius: 16px;
    --radius-sm: 10px;
}

/* خلفية الصفحة - تدرج حيوي */
body, .t-Body, .t-PageBody {
    background: linear-gradient(135deg, #8490c5 0%, #8567a3 50%, #a6cdfa 100%);
    background-attachment: fixed;
    font-family: 'Inter', 'Tajawal', sans-serif;
}

/* تحسين تباين المحتوى الرئيسي */
.t-Body-main {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 32px 32px 0 0;
    margin-top: 10px;
    padding: 0;
    backdrop-filter: blur(2px);
}

/* الشريط العلوي - تدرج جذاب */
.t-Body-header {
    background: linear-gradient(135deg, #6f9adf 0%, #cd65d1 100%);
    border-bottom: 3px solid #f59e0b;
    box-shadow: var(--shadow);
    padding: 8px 32px;
}

.t-Header-branding {
    background: transparent;
}

.t-Header-logo {
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #fff, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

/* الأزرار الرئيسية */
.t-Button {
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
}

.t-Button--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: rgb(87, 107, 175);
    box-shadow: 0 4px 15px rgba(55, 180, 76, 0.4);
}

.t-Button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(54, 168, 115, 0.5);
}

.t-Button--success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.t-Button--success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
}

.t-Button--danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* البطاقات - مميزة وملونة */
.t-Card, .t-Region {
    background: white;
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.t-Card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.t-Region-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 16px 24px;
    border: none;
}

.t-Region-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.t-Region-title::before {
    content: "✨";
    font-size: 1.2rem;
}

.t-Region-body {
    padding: 15px;
}

/* الجداول - Interactive Report */
.a-IRR-table {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.a-IRR-table th {
    background: linear-gradient(135deg, #b2bef5 0%, #c8a9e7 100%) !important;
    color: white !important;
    font-weight: 700;
    padding: 14px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.a-IRR-table td {
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    color: #020811;
    font-weight: 500;
}

.a-IRR-table tr:hover td {
    background: #f7e1f8;
    transition: background 0.2s;
}

/* البطاقات الإحصائية - ملفتة للنظر */
.stat-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: none;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), #f59e0b);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--primary);
}

/* حقول الإدخال - مميزة */
.t-Form-fieldContainer input,
.t-Form-fieldContainer select,
.t-Form-fieldContainer textarea {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: rgb(246, 247, 248);
}

.t-Form-fieldContainer input:focus,
.t-Form-fieldContainer select:focus,
.t-Form-fieldContainer textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    outline: none;
}

.t-Form-fieldContainer label {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

/* التنبيهات - زاهية */
.t-Alert {
    border-radius: 16px;
    border: none;
    padding: 20px;
    font-weight: 600;
}

.t-Alert--success {
    background: linear-gradient(135deg, #22c55e20, #16a34a20);
    border-right: 4px solid #22c55e;
    color: #166534;
}

.t-Alert--warning {
    background: linear-gradient(135deg, #f59e0b20, #d9770620);
    border-right: 4px solid #f59e0b;
    color: #92400e;
}

.t-Alert--danger {
    background: linear-gradient(135deg, #ef444420, #dc262620);
    border-right: 4px solid #ef4444;
    color: #991b1b;
}

/* أزرار التحميل */
.download-btn, a[href*="download"] {
    background: linear-gradient(135deg, var(--success), #16a34a);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    color: white;
}

/* الشريط الجانبي */
.t-Body-nav {
    background: linear-gradient(180deg, #85a9e4 0%, #48cf90 100%);
    margin: 12px;
    border-radius: 24px;
    padding: 16px 0;
}

.t-NavigationBar-item {
    padding: 12px 20px;
    margin: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s;
    color: #cbd5e1;
}

.t-NavigationBar-item:hover {
    background: rgba(99, 102, 241, 0.3);
    color: white;
}

.t-NavigationBar-item--is-active {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* التذييل */
.t-Footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #94a3b8;
    padding: 24px;
    text-align: center;
    margin-top: 40px;
}

/* أزرار مميزة */
.btn-vibrant {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-vibrant:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
}

/* شريط البحث */
.a-IRR-search {
    border-radius: 50px !important;
    border: 2px solid var(--primary) !important;
}

/* تأثيرات التحميل */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-card .stat-number {
    animation: pulse 2s ease-in-out infinite;
}