/* تنسيق عام للواجهة */
.wrap {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    color: #0073aa;
    margin-bottom: 20px;
}

/* حقول البحث */
#search-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.search-field {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.search-field label {
    font-weight: bold;
    color: #333;
}

.search-field input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-field input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
}

.search-field button {
    padding: 10px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.search-field button:hover {
    background-color: #005177;
}

/* نتائج البحث */
#results {
    margin-top: 20px;
}

#results ul {
    list-style: none;
    padding: 0;
}

#results ul li {
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

#results ul li:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#results ul li .user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#results ul li .user-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#results ul li .user-actions form {
    margin: 0;
}

#results ul li .user-actions form input[type="submit"] {
    background-color: #d63638;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#results ul li .user-actions form input[type="submit"]:hover {
    background-color: #c82333;
}

#results ul li .user-actions form input[type="submit"].reset-password {
    background-color: #28a745;
}

#results ul li .user-actions form input[type="submit"].reset-password:hover {
    background-color: #218838;
}

/* تنسيق الجدول */
#results table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#results table th,
#results table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#results table th {
    background-color: #f9f9f9;
    font-weight: bold;
    color: #333;
}

#results table tr:hover {
    background-color: #f1f1f1;
}

#results table .user-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#results table .user-actions form {
    margin: 0;
}

#results table .user-actions form input[type="submit"] {
    background-color: #d63638;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#results table .user-actions form input[type="submit"]:hover {
    background-color: #c82333;
}

#results table .user-actions form input[type="submit"].reset-password {
    background-color: #28a745;
}

#results table .user-actions form input[type="submit"].reset-password:hover {
    background-color: #218838;
}

/* تنسيق البراندنج */
.branding {
    padding: 15px;
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
    margin-top: 30px;
    font-size: 14px;
    color: #666;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.branding p {
    display: flex; /* استخدام Flexbox للمحاذاة الأفقية */
    align-items: center; /* محاذاة العناصر عموديًا في المنتصف */
    justify-content: center; /* توسيط العناصر أفقيًا */
    gap: 8px; /* المسافة بين النص واللوجو */
}

.branding a.go-net-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    color: #0073aa;
    transition: color 0.3s ease;
}

.branding a.go-net-link:hover {
    color: #005177;
}

.branding .go-net-logo {
    width: auto; /* جعل العرض تلقائيًا */
    height: 30px; /* جعل الارتفاع متناسبًا مع حجم النص */
    vertical-align: middle; /* محاذاة عمودية في المنتصف */
}
/* استجابة للشاشات الصغيرة */
@media (max-width: 480px) {
    .search-field {
        flex: 1 1 100%;
    }
    .search-field button {
        width: 100%;
    }
}

@media (min-width: 600px) {
    .search-field {
        flex: 1 1 calc(50% - 15px);
    }
}

@media (min-width: 900px) {
    .search-field {
        flex: 1 1 calc(25% - 15px);
    }
}

/* تنسيق Select2 */
.select2-container {
    width: 100% !important;
    margin-bottom: 15px;
}

.select2-selection--multiple {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 5px !important;
}

.select2-selection__choice {
    background-color: #0073aa !important;
    border: none !important;
    color: white !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
}

.select2-selection__choice__remove {
    color: white !important;
    margin-right: 5px !important;
}

/* تنسيق زر إلغاء الطلب */
#results ul li .user-actions form input[type="submit"].cancel-order {
    background-color: #ffc107;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#results ul li .user-actions form input[type="submit"].cancel-order:hover {
    background-color: #e0a800;
}