/* ===============================
   إعدادات عامة
================================ */
body {
    font-family: Tahoma, Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 20px;
    direction: rtl;
}

h1, h2, h3 {
    margin-top: 0;
    color: #14532d;
}

/* ===============================
   الحاوية الرئيسية
================================ */
.container {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ===============================
   الجداول
================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    background: #ffffff;
}

th {
    background: #166534;
    color: #ffffff;
    padding: 12px;
    font-weight: normal;
}

td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

tr:hover td {
    background: #f0fdf4;
}

/* ===============================
   الأزرار
================================ */
button, .btn {
    background: #16a34a;
    color: #ffffff;
    padding: 9px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

button:hover, .btn:hover {
    background: #15803d;
}

.btn-secondary {
    background: #6b7280;
}
.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: #dc2626;
}
.btn-danger:hover {
    background: #b91c1c;
}

/* ===============================
   الحقول
================================ */
input, select {
    padding: 9px;
    width: 100%;
    max-width: 360px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    margin-top: 6px;
}

/* ===============================
   الرسائل
================================ */
.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* ===============================
   الروابط
================================ */
a {
    color: #15803d;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===============================
   حالات السيارة
================================ */
.status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
}

.status-waiting {
    background: #fffbeb;
    color: #92400e;
}

.status-repair {
    background: #fff7ed;
    color: #9a3412;
}

.status-ready {
    background: #dcfce7;
    color: #166534;
}

.status-delivered {
    background: #eff6ff;
    color: #1e40af;
}

/* ===============================
   الإحصائيات (Dashboard)
================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 14px 0 20px;
}

.stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.stat-title {
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-value {
    font-size: 30px;
    font-weight: 800;
    color: #111827;
}

.stat-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

/* ألوان بطاقات الإحصائيات */
.stat-green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.stat-yellow {
    background: #fffbeb;
    border-color: #fde68a;
}

.stat-orange {
    background: #fff7ed;
    border-color: #fdba74;
}

.stat-blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}
/* ===============================
   Checklist Grid (استلام السيارة)
================================ */
.check-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap:10px;
    margin-top:10px;
}

.check-item{
    background:#f0fdf4;
    border:1px solid #bbf7d0;
    padding:10px 12px;
    border-radius:12px;
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
}

.check-item input{
    width:auto;
    max-width:none;
    margin:0;
    transform: scale(1.15);
}
/* ===============================
   حالة جديدة: انتظار التسعيرة
================================ */
.status-pricing {
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #c4b5fd;
}

/* ===============================
   لون بطاقة إحصائيات: بنفسجي
================================ */
.stat-purple {
    background: #f5f3ff;
    border-color: #ddd6fe;
}
/* ===============================
   حالة: انتظار التسعيرة (بنفس ستايل الحالات)
================================ */
.status-pricing{
    background:#ede9fe;
    color:#6d28d9;
    border:1px solid #c4b5fd;
}

/* ===============================
   بطاقة إحصائية بنفسجي (Dashboard)
================================ */
.stat-purple{
    background:#f5f3ff;
    border-color:#ddd6fe;
}