body {
font-family: Arial;
margin: 0;
background: #eef2f7;
}

.back-btn {
position: fixed;
top: 15px;
left: 15px;
background: #34495e;
color: white;
padding: 8px 12px;
text-decoration: none;
border-radius: 5px;
}

header {
background: #2c3e50;
color: white;
text-align: center;
padding: 15px;
}

main {
display: flex;
gap: 20px;
padding: 20px;
}

/* FIX INPUT WIDTH ISSUE */
input, select {
width: 100%;
max-width: 260px;
padding: 8px;
margin-bottom: 10px;
}

.form-section, .list-section {
background: white;
padding: 15px;
border-radius: 8px;
}

.form-section { width: 30%; }
.list-section { width: 70%; }

button {
padding: 10px;
background: #27ae60;
color: white;
border: none;
cursor: pointer;
width: 100%;
}

button:disabled {
background: gray;
}

.error {
color: red;
font-size: 12px;
}

/* TABLE */
table {
width: 100%;
border-collapse: collapse;
}

th, td {
padding: 10px;
border-bottom: 1px solid #ddd;
}

/* FILTERS */
.filters {
display: flex;
gap: 10px;
margin-bottom: 10px;
}

/* MODAL */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
justify-content: center;
align-items: center;
}

.modal-content {
background: white;
padding: 20px;
border-radius: 8px;
width: 300px;
display: flex;
flex-direction: column;
gap: 10px;
position: relative;
}

/* CLOSE BUTTON */
.close-btn {
position: absolute;
top: 5px;
right: 10px;
cursor: pointer;
font-size: 20px;
}

/* DELETE BUTTON STYLE */
.danger {
background: #e74c3c;
}

.modal-actions {
display: flex;
gap: 10px;
}