@import url('https://fonts.googleapis.com/css2?family=Cairo+Play:wght@200..1000&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo Play', sans-serif; /* تطبيق الخط العصري الجديد */
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

a:hover {
    color: var(--primary-hover);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-card);
    color: var(--text-main);
    outline: none;
    transition: 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.badge-success { background-color: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-danger { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-warning { background-color: rgba(245, 158, 11, 0.1); color: var(--warning); }


/* ⏳ الهندسة البصرية المحدثة لعدادات الوقت في كروت المزادات */
.auction-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9; /* خلفية هادئة مريحة للعين */
    color: #0f172a; /* لون رقمي داكن وفخم */
    padding: 4px 10px;
    border-radius: 8px; /* زوايا دائرية ناعمة تحاكي الكبسولات الرقمية */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
    direction: rtl; /* إجبار الأرقام والحروف الزمنية على التراصف الرقمي الصحيح من اليسار لليمين */
    white-space: nowrap;
    
}

/* تحديث مظهر العداد تلقائياً عند اقتراب المزاد من النهاية (الحالة التحذيرية) */
.auction-timer[style*="color: rgb(217, 119, 6)"], 
.auction-timer[style*="color: #d97706"] {
    background-color: #fffbeb !important; /* خلفية صفراء ملكية دافئة */
    border-color: #fef3c7 !important;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.05) !important;
}

/* مظهر العداد المالي المغلق أو المنتهي */
.auction-timer[style*="color: rgb(239, 68, 68)"], 
.auction-timer[style*="color: #ef4444"] {
    background-color: #fef2f2 !important; /* خلفية حمراء ناعمة للمقفل */
    border-color: #fee2e2 !important;
    color: #ef4444 !important;
}
 /* 🏛️ التثبيت السيادي والانسيابي للهيدر معلقاً أمام الزوار أثناء النزول */
header, .main-header, #header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important; /* ضمان بقائه فوق كروت المزادات وعناصر الصفحة */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important; /* ظل خفيف وناعم ليفصله بصرياً عن المحتوى خلفه */
    transition: all 0.2s ease-in-out !important;
}

/* إزاحة خفيفة لأعلى جسم الصفحة لضمان عدم حدوث فراغات بصيرة مفاجئة */
body {
    scroll-padding-top: 80px; /* موازنة الهبوط السلس عند النقر على الروابط */
}


/* 🌐 تعميم خط Cairo Play المعتمد مسبقاً على كافة عناصر الواجهة والداشبورد */
body, p, h1, h2, h3, h4, h5, h6, span, a, button, input, textarea, select, table, th, td, .card, .btn, .badge {
    font-family: 'Cairo Play', sans-serif !important;
}

/* ضبط انسيابية محاذاة الكلمات بعد تطبيق الخط الفاخر */
.card, table, th, td {
    font-family: 'Cairo Play', sans-serif !important;
}



