* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f4f6f8;
  padding: 20px;
}

/* LOGIN & DASHBOARD CARD */
#loginBox, #dashboard {
  background: #fff;
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#loginBox {
  max-width: 400px;
}

h2, h3 {
  margin-top: 20px;
}

input {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 8px 14px;
  margin-top: 6px;
  border: none;
  border-radius: 4px;
  background: #1976d2;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #125aa3;
}

.logout {
  background: #d32f2f;
  float: right;
}

.logout:hover {
  background: #a92828;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th {
  background: #1976d2;
  color: white;
  padding: 8px;
}

td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
}

/* EMPLOYEE DETAILS HIGHLIGHT */
#empTable td {
  font-size: 14px;
}

#empTable td:nth-child(4),
#empTable td:nth-child(5),
#empTable td:nth-child(6) {
  font-weight: bold;
}

#empTable td:nth-child(5) {
  color: #2e7d32; /* approved */
}

#empTable td:nth-child(6) {
  color: #d32f2f; /* rejected */
}


tr:nth-child(even) {
  background: #f9f9f9;
}

/* ACTION COLORS */
button[onclick^="accept"] {
  background: #2e7d32;
}
button[onclick^="reject"] {
  background: #d32f2f;
}
button[onclick^="revoke"] {
  background: #f57c00;
}

/* MOBILE */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  button, input {
    width: 100%;
  }
}
