body{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color:#000;
  color:#ff0;
  margin:0;
  padding:0;
}
.container{
  padding:20px;
  text-align:center;
}
.hidden{display:none;}
/* بطاقات السيارات */
.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:20px;
  margin-top:20px;
}
.car-card{
  background-color:#222;
  border-radius:15px;
  overflow:hidden;
  cursor:pointer;
  transition:transform .3s ease,box-shadow .3s ease;
}
.car-card:hover{
  transform:scale(1.05);
  box-shadow:0 4px 15px rgba(255,255,0,0.3);
}
.car-card img{
  width:100%;
  height:140px;
  object-fit:cover;
}
.car-info{
  padding:10px;
}
.add-btn{
  background-color:#ff0;
  color:#000;
  padding:10px 20px;
  text-decoration:none;
  border-radius:10px;
  display:inline-block;
  margin-top:20px;
}
.item{
  background-color:#222;
  margin:10px auto;
  padding:15px;
  border-radius:10px;
  max-width:500px;
  text-align:right;
}
form button{
  background-color:#ff0;
  color:#000;
  border:none;
  padding:10px 20px;
  border-radius:10px;
  cursor:pointer;
  margin-top:15px;
}
form button:hover{
  opacity:0.8;
}
input[type="text"],input[type="number"],input[type="date"],input[type="file"]{
  padding:10px;
  margin:8px;
  border:none;
  border-radius:8px;
  width:90%;
  max-width:400px;
}

/* شبكة العناصر داخل صفحة الصيانة */
.items-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:20px;
  margin-bottom:100px; /* مساحة قبل زر الحفظ الثابت */
}
.item{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

/* زر الحفظ العائم */
.save-btn-floating{
  position:fixed;
  bottom:20px;
  left:20px; /* RTL */
  background-color:#ff0;
  color:#000;
  padding:15px 25px;
  border:none;
  border-radius:50px;
  font-weight:bold;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(255,255,0,0.4);
  z-index:1000;
  transition:opacity 0.3s ease;
}
.save-btn-floating:hover{
  opacity:0.8;
}

/* تصميم كروت الصيانة بشكل احترافي مشابه للصورة */
:root{
  --card-border:#bde3f9;
  --card-shadow:rgba(0,170,255,0.15);
  --card-hover-shadow:rgba(0,170,255,0.35);
}
.items-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:30px;
}
.item{
  background:#fff;
  color:#000;
  border:2px solid var(--card-border);
  border-radius:20px;
  padding:25px;
  box-shadow:0 2px 8px var(--card-shadow);
  transition:transform .3s ease, box-shadow .3s ease;
  position:relative;
  opacity:0;
  animation:fadeUp .6s forwards ease;
}
.item:hover{
  transform:translateY(-5px);
  box-shadow:0 6px 20px var(--card-hover-shadow);
}
/* أيقونة أعلى البطاقة */
.item::before{
  content:"🖼️";
  font-size:40px;
  display:block;
  margin-bottom:20px;
}
/* تدرج ظهور */
@keyframes fadeUp{
  from{opacity:0; transform:translateY(20px);}
  to{opacity:1; transform:translateY(0);}
}

/* جعل خطوط الإدخال تغطي العرض */
.item input[type="date"],
.item input[type="number"]{
  width:100%;
}

/* تحديث زر الحفظ العائم ليتماشى مع التصميم الجديد */
.save-btn-floating{
  bottom:30px;
  right:30px;
  left:auto;
  background:linear-gradient(135deg,#00c6ff 0%, #0072ff 100%);
  color:#fff;
  box-shadow:0 4px 20px rgba(0,114,255,0.4);
  padding:15px 30px;
}

/* === Improved v2 === */
/* ======== تحسين مظهر الصفحة الداكنة والكروت ======== */
body{
  background:#0d0d0d;   /* أسود مائل للرمادي أهدأ */
  color:#fafafa;
}
.container{
  max-width:1400px;   /* يمنع التمدد الزائد وظهور مساحات سوداء */
  margin:0 auto;
}

/* شبكة مرنة بلا فراغات عريضة */
.items-grid{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  justify-content:center;
  padding-bottom:120px; /* مساحة لزر الحفظ العائم */
}

/* كرت الصيانة المطوَّر */
.item{
  flex:1 0 260px;     /* عرض ثابت مبدئياً ثم يتمدد */
  max-width:300px;
  background:#141414;
  border-radius:18px;
  padding:30px 22px;
  border:1px solid #262626;
  color:#e0e0e0;
  box-shadow:0 4px 12px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03) inset;
  position:relative;
  transition:transform .25s ease, box-shadow .25s ease;
  overflow:hidden;
}
.item:hover{
  transform:translateY(-6px);
  box-shadow:0 8px 24px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
}

