/* ===========================
   Student Result Manager
   style.css
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f4f7fb;
    padding:30px;
}

.container{
    max-width:1200px;
    margin:auto;
    background:#ffffff;
    padding:25px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

h1{
    text-align:center;
    color:#1f4e79;
    margin-bottom:25px;
}

.form-container{
    margin-bottom:25px;
}

.form-container h2{
    color:#333;
    margin-bottom:15px;
}

#studentForm{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:12px;
}

#studentForm input{
    padding:10px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:15px;
}

#studentForm input:focus{
    outline:none;
    border-color:#1976d2;
}

#studentForm button{
    background:#1976d2;
    color:white;
    border:none;
    border-radius:6px;
    padding:10px;
    cursor:pointer;
    font-size:15px;
    transition:0.3s;
}

#studentForm button:hover{
    background:#125ea8;
}

.search{
    margin:25px 0;
}

.search input{
    width:100%;
    padding:12px;
    border-radius:6px;
    border:1px solid #bbb;
    font-size:16px;
}

.search input:focus{
    outline:none;
    border-color:#1976d2;
}

table{
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
}

thead{
    background:#1976d2;
    color:white;
}

th,
td{
    border:1px solid #ddd;
    padding:10px;
    text-align:center;
}

tbody tr:nth-child(even){
    background:#f9f9f9;
}

tbody tr:hover{
    background:#eef6ff;
}

.delete-btn{
    background:#e53935;
    color:white;
    border:none;
    padding:7px 12px;
    border-radius:5px;
    cursor:pointer;
}

.delete-btn:hover{
    background:#c62828;
}

.grade-a{
    color:green;
    font-weight:bold;
}

.grade-b{
    color:#1565c0;
    font-weight:bold;
}

.grade-c{
    color:#f57c00;
    font-weight:bold;
}

.grade-d{
    color:#8d6e63;
    font-weight:bold;
}

.grade-f{
    color:red;
    font-weight:bold;
}

@media(max-width:900px){

    body{
        padding:10px;
    }

    .container{
        padding:15px;
    }

    table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }

    #studentForm{
        grid-template-columns:1fr;
    }

}
/* ===========================
   Project Information
=========================== */

.project-info{
    margin-top:40px;
    padding:20px;
    background:#f8f9fa;
    border-left:5px solid #1976d2;
    border-radius:8px;
}

.project-info h2{
    color:#1976d2;
    margin-bottom:10px;
}

.project-info p{
    margin:10px 0;
    line-height:1.6;
}

.project-info ol{
    margin:10px 0 15px 25px;
}

.project-info li{
    margin-bottom:6px;
}