Fix Delete Employee button

This commit is contained in:
2025-08-27 21:26:12 -04:00
parent 41b10a5a03
commit 18bc24d428
3 changed files with 338 additions and 151 deletions
+112 -1
View File
@@ -709,4 +709,115 @@ mark {
.modal-footer {
flex-direction: column;
}
}
}
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
z-index: 9999;
display: none;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
.modal.show {
opacity: 1;
}
.modal-content {
background: #ffffff;
border-radius: 0.75rem;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
0 10px 10px -5px rgba(0, 0, 0, 0.04);
max-width: 500px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
transform: translateY(-20px);
transition: transform 0.3s ease-in-out;
}
.modal.show .modal-content {
transform: translateY(0);
}
.modal-header {
padding: 1.5rem 1.5rem 1rem;
border-bottom: 1px solid #e5e7eb;
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h3 {
margin: 0;
color: #dc2626;
font-size: 1.25rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 0.5rem;
}
.modal-body {
padding: 1.5rem;
}
.modal-footer {
padding: 1rem 1.5rem;
border-top: 1px solid #e5e7eb;
display: flex;
justify-content: flex-end;
gap: 0.75rem;
}
.close-modal {
background: none;
border: none;
color: #6b7280;
cursor: pointer;
padding: 0.25rem;
border-radius: 0.375rem;
transition: all 0.2s ease-in-out;
}
.close-modal:hover {
color: #374151;
background: #f3f4f6;
}
.warning-text {
color: #dc2626;
font-size: 0.875rem;
margin-top: 0.75rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
/* Enhanced button styles for better interaction feedback */
.btn-danger:hover {
background-color: #b91c1c;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.delete-btn:hover {
background-color: #b91c1c !important;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}
/* Loading state for delete button */
.btn-danger:disabled {
background-color: #9ca3af;
cursor: not-allowed;
transform: none;
box-shadow: none;
}