/* تنسيق العنوان */
h1 {
    color: #00afb9;
    text-align: center;
}
body {
    background-color: #27ccdd26;
}
/* تنسيق زر "Create New" */
a.create-button {
    background-color: #00afb9;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

    a.create-button:hover {
        background-color: #007f88;
    }

/* Style the table container for responsiveness */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    direction: rtl; /* الكتابة من اليمين لليسار */
    text-align: right; /* توسيط النصوص من اليمين لليسار */
   
}


/* General table styling */
#mytable {
    width: 100%;
    font-size:1.2em;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #fff;
}

    #mytable thead {
        background-color: #00afb9;
        color: #fff;
    }

    #mytable th,
    #mytable td {
        padding: 10px 15px;
        border: 1px solid #ddd;
    }

    #mytable tbody tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    #mytable tbody tr:hover {
        background-color: #e6f7f9;
    }

    /* Style for buttons within table */
    #mytable a {
        color: white;
        background-color: #00afb9;
        padding: 5px 10px;
        border-radius: 5px;
        text-decoration: none;
        transition: background-color 0.3s;
    }

        #mytable a:hover {
            background-color: #007f86;
        }

    /* Centering text in cells */
    #mytable th,
    #mytable td {
        text-align: center;
        vertical-align: middle;
    }

    /* Adjust image styling */
    #mytable img {
        max-width: 100px;
        height: auto;
        border-radius: 5px;
        border: 1px solid #ddd;
    }
/* Media query for tablets */
@media (max-width: 768px) {
    .large-table {
        font-size: 1em;
        border-width: 1.5px;
    }

    #mytable th,
    #mytable td {
        padding: 8px 10px;
    }
}

/* Media query for mobile phones */
@media (max-width: 480px) {
    .large-table {
        font-size: 0.9em;
        border-width: 1px;
    }

    #mytable th,
    #mytable td {
        padding: 6px 8px;
        font-size: 0.85em;
    }

    #mytable img {
        max-width: 80px;
    }
}

.search-button {
    display: block;
    width: 50%; /* زر بعرض كامل الحاوية */
    max-width: 200px; /* تحديد عرض أقصى */
    margin: 20px 30px; /* توسيط الزر عموديًا */
    background-color: #b92167;
    color: white;
    padding: 10px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-items:center;
}

    .search-button:hover {
        background-color: darkgreen;
    }
.large-table {
    width: 100%; /* توسيع عرض الجدول إلى عرض الصفحة */
    font-size: 1.2em; /* تكبير حجم النص */
    background-color: #e8f5f9; /* لون خلفية مختلف */
    border: 2px solid #00afb9; /* حدود بارزة */
}
