.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    z-index: 1000; 
}

.modal-content { 
    background: white; 
    margin: 10% auto; 
    width: 90%; 
    max-width: 500px; 
    border-radius: 8px; 
    position: relative; /* Added for close icon positioning */
}

.modal-header { 
    background: #4CAF50; 
    color: white; 
    padding: 16px; 
    display: flex; /* Added */
    justify-content: space-between; /* Added */
    align-items: center; /* Added */
}

.modal-header h4 {
    margin: 0; /* Added */
    color: white; /* Added - Ensures text is white */
}

.close-modal {
    background: none; /* Added */
    border: none; /* Added */
    color: white; /* Added */
    font-size: 24px; /* Added */
    cursor: pointer; /* Added */
    padding: 0; /* Added */
    line-height: 1; /* Added */
    position: absolute; /* Added */
    top: 15px; /* Added */
    right: 20px; /* Added */
}

.modal-body { 
    padding: 10px; 
}

.form-group input { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
}

.btn { 
    padding: 8px 16px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
}

.btn-update { 
    background: #4CAF50; 
    color: white; 
}

.btn-cancel { 
    background: #eee; 
}

.message { 
    padding: 10px; 
    margin-top: 10px; 
    display: none; 
}

.message.success { 
    background: #dfd; 
    color: #080; 
    display: block; 
}

.message.error { 
    background: #fdd; 
    color: #800; 
    display: block; 
}