/* ------------------------------------------------- RESET + GLOBAL --------------------------------------------------*/ .index-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 5px; padding: 18px; margin-bottom: 25px; font-family: 'Tajawal', sans-serif; direction: rtl; box-shadow: 0 1px 4px rgba(0,0,0,0.06); } /* صعود / هبوط */ .index-up { color: #16a34a !important; } .index-down { color: #dc2626 !important; } /* ------------------------------------------------- 1) [index_live] --------------------------------------------------*/ .index-price-box { display: flex; justify-content: space-between; align-items: center; } .index-price-box .price { font-size: 1.8rem; font-weight: 800; color: #0d6efd; } .index-price-box .change { font-size: 1.1rem; font-weight: 700; } /* ------------------------------------------------- COUNTRY BADGE --------------------------------------------------*/ .index-country { display: flex; align-items: center; gap: 4px; background: #f3f6fb; padding: 4px 8px; border-radius: 999px; font-size: .85rem; } /* ------------------------------------------------- 2) [index_stats] — شكل مرتب ومباشر --------------------------------------------------*/ .index-today-box { background: transparent !important; border: none !important; padding: 0 !important; box-shadow: none !important; } .index-today-box h2 { display: none !important; } .index-today-grid { display: flex; gap: 14px; } .today-item { flex: 1; background: #f9fafb; border: 1px solid #e5e7eb; padding: 14px; border-radius: 5px; text-align: center; } .today-high { background: #e9f9ef !important; border-color: #c8e8d3 !important; color: #16a34a !important; } .today-low { background: #fde8e8 !important; border-color: #f3c6c6 !important; color: #dc2626 !important; } .today-change { background: #f3f4f6 !important; border-color: #d1d5db !important; color: #6b7280 !important; } /* ------------------------------------------------- 3) [index_performance] — تصميم كروت جميل --------------------------------------------------*/ .index-performance-box { background: transparent !important; padding: 0 !important; border: none !important; box-shadow: none !important; } .index-performance-box h2 { display: none !important; } .index-performance-grid { display: flex; gap: 14px; } .perf-item { flex: 1; background: #ffffff; border: 1px solid #e5e7eb; padding: 14px; border-radius: 5px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.05); } .perf-label { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; color: #374151; } .perf-value { font-size: 1.25rem; font-weight: 800; margin-bottom: 3px; } .perf-range { font-size: 0.75rem; color: #6b7280; } .perf-up { color: #16a34a !important; } .perf-down { color: #dc2626 !important; } .perf-neutral { color: #6b7280 !important; } /* ------------------------------------------------- 4) [index_chart] — Chart.js --------------------------------------------------*/ .index-chart-container { border-radius: 5px !important; } .index-range-buttons { display: flex; gap: 8px; margin-bottom: 10px; } .index-range-buttons .range-btn { background: #f3f4f6; border: 1px solid #d1d5db; padding: 6px 12px; border-radius: 5px !important; font-size: .85rem; cursor: pointer; } .index-range-buttons .range-btn.active { background: #0d6efd; color: #fff; border-color: #0d6efd; } /* ------------------------------------------------- 5) LISTS (index_list / searchable list) --------------------------------------------------*/ .index-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 20px; } .index-card-small { border-radius: 5px; padding: 18px; background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,0.05); } /* Search input */ .index-search-input { width: 100%; max-width: 300px; padding: 8px 12px; border-radius: 999px; border: 1px solid #d1d5db; font-size: .9rem; margin-bottom: 15px; } /* Responsive */ @media(max-width: 768px) { .index-today-grid, .index-performance-grid { flex-direction: column; } }