﻿body {
    text-align: center;
    font-family: Arial;
    background-image: url('/Content/school.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    /* طبقة غامقة حتى يوضح النص */
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
.logo {
    font-size: 50px;
    font-weight: bold;
    color: white;
    padding: 25px 50px;
    margin-top: 40px;
    border-radius: 20px;
    background: rgba(0,0,0,0.6);
}

/* Login page styling (red background, centered card) */
.login-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ff5a5f 0%, #c62828 100%);
    padding: 40px 16px;
    box-sizing: border-box;
}

.login-card {
    width: 360px;
    max-width: 94%;
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.20);
    text-align: center;
    direction: rtl;
}

.login-icon {
    max-height: 88px;
    width: auto;
    margin-bottom: 12px;
    display: inline-block;
}

.login-card h2 {
    margin: 6px 0 14px;
    font-size: 20px;
    color: #0f172a;
}

/* Inputs */
.form-control {
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Button */
.btn-login {
    width: 100%;
    padding: 10px 12px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #b91c1c, #7f1d1d);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* Helper link */
.auth-link {
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
}

.auth-link a {
    color: #b91c1c;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 420px) {
    .login-card { padding: 18px; }
    .login-icon { max-height: 72px; }
}
/* 🔥 صفحة تسجيل الدخول */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* 🔥 الصندوق */
.login-box {
    width: 320px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(0,0,0,0.7);
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    text-align: center;
}

    /* العنوان */
    .login-box h2 {
        color: white;
        margin-bottom: 20px;
    }

/* الحقول */
.input {
    width: 90%;
    padding: 10px;
    margin: 10px;
    border: none;
    border-radius: 10px;
}

/* الزر */
.btn-login {
    width: 100%;
    padding: 10px;
    background: #ff6a00;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-login:hover {
        background: #ee0979;
    }

/* الرسالة */
.msg {
    color: yellow;
    margin-top: 10px;
}
.buttons {
    margin-top: 20px;
}

    .buttons .btn {
        margin: 10px;
    }
/* رسالة النجاح */
#successBox {
    color: white;
    font-size: 22px;
    margin-top: 15px;
    background: green;
    padding: 10px;
    border-radius: 10px;
}

/* الكانفس */
#confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
/* 🔥 جدول احترافي */
.styled-table {
    border-collapse: collapse;
    margin-top: 20px;
    width: 70%;
    font-size: 16px;
    font-family: Arial;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

    /* الهيدر */
    .styled-table thead tr {
        background: linear-gradient(45deg, #4facfe, #00f2fe);
        color: white;
        text-align: center;
    }

    /* خلايا */
    .styled-table th,
    .styled-table td {
        padding: 12px 15px;
        border: 1px solid #ddd;
    }

    /* صفوف */
    .styled-table tbody tr {
        border-bottom: 1px solid #ddd;
    }

        /* صفوف متناوبة */
        .styled-table tbody tr:nth-child(even) {
            background-color: #f3f3f3;
        }

        /* hover */
        .styled-table tbody tr:hover {
            background-color: #d1ecf1;
            transition: 0.3s;
        }
/* مركز الصفحة */
.admin-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* البوكس */
.admin-box {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    color: white;
    width: 650px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* زر */
.btn-login {
    background: #4facfe;
    border: none;
    padding: 10px 20px;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
}

/* جدول */
.styled-table {
    border-collapse: collapse;
    margin-top: 20px;
    width: 100%;
    color: darkred;
}

    /* هيدر */
    .styled-table th {
        background-color: #4facfe;
        padding: 10px;
    }

    /* خلايا */
    .styled-table td {
        padding: 10px;
        border: 1px solid rgba(255,255,255,0.3);
    }

    /* صفوف */
    .styled-table tr:nth-child(even) {
        background-color: rgba(255,255,255,0.1);
    }

    /* Hover */
    .styled-table tr:hover {
        background-color: rgba(255,255,255,0.2);
    }
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 🔥 خلي الخلفية حقيقية */
body {
    font-family: Arial;
    background: url('/Content/school.png') no-repeat center center;
    background-size: cover;
    height: 100vh;
}

/* 🔥 يخلي المحتوى بالنص */
.home-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 🔥 اللوكو */
.logo {
    font-size: 45px;
    font-weight: bold;
    color: white;
    padding: 20px 40px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
}

/* 🔥 البوكس */
.home-content {
    background: rgba(0,0,0,0.5);
    padding: 25px;
    border-radius: 20px;
    width: 50%;
    text-align: center;     
    color: white;
}

/* Homepage buttons — centered, prominent */
.home-buttons {
    margin-top: 28px;
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.home-buttons .btn {
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
    display: inline-block;
}

/* Primary (signup) */
.btn-home-signup {
    background: linear-gradient(90deg, #2b6cb0 0%, #1e3a8a 100%);
}

/* Accent (login) */
.btn-home-login {
    background: linear-gradient(90deg, #ff7a59 0%, #ef4444 100%);
}

/* Hover / focus */
.home-buttons .btn:hover,
.home-buttons .btn:focus {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    opacity: 0.98;
}

/* Responsive: stack on small screens */
@media (max-width: 520px) {
    .home-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .home-buttons .btn {
        width: 260px;
        max-width: 92%;
        text-align: center;
    }
}

/* Signup page: center actions and prominent button */
.login-box .signup-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Primary signup button */
.login-box .btn-signup {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #2b6cb0 0%, #1e3a8a 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.16);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* Hover effect */
.login-box .btn-signup:hover,
.login-box .btn-signup:focus {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}

/* Sign-in link below button */
.login-box .signin-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    background: rgba(255,255,255,0.06);
    padding: 8px 12px;
    border-radius: 8px;
}

/* Ensure inputs fill nicely inside the box */
.login-box .input {
    width: calc(100% - 20px);
    display: block;
    margin: 8px auto;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #0f172a;
}

/* Keep mobile-friendly sizes */
@media (max-width: 420px) {
    .login-box { width: 92%; padding: 20px; }
    .login-box .btn-signup { font-size: 15px; padding: 10px 12px; }
}
/* الصفحة */
.classes-page {
    text-align: center;
    padding-top: 80px;
    color: white;
}

/* العنوان */
.title {
    font-size: 40px;
    margin-bottom: 30px;
}

/* توزيع الأزرار */
.grid-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 60%;
    margin: auto;
}

    /* شكل الأزرار */
    .grid-buttons button {
        padding: 20px;
        font-size: 18px;
        border: none;
        border-radius: 15px;
        background: linear-gradient(45deg, #4facfe, #00f2fe);
        color: white;
        cursor: pointer;
        transition: 0.3s;
    }

        .grid-buttons button:hover {
            transform: scale(1.08);
        }

/* صندوق المدرسين */
.teachers-box {
    margin-top: 40px;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 20px;
}

    /* قائمة */
    .teachers-box ul {
        list-style: none;
        padding: 0;
    }

    .teachers-box li {
        padding: 10px;
        border-bottom: 1px solid #ccc;
    }
#searchInput {
    border: none;
    outline: none;
    background: rgba(255,255,255,0.9);
}
