
/* أنماط خاصة بصفحة الاستعلامات */
.search-container {
    max-width: 90%;
    margin: 20px auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.search-container input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    text-align: right;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.search-container input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 150, 136, 0.3);
    outline: none;
}

.search-container select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    text-align: right;
    background-color: #f9f9f9;
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="%23009688" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center/15px;
    padding-right: 40px;
    box-sizing: border-box;
}
.header-logo img {
    width: 95px; /* Increased size */
    height: 95px; /* Increased size */
    object-fit: contain;
}
.search-container select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 150, 136, 0.3);
    outline: none;
}

table {
    width: 100%;
    max-width: 75%;
    border-collapse: collapse;
    margin: 20px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow-x: auto; /* إضافة شريط تمرير أفقي عند الحاجة */
    display: block;
        table-layout: auto; /* للسماح بتعديل عرض الأعمدة تلقائياً */

}

table th, table td {
    border: 1px solid #ddd;
    text-align: center;
    white-space: nowrap; /* منع التفاف النص */
    min-width: 100px; /* عرض أدنى للخلايا */
    padding: 12px;
    overflow: hidden;
    text-overflow: ellipsis; /* إضافة نقاط (...) إذا تجاوز النص العرض */

        box-sizing: border-box; /* تضمن أن الحقول لا تخرج عن الإطار */
}
@media (min-width: 768px) {
    table {
        width: 100%;
        max-width: 75%;
    }

    table th, table td {
        padding: 15px;
        font-size: 1rem;
    }
}

table th {
    background-color: #009688;
    color: white;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #ddd;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination a {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #009688;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #00796b;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.back-to-home {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, #ff9800, #f44336);
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.back-to-home:hover {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .search-container {
        padding: 10px;
    }

    .search-container input[type="text"], .search-container select {
        padding: 10px;
        font-size: 0.9rem;
    }

    table th, table td {
        padding: 8px;
        font-size: 0.9rem;
    }

    .pagination a {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .back-to-home {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

.search-container select {
    background: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center/15px;
}

.search-container select:hover {
    background-color: #ecf0f1;
}
