body { font-family: Arial, sans-serif; margin: 2rem; }
table { border-collapse: collapse; width: 100%; margin-top: 1rem; }
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
th { background-color: #f2f2f2; }
.error { color: red; }

/* Add a hover effect to the table rows */
tr:hover { background-color: #f5f5f5; }

/* Add a hover effect to the table headers */
th:hover { background-color: #ddd; }

/* Add a hover effect to the table cells */
td:hover { background-color: #f5f5f5; }



/* Add these to styles.css */
#add-form {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

#add-form input {
    margin-right: 1rem;
    padding: 0.5rem;
}

.actions button {
    margin: 0 0.25rem;
    padding: 0.25rem 0.5rem;
}

button.delete {
    background-color: #dc3545;
    color: white;
}

.editable input {
    width: 90%;
    padding: 0.25rem;
}
/* Add to styles.css */
table {
  table-layout: fixed;
}

td.actions {
  width: 150px; /* Fixed width for action column */
  min-width: 150px;
}

td.actions button {
  margin: 0 3px;
  padding: 4px 8px;
  font-size: 0.9em;
}



/* Add to styles.css */
#addEmployeeBtn, #refreshBtn {
    margin: 10px 0;
    padding: 8px 16px;
}

.actions button {
    min-width: 60px;
    margin: 0 5px;
}


/* Add this at the end */
#employees table {
    margin-top: 1rem;
}

#employees table td.actions {
    white-space: nowrap;
}

#employees table button {
    cursor: pointer;
}

#employees table button[data-action="delete"] {
    background-color: #be2409;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
}

#employees table button[data-action="edit"] {
    background-color: #1173dc;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 5px;
}
