﻿.rank-grid {
    width: 100%;
    border-collapse: collapse;
    background-color: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    direction: rtl; /* إضافة خاصية RTL */
}

.grid-header {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 14px; /* زيادة المسافة الداخلية */
    font-size: 1.9rem; /* زيادة حجم الخط */
}

.grid-row, .grid-row-alt {
    text-align: center;
    padding: 16px; /* زيادة المسافة الداخلية للصفوف */
    border-bottom: 1px solid #ddd;
    color: #555;
    font-size: 1.5rem; /* زيادة حجم الخط */
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.grid-row-alt {
    background-color: #f2f2f2;
}

.grid-row:hover {
    background-color: #f0f0f0;
}

.grid-title {
    font-size: 1.8rem; /* حجم الخط الأساسي للعنوان */
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* تنسيق حقل البحث */
.search-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input {
    padding: 10px;
    font-size: 1.1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 70%;
    max-width: 300px;
    margin-right: 10px;
}

.search-button {
    padding: 10px 20px;
    font-size: 1.1rem;
    border: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .search-button:hover {
        background-color: #45a049;
    }

/* التنسيقات للهاتف والجوال */
@media (max-width: 768px) {
    .grid-title {
        font-size: 1.5rem;
    }

    .grid-header {
        padding: 10px;
    }

    .grid-row, .grid-row-alt {
        padding: 10px;
        font-size: 0.95rem;
    }

    .rank-grid {
        border-radius: 8px;
    }

    .search-input {
        width: 60%;
    }
}

/* التنسيقات للأجهزة الأصغر */
@media (max-width: 480px) {
    .grid-title {
        font-size: 1.2rem;
    }

    .grid-row, .grid-row-alt {
        padding: 8px;
        font-size: 0.9rem;
    }

    .search-input {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-container {
        flex-direction: column;
    }
}

.card {
    width: 100%; /* ضبط الكارد ليكون متناسب مع حجم الجدول */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}
        /* الهيدر الجديد مع التنقل العصري */
        .header {
            position: fixed;
            top: 0;
            right: 0;
            left: 0;
            background-color: white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            padding: 10px 20px;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo img {
            height: 50px;
            width: auto;
        }

        .logo h2 {
            font-size: 1.5rem;
            color: #333;
            white-space: nowrap;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .nav-links a {
            color: #333;
            text-decoration: none;
            padding: 8px 12px;
            border-radius: 4px;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .nav-links a:hover {
            background-color: #f0f0f0;
        }

        .dropdown {
            position: relative;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background-color: white;
            min-width: 200px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            border-radius: 4px;
            z-index: 1001;
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }

        .dropdown-content a {
            display: block;
            padding: 10px 15px;
        }

        /* الفوتر العصري */
        .footer {
            background-color: #f8f9fa;
            color: #333;
            text-align: center;
            padding: 10px 20px;
            margin-top: 20px;
            box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        }

        .footer p {
            margin: 5px 0;
        }

     

        .card {
            max-width: initial;
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
.carda {
    max-width: auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}