*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body{
    min-height:100vh;
    background:linear-gradient(135deg,#667eea,#764ba2);
    padding:40px 20px;
}

.container{
    max-width:850px;
    margin:auto;
    background:#ffffff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

h1{
    text-align:center;
    margin-bottom:25px;
    color:#4f46e5;
    font-size:2rem;
}

h2{
    margin-bottom:15px;
    color:#333;
}

form{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:25px;
}

input{
    flex:1;
    min-width:220px;
    padding:12px 15px;
    border:2px solid #e5e7eb;
    border-radius:12px;
    font-size:15px;
    transition:0.3s;
    outline:none;
}

input:focus{
    border-color:#4f46e5;
    box-shadow:0 0 0 4px rgba(79,70,229,0.15);
}

button{
    border:none;
    border-radius:12px;
    padding:12px 18px;
    cursor:pointer;
    font-weight:600;
    transition:0.3s;
}

form button{
    background:#4f46e5;
    color:white;
}

form button:hover{
    background:#4338ca;
    transform:translateY(-2px);
}

hr{
    border:none;
    height:1px;
    background:#e5e7eb;
    margin:20px 0;
}

#listSiswa{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.card{
    background:#f8fafc;
    border-left:5px solid #4f46e5;
    padding:18px;
    border-radius:15px;
    transition:0.3s;
}

.card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.card h3{
    color:#111827;
    margin-bottom:5px;
    font-size:1.1rem;
}

.card p{
    color:#6b7280;
}

.actions{
    margin-top:15px;
    display:flex;
    gap:10px;
}

.editBtn{
    background:#f59e0b;
    color:white;
}

.editBtn:hover{
    background:#d97706;
}

.hapusBtn{
    background:#ef4444;
    color:white;
}

.hapusBtn:hover{
    background:#dc2626;
}

@media(max-width:768px){

    .container{
        padding:20px;
    }

    form{
        flex-direction:column;
    }

    button{
        width:100%;
    }

    .actions{
        flex-direction:column;
    }

    .actions button{
        width:100%;
    }

}
