/* القاعدة الأساسية لصفحة استعراض الغرف الخاصة */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

/* تصميم الغرف */
.stable-column, .column-label {
    padding: 5px;
    margin: 3px;
    width: 45px;
    height: 45px;
    color: white; /* اللون الموحد للأرقام */
    text-align: center;
    vertical-align: middle;
    line-height: 35px;
    border-radius: 5px;
    flex-shrink: 0;
}

/* الغرف المتاحة والمحجوزة بشكل عام */
.stable-column.available, .stable-column.booked {
    background-color: #0f7a06; /* لون أخضر للجميع */
    cursor: pointer;
    color: white; /* تثبيت لون النص على الأبيض */
}

/* الغرف المحجوزة من قبل المستخدم */
.stable-column.user-booked {
    background-color: #681822; /* لون أحمر داكن للغرف المحجوزة من قبل المستخدم */
    cursor: not-allowed;
    color: white; /* تثبيت لون النص على الأبيض */
}

/* تصميم الأعمدة */
.stable-wrapper {
    display: flex;
    flex-direction: column-reverse;
    flex-shrink: 0;
}

/* الممرات الأفقية */
.spacer, .horizontal-spacer {
    width: 45px;
    height: 45px;
    background-color: transparent;
    flex-shrink: 0;
}

/* تصميم الحروف */
.column-label {
    background-color: #47402c;
    font-weight: bold;
    line-height: 35px;
}

/* حاوية الأعمدة مع تفعيل التمرير الأفقي */
.stable-container {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%; /* اجعل العرض يغطي الشاشة */
    padding-bottom: 10px; /* مسافة في الأسفل لتسهيل التمرير */
}

/* تحسين العرض على الشاشات الصغيرة */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 10px;
    }

    .stable-column, .column-label, .spacer, .horizontal-spacer {
        width: 30px;
        height: 30px;
        line-height: 25px;
    }

    .stable-container {
        overflow-x: scroll; /* السماح بتمرير أفقي */
    }
}

/* تنسيق الزر الأساسي */
.custom-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #997102; /* لون الخلفية الأساسي */
    color: white; /* لون النص */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    text-align: center; /* توسيط النص أفقياً */
    cursor: pointer;
    line-height: 1.5; /* يساعد على توسيط النص عمودياً */
    max-width: 200px; /* تحديد الحد الأقصى لعرض الزر */
    margin: 0 auto; /* توسيط الزر أفقيًا */
}

/* جعل الزر يعمل كمربع مع توسيط النص عموديًا */
.custom-btn {
    display: flex;
    justify-content: center; /* توسيط أفقي */
    align-items: center; /* توسيط عمودي */
}

/* تأثير عند تمرير الماوس فوق الزر */
.custom-btn:hover {
    background-color: #a6872d; /* اللون عند التحويم */
}

/* تحسين العرض على الشاشات الصغيرة */
@media (max-width: 768px) {
    .custom-btn {
        width: auto; /* عدم ملء العرض بالكامل */
        font-size: 1rem; /* حجم النص على الشاشات الصغيرة */
    }
}
