:root {
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --primary: #f49921;
    --secondary: #f49921;
    --text: #e0e0e0;
    --danger: #cf6679;
    --success: #4caf50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--card-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* إضافة لف السماح بالتفاف العناصر عند صغر الشاشة */
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap; /* السماح بالانتقال للسطر الجديد عند الحاجة */
    padding: 0;
}

nav li {
    margin-left: 2rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/hero-bg.jpg') center/cover no-repeat;
    height: 50vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 10px; /* إضافة padding لتجنب قطع النص */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* حجم خط متكيف */
    margin-bottom: 1rem;
}

.hero h1 span {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: #000;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    white-space: nowrap; /* منع كسر النص */
}

.btn:hover {
    background-color: white;
    color: var(--primary);
}

/* Equipment Cards */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* تعديل أصغر قليلاً */
    gap: 1.5rem;
    margin: 3rem 0;
    align-items: stretch; /* بطاقات بنفس الارتفاع */
}

.equipment-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.equipment-card:hover {
    transform: translateY(-5px);
}
.itemIMG {
    width: 100%;
    /* height: 100%; */
    display: flex
;
    justify-content: center;
    background-color: white;
    align-items: center;
}
.equipment-image {
    width: 80%;
    height: 80%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px 8px 0 0;
        margin: 0 25%;
}

.equipment-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.equipment-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.price {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: bold;
    margin: 0.5rem 0;
}

.original-price {
    opacity: 0.7;
}

.available {
    color: var(--success);
    font-weight: bold;
}

.not-available {
    color: var(--danger);
    font-weight: bold;
}

/* Form Styles */
.inquiry-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    background-color: #2d2d2d;
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--text);
}

/* Admin Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
    flex-wrap: wrap; /* للسماح بالتفاف العناصر */
}

.sidebar {
    width: 250px;
    background-color: var(--card-bg);
    padding: 2rem 0;
    flex-shrink: 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 1rem;
}

.sidebar a {
    display: block;
    padding: 0.8rem 2rem;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: #333;
}

.main-content {
    flex: 1 1 0;
    padding: 2rem;
    min-width: 300px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    table-layout: fixed;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #444;
    word-wrap: break-word;
    vertical-align: middle;
}

.table th {
    background-color: #2d2d2d;
}

.table img {
    max-width: 100px;
    height: auto;
}

/* Buttons in table */
.action-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
}

.btn-edit {
    background-color: var(--primary);
    color: #000;
}

.btn-delete {
    background-color: var(--danger);
    color: white;
}

.btn-toggle {
    background-color: var(--secondary);
    color: #000;
}

/* Responsive */

/* لأجهزة اللوحية والشاشات الصغيرة */
@media (max-width: 1024px) {
    .equipment-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .hero h1 span {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    
    .hero h2 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
    section.hero {
    height: 450px;
}
}

/* لشاشات أقل من 768 بكسل (الموبايل) */
@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-direction: column;
        width: 100%;
    }
    
    nav li {
        margin-left: 0;
        margin-bottom: 0.7rem;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 1rem 0;
    }
    
    .main-content {
        padding: 1rem 0;
        min-width: auto;
    }
    
    .hero {
               height: 100%;
        padding: 15px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* لشاشات صغيرة جداً - الهواتف القديمة مثلا */
@media (max-width: 400px) {
    .hero h1, .hero h1 span {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}
/* أضف هذا الكود في نهاية ملف _public_html/css/style.css */

/* Loading Overlay Styles */
#loadingOverlay {
    display: none; /* Controlled by JavaScript */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    z-index: 9999; /* Ensure it's on top */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    color: var(--text-dark); /* White text */
    font-size: 1.5rem;
    flex-direction: column; /* Stack spinner and text vertically */
    gap: 20px; /* Space between spinner and text */
}

/* Font Awesome Spinner (fa-spin) */
.fa-spinner {
    /* Styles are mostly from Font Awesome itself, but you can override here */
}
/* ... (كود CSS الحالي لموقعك) ... */

/* الأنماط لزر "إرسال الطلب" العائم */
.floating-btn {
    position: fixed; /* يجعل الزر ثابتًا في الشاشة */
    bottom: 20px;    /* يبعد 20 بكسل من الأسفل */
    /* إذا كنت تستخدم اتجاه RTL للصفحة بالكامل، استخدم right: 20px; */
    right: 20px;      /* يبعد 20 بكسل من اليمين لتخطيط RTL */
    
    background-color: var(--primary-color); /* استخدم لونك الأساسي */
    color: White; /* لون النص الفاتح */
    background-color: var(--primary);
    border: none; /* مهم لإزالة حدود الرابط الافتراضية */
    border-radius: 50px; /* يجعل الزر دائريًا أو بيضاويًا بشكل كبير */
        padding: 10px 15px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* ظل لجعل الزر بارزًا */
    z-index: 1000; /* يضمن أن الزر يظهر فوق معظم المحتوى الآخر */
    display: flex; /* لترتيب الأيقونة والنص جنباً إلى جنب */
    align-items: center; /* لمحاذاة العناصر عمودياً */
    gap: 10px; /* مسافة بين الأيقونة والنص */
    transition: background-color 0.3s ease, transform 0.3s ease; /* تأثيرات عند التحويم */
    text-decoration: none; /* لإزالة خط التسطير الافتراضي للروابط */

}

.floating-btn:hover {
    background-color: var(--primary-dark); /* لون أغمق عند التحويم */
    transform: translateY(-3px); /* حركة خفيفة للأعلى عند التحويم */
}

.floating-btn i {
    font-size: 1.2rem; /* حجم أيقونة الكاميرا */
}

/* ملاحظة: بما أننا وضعنا right: 20px; مباشرة، قد لا تحتاج لهذه القاعدة إذا كان الـ HTML ثابتًا على RTL */
/* ولكن للحفاظ على المرونة: */
/*
html[dir="rtl"] .floating-btn {
    left: auto;
    right: 20px;
}
*/

/* Media Queries للاستجابة على الشاشات الأصغر */
@media (max-width: 768px) {
    .floating-btn {
        bottom: 15px;
        right: 15px; /* أو left: 15px; حسب اتجاهك */
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .floating-btn {
        bottom: 10px;
        right: 10px; /* أو left: 10px; حسب اتجاهك */
        padding: 10px 18px;
        font-size: 0.9rem;
        gap: 8px;
    }
}

h1.faiirent {
    font-size: 3rem;
}
footer {
    display: flex;
    z-index: 1001;
    text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        align-items: center;
}
/* ... (existing CSS for .equipment-card) ... */

.equipment-card.selected-for-rent {
    /* لون خلفية مختلف عندما يتم اختيار المعدة */
    background-color: #2b2b2b; /* لون أغمق قليلاً أو لون مميز */
    border: 2px solid var(--primary); /* إضافة حدود بلون مميز */
    box-shadow: 0 6px 12px rgba(0,0,0,0.4); /* ظل أكبر قليلاً */
    transform: translateY(-8px); /* تأثير خفيف للرفع */
}

/* يمكنك أيضاً إضافة تأثيرات على عناصر داخلية إذا أردت، مثلاً تغيير لون النص */
.equipment-card.selected-for-rent h3 {
    color: var(--secondary); /* أو أي لون آخر يميز العنصر المختار */
}
/* أنماط قسم البحث والتصفية */
.search-filter-container {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-filter-container .form-group {
    flex: 1;
    min-width: 200px;
}

#search-input {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f49921"><path d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 35px;
}

@media (max-width: 768px) {
    .search-filter-container {
        flex-direction: column;
    }
    
    .search-filter-container .form-group {
        width: 100%;
    }
}