/* التنسيقات العامة للحاوية الرئيسية */
.decor-platform-container { 
    max-width: 800px; 
    margin: 30px auto; 
    padding: 30px; 
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 5px 25px rgba(0,0,0,0.1); 
}

/* تنسيقات أقسام النموذج */
.decor-form .form-section { 
    margin-bottom: 30px; 
    padding: 20px; 
    background: #dbe4ed; 
    border-radius: 10px; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.1); 

}

.form-section h3 { 
    color: #2271b1; 
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0px; 
}

/* تنسيقات المجموعات داخل الأقسام */
.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: #444; 
}

.form-group input, 
.form-group select, 
.form-group textarea { 
    width: 100%;
    padding: 9px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    background: #f9f9f9; 
    transition: all 0.3s; 
    font-size: 13px;
    display: flex;
    flex-direction: column;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus { 
    border-color: #2271b1; 
    background: #fff; 
    outline: none; 
}

/* تنسيقات قسم الغرف */
.rooms-section { 
    margin: 20px 0; 
}

.room-field { 
    padding: 15px; 
    background: #f0f5fb;
    border-radius: 6px; 
    margin-bottom: 15px; 
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* تنسيقات الأزرار */
.decor-button { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    background: #2271b1; 
    color: white; 
    padding: 12px 25px; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 16px; 
    transition: all 0.3s; 
    text-decoration: none;
}

.decor-button:hover { 
    background: #135e96; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.decor-button i { 
    margin-left: 5px; 
}

/* تنسيقات قسم السعر */
.price-section { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 0 0;
    border-top: 1px solid #eee;
}

.price-display { 
    display: flex;
    gap: 15px;
    align-items: baseline;
    flex-direction: row;
    align-content: center;
    direction: rtl;
}

.price-value { 
    font-size: 24px; 
    font-weight: bold; 
    color: #2271b1; 
}

/* تنسيقات رسالة النجاح */
.decor-notice { 
    padding: 20px; 
    background: #f0fff0; 
    border-left: 4px solid #46b450; 
    margin-top: 30px; 
    border-radius: 0 6px 6px 0;
}

.decor-notice.success { 
    background: #f0fff0; 
    border-color: #46b450; 
}

.decor-notice h3 { 
    margin-top: 0; 
    color: #46b450; 
    display: flex;
    align-items: center;
    gap: 10px;
}

/* التنسيقات الخاصة بالغرف المضافة */
#add-room {
    background: #4CAF50;
    margin-top: 10px;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .decor-platform-container {
        padding: 15px;
        margin: 15px;
    }
    
    .room-field {
        grid-template-columns: 1fr;
    }
    
    .price-section {
        flex-direction: column;
        gap: 20px;
    }
}



.decor-admin .decor-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.decor-admin h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 0;
}

.decor-import-form .form-group {
    margin-bottom: 15px;
}

.decor-import-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.decor-orders-table {
    margin-top: 20px;
    background: #f7f7f7;
    padding: 15px 10px;
    border-radius: 10px;
    text-align: center;    
}

.decor-orders-table .actions {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.decor-orders-table .button-small {
    padding: 4px 8px;
    font-size: 13px;
}

.decor-orders-table .button-delete {
    background: #e74c3c;
    color: white;
    border: none;
}

.decor-orders-table .button-delete:hover {
    background: #c0392b;
}

.empty-table {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}


/* نوافذ منبثقة */
.decor-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.decor-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #ddd;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.decor-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.decor-close:hover {
    color: #333;
}

/* عرض التفاصيل */
.decor-order-view {
    font-size: 16px;
    line-height: 1.8;
    direction: rtl;
}

.detail-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
}

.detail-row label {
    font-weight: 600;
    min-width: 200px;
    color: #333;
}

.detail-row.highlight {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

.detail-row .price {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.room-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
}

.room-header {
    font-weight: bold;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #0073aa;
}

.room-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.files-list {
    margin-top: 10px;
}

.file-link {
    display: block;
    padding: 8px 12px;
    background-color: #f1f1f1;
    border-radius: 4px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #0073aa;
}

.file-link:hover {
    background-color: #e9e9e9;
}

.file-link .dashicons {
    margin-left: 5px;
    vertical-align: middle;
}

/* نوافذ منبثقة مخصصة */
.decor-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.decor-popup.active {
    display: flex;
}
.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}
.close-popup {
    margin-top: 20px;
    background: #2271b1;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}
.close-popup:hover {
    background: #135e96;
}

/* تنسيقات ترقيم الصفحات */
.decor-pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    align-items: center;
    border: 1px solid #3498db;
}

.decor-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 2px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #2271b1;
    font-weight: 600;
}

.decor-pagination .page-numbers.current {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.decor-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    padding: 8px 5px;
}

.decor-pagination .page-numbers:hover:not(.current) {
    background: #f8f8f8;
    border-color: #999;
}

/* تنسيقات جديدة للاستيراد والتصدير */
.import-section, 
.export-section {
    padding: 20px;
    background: #f7f7f7;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e5e5e5;
}

.import-section h3, 
.export-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-section {
    text-align: center;
}

.export-section .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    font-size: 16px;
    margin-bottom: 15px;
}

.export-note {
    color: #7f8c8d;
    font-style: italic;
    margin-top: 10px;
}


/* تنسيقات حقل البحث */
.tablenav.top .actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tablenav.top input[type="text"] {
    height: 32px;
    padding: 0 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-width: 250px;
}

.tablenav.top .button {
    height: 32px;
    padding: 0 12px;
    line-height: 30px;
}


/* تنسيقات لوحة التحكم الفرعية (الواجهة الأمامية) */
.decor-frontend-container {
    max-width: 100%;
    margin: 30px auto;
    padding: 20px;
}

.decor-frontend-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.decor-frontend-table {
    width: 100%;
    border-collapse: collapse;
}

.decor-frontend-table th,
.decor-frontend-table td {
    padding: 12px;
    text-align-last: center;
    border-bottom: 1px solid #eee;
}

.decor-frontend-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.decor-info-box {
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}
.decor-info-box i.dashicons {
    float: right;
    font-size: 24px;
    color: #007cba;
    margin-left: 10px;
}

/*=============================*/

/* تنسيق الصف الرئيسي الأول (الترويسة) لجدول الطلبات فقط */
table.decor-orders-table thead tr {
    background-color: #f8f9fa !important; /* خلفية بلون باهت خفيف */
}

table.decor-orders-table thead tr th,
table.decor-orders-table thead tr td {
    background-color: #d2e8ef !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 5px;
    border-radius: 6px;
}