body {
  margin:0; padding:0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color:#f0f4f8; color:#333;
}

.manual-entry {
  background-color: #fff9db !important;
  color: #856404;
  font-weight: 500;
}

.admin-container {
  max-width:900px; margin:20px auto; padding:10px;
}

.admin-header {
  display:flex; justify-content:space-between; align-items:center; margin-bottom:15px;
}

.card {
  background-color:#ffffff; border-radius:12px; box-shadow:0 4px 10px rgba(0,0,0,0.08); padding:20px; margin-bottom:20px; position: relative;
}

.card h2, .card h3 { margin-top:0; color:#444; }

.employee-table { width:100%; border-collapse:collapse; margin-top:10px; }
.employee-table th, .employee-table td { border:1px solid #ddd; padding:8px; text-align:center; }
.employee-table th { background-color:#f7f9fc; color:#555; }

.btn { padding:6px 12px; border-radius:8px; border:none; cursor:pointer; font-size:14px; }
.btn-add { background-color:#4caf50; color:white; margin-top:5px; }
.btn-add:hover { background-color:#3e8e41; }
.btn-delete { background-color:#f44336; color:white; }
.btn-delete:hover { background-color:#d32f2f; }
.btn-logout { background-color:#2196f3; color:white; }
.btn-logout:hover { background-color:#1976d2; }

input, select { padding:6px; margin:5px 0; border-radius:6px; border:1px solid #ccc; font-size:14px; width:100%; }

.login-card { max-width:400px; margin:0 auto; }

@media(max-width:600px){
  .admin-header { flex-direction:column; align-items:flex-start; }
  .employee-table th, .employee-table td { font-size:12px; padding:6px; }
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s ease;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  pointer-events: auto;
}
.toast button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}
.toast.success {
  background: #28a745;
}
.toast.error {
  background: #dc3545;
}

.overtime-switch {
  position: absolute;
  right: 20px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch {
  position: relative;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 999px;
  transition: 0.3s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + .slider {
  background: #34c759;
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
}

.switch-label {
  font-size: 14px;
}
