/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* BACKGROUND */
body {
    min-height: 100vh;
    background: url('../Image/study.jpg') no-repeat center/cover;
    color: #fff;
}

/* OVERLAY */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: -1;
}

/* BACK BUTTON */
.btn-back{
    display:inline-block;
    margin:20px;
    padding:10px 18px;
    background: linear-gradient(135deg,#ff4d4d,#b30000);
    color:white;
    text-decoration:none;
    border-radius:8px;
}

.btn-back:hover{
    background:white;
    color:#b30000;
}

/* TITLE */
.main-title{
    text-align:center;
    margin:10px 0 20px;
}

/* MAIN LAYOUT */
.content-wrapper{
    display:flex;
    justify-content:center;
    align-items:stretch; /* penting */
    gap:40px;
    padding:40px;
    flex-wrap:wrap;
}

/* FORM */
.form-section{
    flex:1;
    max-width:400px;
}

form {
    background: rgba(255,255,255,0.15);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

form input,
form textarea,
form select {
    width:100%;
    padding:10px;
    margin-bottom:15px;
    border-radius:8px;
    border:none;
}

form button {
    display:block;
    margin:auto;
    padding:12px 30px;
    background:#fff;
    border:none;
    border-radius:10px;
    font-weight:bold;
}

form button:hover{
    transform:scale(1.05);
}

/* TABLE */
.table-section{
    flex:2;
    min-width:500px;
    background: rgba(255,255,255,0.1);
    padding:20px;
    border-radius:15px;
}

h3{
    margin-bottom:15px;
}

table{
    width:100%;
    border-collapse:collapse;
    margin-bottom:30px;
    background:#fff;
    color:#000;
    border-radius:10px;
    overflow:hidden;
}

th{
    background:#b30000;
    color:#fff;
    padding:10px;
}

td{
    padding:8px;
    text-align:center;
    text-decoration: none; 
}

tr:nth-child(even){
    background:#f2f2f2;
}

tr:hover{
    background:#ddd;
}

/* DELETE BUTTON */
.delete{
    padding:6px 15px;
    border:none;
    border-radius:8px;
    background:red;
    color:white;
}

.divider-vertical {
    width: 1px;
    background: linear-gradient( white);
    border-radius: 5px;
    align-self: stretch; /* ✅ bagi tinggi penuh */
}

/* LINK DALAM TABLE */
.table-section a {
    text-decoration: none; /* hilangkan underline */
    color: #000000;        /* warna ikut design */
    font-weight: bold;
}

.table-section a:hover {
    color: #8b0909;         /* warna berubah bila hover */
}
@media(max-width:768px){
    .content-wrapper{
        flex-direction:column;
        align-items:center;
    }

    .divider-vertical{
        width: 100%;
        height: 1px;
        background: linear-gradient( white);
        margin: 20px ;
    }

}