html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* 1. تظبيط جدول الأدمن: خط كبير ومساحة واسعة */
.table td, .table th {
    padding: 15px !important; /* مساحة مريحة */
    font-size: 1.15rem !important; /* خط واضح */
    text-align: center;
    vertical-align: middle !important;
    border-bottom: 1px solid #eee !
    important;
}

/* 2. تظبيط خانات الإدخال (Index): طويلة ومرتبة */
.form-control {
    height: 50px !important;
    font-size: 1rem;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* 3. تظبيط شكل البطاقة (Card) */
.card {
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.table {
    width: 100% !important;
    direction: rtl; /* عشان العبري يتعدل صح */
}

.table td, .table th {
    white-space: nowrap; /* عشان الأرقام ما تنزل سطر جديد */
    padding: 12px !important;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* في آخر ملف site.css */
.alert {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* تنسيق الخانة والزر كـ طقم واحد */
.search-container {
    display: flex;
    justify-content: center;
    gap: 0; /* لزق الخانة بالزر */
    direction: rtl; /* عشان الترتيب العربي والعبري صح */
    margin-top: 30px;
    margin-bottom: 30px;
}

/* تنعيم خانة إدخال الرقم */
.search-input {
    border: 2px solid #ddd;
    border-radius: 0 50px 50px 0; /* زوايا دائرية من اليمين بس */
    padding: 12px 25px;
    font-size: 16px;
    color: #333;
    width: 60%; /* العرض المناسب */
    transition: all 0.3s ease;
    text-align: right;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.search-input:focus {
    border-color: #1a2a6c; /* اللون الأزرق الداكن من اللوجو */
    outline: none;
    box-shadow: 0 0 10px rgba(26, 42, 108, 0.1);
}

/* تحويل الزر لمربع أنعم وأفخم */
.search-button {
    background-color: #1a2a6c; /* نفس كحلي اللوجو */
    color: white;
    border: none;
    border-radius: 50px 0 0 50px; /* زوايا دائرية من الشمال بس */
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px; /* عشان النص ما ينطعج */
}

.search-button:hover {
    background-color: #2aa58c; /* بتحول لأخضر فخم (لون النجوم) عند التأشير */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* حاوية الصور */
.img-container {
    height: 220px; /* طول مناسب للتلفون والكمبيوتر */
    background-color: #000; /* خلفية سوداء عشان لو الصورة صغيرة ما يبين بياض */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* التعديل السحري للوضوح */
.gal-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* أهم سطر: بحافظ على أبعاد الصورة بدون مط */
    object-position: center; /* بخلي نص السيارة هو اللي مبين */
    transition: transform 0.5s ease;
    image-rendering: auto; /* للتأكد من وضوح البكسلات */
}

/* حركة التكبير بدون غباش */
.img-container:hover .gal-img {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .img-container {
        height: 150px; /* طول أصغر ليناسب شاشة التلفون */
    }
}





/* مكان زر الواتساب (تحت) */
.whatsapp-menu {
    position: fixed;
    bottom: 165px;
    right: 20px; /* لأن الأيقونات عندك يمين */
    z-index: 10002;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
}

.whatsapp-options {
    display: none;
    flex-direction: column;
    position: fixed !important;
    bottom: 230px !important; /* تطلع فوق الزر */
    right: 0;;
    z-index: 10002;
    gap: 10px;
}

.whatsapp-options a {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    text-decoration: none;
    color: #25D366;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* أيقونة تيك توك */
/* أيقونة تيك توك المعدلة */
/* تنسيق التيك توك فقط */
.tiktok-only-btn {
    position: fixed;
    bottom: 25px;      /* المسافة من تحت - عشان يجي فوق الواتساب */
    right: 20px;       /* ثابت على اليمين */
    background-color: #000000 !important; /* لون أسود ملكي */
    color: #ffffff !important;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 9997;     /* عشان يضل فوق كل شي بالصفحة */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: transform 0.3s ease;
}

/* حركة بسيطة لما تحطي الماوس عليه */
.tiktok-only-btn:hover {
    transform: scale(1.1);
    color: #fe2c55 !important; /* لون تيك توك الزهري عند الحف */
}

/* تنسيق الفيسبوك - أزرق وفوق التيك توك */
.facebook-only-btn {
    position: fixed;
    bottom: 95px;     /* رفعناه بزيادة عشان الترتيب: واتس ثم تيك توك ثم فيسبوك */
    right: 20px;       /* ثابت على اليمين */
    background-color: #1877F2 !important; /* لون فيسبوك الأزرق */
    color: #ffffff !important;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: transform 0.3s ease;
}

/* حركة عند الحف */
.facebook-only-btn:hover {
    transform: scale(1.1);
    background-color: #166fe5 !important; /* درجة أغمق شوي عند الحف */
}