/* شريط علوي أصفر كعنصر ديكور */
.item::after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:4px;
  background:linear-gradient(90deg,#ffd500 0%, #ff9100 100%);
}

/* أيقونة */
.item .card-icon{
  width:48px;
  height:48px;
  border-radius:12px;
  background:#222 url('https://api.iconify.design/icon-park-outline/maintenance.svg?color=%23ffd500') center/60% no-repeat;
  margin:0 auto 20px;
}

/* النصوص */
.item h3{
  font-size:18px;
  font-weight:600;
  color:#fff;
  margin-bottom:20px;
}
.item label{
  font-size:14px;
}
.item input{
  background:#1f1f1f;
  color:#fff;
  border:1px solid #333;
}
.item input::placeholder{color:#aaa;}

.save-btn-floating{
  bottom:32px;
  right:32px;
  left:auto;
  border-radius:52px;
  font-size:16px;
  padding:16px 36px;
  background:linear-gradient(135deg,#ffd500 0%, #ff9100 100%);
  color:#000;
  box-shadow:0 4px 20px rgba(255,165,0,0.35);
}
.save-btn-floating:hover{
  transform:scale(1.05);
}

/* === Improved v3 === */
/* ======== تصميم بطاقات موحّد مع ظل نيون وحركه ======== */
.items-grid{
  display:flex;
  flex-wrap:wrap;
  gap:26px;
  justify-content:center;
  padding-bottom:120px;
}

.item{
  flex:1 0 260px;
  max-width:280px;
  min-height:360px;
  background:#1b1b1b;
  border-radius:18px;
  padding:28px 22px;
  box-shadow:0 0 10px rgba(255,196,0,0.0); /* مبدئياً بلا ظل */
  position:relative;
  display:flex;
  flex-direction:column;
  gap:18px;
  transition:transform .25s ease, box-shadow .25s ease;
}
.item:hover{
  transform:translateY(-8px) scale(1.02);
  box-shadow:0 0 12px rgba(255,196,0,0.55), 0 0 25px rgba(255,196,0,0.25);
}

.item::after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:4px;
  background:linear-gradient(90deg,#ffd500 0%, #ff6d00 100%);
}

/* إخفاء الحدود الداخلية السابقة */
.item input{
  background:#2a2a2a;
  border:1px solid #444;
  color:#f5f5f5;
  border-radius:8px;
  width:100%;
  padding:8px 10px;
  font-size:13px;
}

/* عناوين */
.item h3{
  font-size:17px;
  font-weight:600;
  color:#fff;
  margin:0 auto 10px;
  text-align:center;
}

/* تجميع الحقول */
.field{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:14px;
  color:#d2d2d2;
}

/* أيقونة بسيطة أعلى البطاقة */
.card-icon{
  width:42px;
  height:42px;
  border-radius:10px;
  background:#303030 url('https://api.iconify.design/fluent-emoji-high-contrast/wrench.svg?color=%23ffd500') center/60% no-repeat;
  margin:0 auto 14px;
}

/* زر الحفظ العائم بتوهج أخف ليناسب الألوان */
.save-btn-floating{
  background:linear-gradient(135deg,#ffd500 0%, #ff6d00 100%);
  color:#000;
  box-shadow:0 0 20px rgba(255,196,0,0.4);
}
.save-btn-floating:hover{
  transform:scale(1.08);
}

/* === Override v4 === */
/* ======== تحسين الكرت النهائي ======== */
/* إزالة الشريط العلوي وتعويضه بظل نيون خفيف حول البطاقة */
.item{
  background:#202020;
  box-shadow:0 0 6px rgba(255,200,0,0.25);
  border:none;
}
.item:hover{
  box-shadow:0 0 14px rgba(255,200,0,0.6), 0 0 28px rgba(255,200,0,0.35);
}
/* إزالة الأيقونة */
.card-icon{display:none !important;}

/* ترتيب العناصر داخل البطاقة */
.item{
  flex-direction:column;
  align-items:stretch;
}
.item h3{
  margin-bottom:18px;
}
.field{
  margin-bottom:18px;
  gap:4px;
}
.field span{
  color:#ccc;
  font-size:13px;
}
/* تغيير لون الإدخالات */
.item input{
  background:#2b2b2b;
  border:none;
  border-radius:8px;
  color:#eee;
}
.item input:focus{
  outline:none;
  box-shadow:0 0 4px rgba(255,200,0,0.5);
}

/* زر الحفظ العائم — ضبط عرضه وحجمه */
.save-btn-floating{
  width:auto;
  white-space:nowrap;
  padding:14px 32px;
  font-weight:700;
}
