/* 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;
}

/* MAIN LAYOUT */
.content-wrapper{
    display:flex;
    justify-content:center;
    align-items:stretch;
    gap:40px;
    padding:40px;
    flex-wrap:wrap;
}

/* LEFT FORM */
.form-section{
    flex:1;
    max-width:400px;
}

.main-title{
    margin-bottom:15px;
}

/* FORM DESIGN */
form{
    background:rgba(255,255,255,0.15);
    padding:25px;
    border-radius:15px;
    backdrop-filter:blur(10px);
}

form label{
    display:block;
    margin-bottom:6px;
}

form input,
form textarea{
    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;
    cursor:pointer;
}

form button:hover{
    color:black;
    transform:scale(1.05);
}

/* DIVIDER */
.divider-vertical{
    width:2px;
    background:#fff;
    align-self:stretch;
}

/* RIGHT SECTION */
.table-section{
    flex:2;
    min-width:500px;
    background:rgba(255,255,255,0.1);
    padding:20px;
    border-radius:15px;
}

.table-section h3{
    margin-bottom:15px;
}

/* FOOD GRID */
.food-container{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:20px;
}

/* CARD */
.card{
    position:relative;
    border-radius:12px;
    overflow:hidden;
}

.card img{
    width:100%;
    height:150px;
    object-fit:cover;
}

/* OVERLAY */
.overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.7);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    opacity:0;
    transition:0.3s;
    text-align:center;
    padding:10px;
}

.card:hover .overlay{
    opacity:1;
}

/* DELETE BUTTON */
.delete-btn{
    margin-top:10px;
    padding:6px 12px;
    background:red;
    color:white;
    border-radius:6px;
    text-decoration:none;
}

/* RESPONSIVE */
@media(max-width:768px){
    .content-wrapper{
        flex-direction:column;
        align-items:center;
    }

    .divider-vertical{
        width:100%;
        height:2px;
        margin:20px 0;
    }
    form button {
        background-color: #fff; /* putih */
        color: #000; /* 🔥 teks hitam */
        border: 1px solid #000; /* optional bagi nampak */
    }
}