*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Tahoma,sans-serif;
}

body{
    background:#eceff3;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.container{
    width:100%;
    display:flex;
    justify-content:center;
}

.card{

    width:100%;
    max-width:420px;

    background:#fff;

    border-radius:12px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);

    padding:30px;

    text-align:center;

}

.logo{

    width:110px;

    height:110px;

    object-fit:contain;

    margin-bottom:15px;

}

h1{

    color:#1d3557;

    font-size:30px;

}

h2{

    margin-top:8px;

    color:#444;

    font-size:19px;

}

h3{

    margin-top:10px;

    color:#666;

    font-size:18px;

}

.year{

    margin-top:8px;

    color:#777;

    font-size:16px;

}

input{

    width:100%;

    margin-top:35px;

    height:55px;

    border:2px solid #d8d8d8;

    border-radius:8px;

    font-size:20px;

    text-align:center;

    outline:none;

    transition:.3s;

}

input:focus{

    border-color:#005bbb;

}

button{

    width:100%;

    margin-top:20px;

    height:55px;

    border:none;

    border-radius:8px;

    background:#005bbb;

    color:#fff;

    font-size:20px;

    cursor:pointer;

    transition:.3s;

}

button:hover{

    background:#00449c;

}

button:active{

    transform:scale(.98);

}

#error{

    margin-top:15px;

    color:#d10000;

    font-size:18px;

    font-weight:bold;

    min-height:25px;

}

@media(max-width:500px){

.card{

padding:20px;

}

.logo{

width:90px;

height:90px;

}

h1{

font-size:26px;

}

h2{

font-size:18px;

}

h3{

font-size:16px;

}

}

/* ===== صفحة النتيجة ===== */

.result-card{

    max-width:750px;

    width:100%;

    padding:30px;

}

.header{

    text-align:center;

    margin-bottom:25px;

}

.logo-result{

    width:90px;

    margin-bottom:10px;

}

.header h2{

    font-size:30px;

    color:#222;

}

.header h3{

    font-size:22px;

    color:#444;

    margin-top:6px;

}

.header h4{

    font-size:18px;

    color:#666;

    margin-top:8px;

}

.student-info{

    color:#c62828;

    line-height:2;

    font-size:18px;

    margin-top:20px;

    margin-bottom:20px;

}

.student-info span{

    font-weight:bold;

}

table{

    width:100%;

    border-collapse:collapse;

    margin-top:15px;

}

table th{

    background:#ececec;

    padding:12px;

    border:1px solid #bdbdbd;

    font-size:18px;

}

table td{

    border:1px solid #bdbdbd;

    padding:12px;

    text-align:center;

    font-size:17px;

}

.result{

    margin-top:25px;

    color:#0b8f2b;

    font-size:20px;

    font-weight:bold;

    line-height:2;

}

.success{

    color:#0b8f2b;

}

.footer{

    margin-top:35px;

    text-align:center;

    color:#666;

    font-size:18px;

}

.result-card button{

    background:#005bbb;

    color:white;

    border:none;

    border-radius:8px;

    width:100%;

    height:50px;

    font-size:18px;

    cursor:pointer;

}

.result-card button:hover{

    background:#00469b;

}

/* ===== تحسينات الواجهة الرئيسية ===== */

body{

background:#edf2f7;

background-image:
linear-gradient(to bottom,#f8fafc,#edf2f7);

}

.card{

border-top:6px solid #0d6efd;

animation:show .4s;

}

@keyframes show{

from{

opacity:0;

transform:translateY(25px);

}

to{

opacity:1;

transform:translateY(0);

}

}

.logo{

display:block;

margin:auto;

margin-bottom:18px;

}

input{

direction:ltr;

letter-spacing:2px;

font-weight:bold;

}

input::placeholder{

direction:rtl;

letter-spacing:0;

font-weight:normal;

}

button{

font-weight:bold;

background:#0d6efd;

box-shadow:0 8px 20px rgba(13,110,253,.25);

}

button:hover{

background:#0b5ed7;

}

#error{

margin-top:12px;

font-size:17px;

font-weight:bold;

color:#dc3545;

}

.result-card{

border-top:6px solid #198754;

}

table tr:nth-child(even){

background:#fafafa;

}

table tr:hover{

background:#f5f5f5;

}

.success{

font-size:22px;

}

/* ========= الجزء الثامن ========= */

html{
scroll-behavior:smooth;
}

button{

transition:.3s;

}

button:hover{

transform:translateY(-2px);

box-shadow:0 10px 25px rgba(0,0,0,.18);

}

button:active{

transform:scale(.98);

}

input{

transition:.3s;

}

input:focus{

box-shadow:0 0 15px rgba(13,110,253,.25);

}

#error{

animation:fade .3s;

}

@keyframes fade{

from{

opacity:0;

transform:translateY(-10px);

}

to{

opacity:1;

transform:translateY(0);

}

}

table tr{

transition:.25s;

}

table tr:hover{

background:#f4f7fb;

}

.logo{

user-select:none;

pointer-events:none;

}

.logo-result{

user-select:none;

pointer-events:none;

}

.footer{

border-top:1px solid #ddd;

padding-top:15px;

margin-top:25px;

}

.result{

border-top:1px solid #ddd;

padding-top:15px;

}

.student-info p{

margin:6px 0;

}

@media(max-width:480px){

.card{

padding:18px;

}

.result-card{

padding:18px;

}

table th,

table td{

font-size:14px;

padding:8px;

}

.header h2{

font-size:24px;

}

.header h3{

font-size:18px;

}

.header h4{

font-size:16px;

}

.student-info{

font-size:15px;

}

.result{

font-size:18px;

}

.footer{

font-size:15px;

}

}