/* تنسيق نظام الحجز والإشعارات */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: var(--secondary-color);
}

.notification.error {
    background-color: #e74c3c;
}

/* تنسيق صفحة الإدارة */
.admin-panel {
    padding: 40px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    margin-bottom: 40px;
}

.admin-panel h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: var(--primary-color);
    color: var(--white);
}

.admin-table tr:hover {
    background-color: rgba(91, 155, 213, 0.1);
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #4a7daa;
}

.btn-danger {
    background-color: #e74c3c;
    color: var(--white);
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

/* تنسيق النافذة المنبثقة */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px var(--shadow);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
    color: var(--light-text);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.booking-details {
    margin-bottom: 20px;
}

.booking-details p {
    margin-bottom: 10px;
}

.booking-details strong {
    color: var(--secondary-color);
}

/* تحسينات لنموذج الحجز */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(91, 155, 213, 0.3);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* تصميم متجاوب للجدول */
@media (max-width: 768px) {
    .admin-table, .admin-table thead, .admin-table tbody, .admin-table th, .admin-table td, .admin-table tr {
        display: block;
    }
    
    .admin-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .admin-table tr {
        border: 1px solid #ddd;
        margin-bottom: 15px;
    }
    
    .admin-table td {
        border: none;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-right: 50%;
        text-align: right;
    }
    
    .admin-table td:before {
        position: absolute;
        top: 12px;
        right: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
    
    .admin-table td:nth-of-type(1):before { content: "#"; }
    .admin-table td:nth-of-type(2):before { content: "الاسم"; }
    .admin-table td:nth-of-type(3):before { content: "الهاتف"; }
    .admin-table td:nth-of-type(4):before { content: "التاريخ"; }
    .admin-table td:nth-of-type(5):before { content: "الوقت"; }
    .admin-table td:nth-of-type(6):before { content: "الخدمة"; }
    .admin-table td:nth-of-type(7):before { content: "الإجراءات"; }
}
