* {
    box-sizing: border-box;
}

body {
    font-family: Arial;
    margin: 0;
    background: #f4f6f8;
}

/* ✅ FLOATING BACK BUTTON (FINAL FIX) */
.back-btn {
    position: fixed;
    top: 15px;
    left: 15px;

    padding: 10px 15px;
    background: #2c3e50;
    color: white;
    text-decoration: none;

    border-radius: 8px;
    font-weight: bold;

    z-index: 99999;

    box-shadow: 0 4px 10px rgba(0,0,0,0.3);

    display: inline-flex;
    align-items: center;
}

/* Hover */
.back-btn:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

/* HEADER */
header {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
}

/* MAIN */
main {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ✅ INPUT FIX */
input, select {
    width: 100%;
    padding: 10px;
}

/* BUTTON */
button {
    padding: 10px;
    background: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #219150;
}

/* LIST */
ul {
    list-style: none;
    padding: 0;
}

li {
    background: #f1f1f1;
    margin: 10px 0;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    border-radius: 5px;
}

/* ICONS */
.actions img {
    width: 22px;
    height: 22px;
    margin-left: 8px;
    cursor: pointer;
}

.actions img:hover {
    transform: scale(1.2);
}

/* DELETE MODAL */
.confirm-box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.confirm-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.btn-group {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}