@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}
/* بطاقات الملاعب */
.court-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 16px;
    margin: 16px auto;
    max-width: 400px;
    transition: transform 0.2s ease-in-out;
}

    .court-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    }

    .court-card h3 {
        font-size: 20px;
        color: #333;
        margin-bottom: 8px;
    }

    .court-card p {
        font-size: 14px;
        color: #555;
        margin: 4px 0;
    }

/* التقييمات (نجوم) */
.rating-stars {
    color: #FFD700; /* ذهبية */
    font-size: 18px;
}

/* زر الحجز */
.book-now-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

    .book-now-btn:hover {
        background-color: #218838;
    }

/* حاوية البطاقات */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: 20px;
}
@media (max-width: 600px) {
    .court-card {
        max-width: 90%;
        margin: 12px auto;
    }

    .card-grid {
        flex-direction: column;
        align-items: center;
    }
}
.countdown-bar-container {
    margin-top: 1rem;
    width: 100%;
    background-color: #ffe0b2;
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
}

.countdown-progress {
    height: 100%;
    background-color: #FF6D00;
    width: 100%;
    transition: width 1s linear;
}
.notification {
    padding: 1rem;
    margin: 1rem auto;
    border-radius: 8px;
    max-width: 600px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease-in-out;
}

    .notification.success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .notification.error {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    .notification.warning {
        background-color: #fff3cd;
        color: #856404;
        border: 1px solid #ffeeba;
    }

    .notification.info {
        background-color: #d1ecf1;
        color: #0c5460;
        border: 1px solid #bee5eb;
    }

    .notification .close {
        background: none;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        color: inherit;
    }
.qr-section {
    text-align: center;
    margin-top: 2rem;
}

.qr-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1E88E5;
}

.qr-note {
    font-size: 0.9rem;
    color: #757575;
    margin-top: 1rem;
}

.notification {
    padding: 1rem;
    margin: 1rem auto;
    border-radius: 8px;
    max-width: 600px;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

    .notification.success {
        background-color: #e0ffe0;
        color: #2e7d32;
        border: 2px solid #81c784;
    }

    .notification.error {
        background-color: #ffebee;
        color: #c62828;
        border: 2px solid #ef9a9a;
    }

.card {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 1.5rem;
    background-color: #f9f9f9;
    font-family: 'Tajawal', sans-serif;
}
/* إعدادات أساسية */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

/* رأس الصفحة */
header {
    background-color: #003366;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

    nav ul li a {
        color: white;
        font-weight: 500;
    }

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* لغة الموقع */
select {
    background: #ffd700;
    border: none;
    padding: 5px 8px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

/* الكاروسيل */
.carousel {
    position: relative;
    overflow: hidden;
}

    .carousel img {
        width: 100%;
        height: 450px;
        object-fit: cover;
    }

    .carousel button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.5);
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
        font-size: 1.2rem;
    }

        .carousel button:first-of-type {
            left: 10px;
        }

        .carousel button:last-of-type {
            right: 10px;
        }

/* الأقسام */
section {
    padding: 40px 20px;
    text-align: center;
}

    section h2 {
        color: #003366;
        margin-bottom: 20px;
    }

/* معرض الصور */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

    .gallery-container img {
        width: 100%;
        border-radius: 8px;
        transition: transform 0.3s ease;
    }

        .gallery-container img:hover {
            transform: scale(1.05);
        }

/* نموذج الاتصال */
form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, textarea, button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

button {
    background-color: #003366;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

    button:hover {
        background-color: #0055aa;
    }

/* الرسائل */
.success {
    color: green;
    font-weight: bold;
    margin-top: 10px;
}

/* الخريطة */
.map iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* الفوتر */
footer {
    background-color: #003366;
    color: white;
    padding: 20px;
    text-align: center;
}

.social-icons {
    margin-top: 10px;
}

    .social-icons a {
        margin: 0 10px;
        font-size: 1.2rem;
        color: white;
    }

        .social-icons a:hover {
            color: #ffd700;
        }

/* الجوال */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #003366;
        width: 200px;
        padding: 20px;
        display: none;
    }

        nav ul.open {
            display: flex;
        }

    .menu-toggle {
        display: block;
    }
}
