/* Custom Styles for Sistem Absensi */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
}

/* Card hover effect */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Table styles */
.table th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
}

.table td {
  vertical-align: middle;
}

/* Button group for status */
.btn-group .btn-check:checked + .btn-outline-success {
  background-color: #198754;
  color: #fff;
  border-color: #198754;
}

.btn-group .btn-check:checked + .btn-outline-warning {
  background-color: #ffc107;
  color: #000;
  border-color: #ffc107;
}

.btn-group .btn-check:checked + .btn-outline-danger {
  background-color: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

.btn-group .btn {
  transition: all 0.15s ease;
}

/* Navbar customization */
.navbar {
  border-bottom: none;
}

/* Badge counters */
.badge {
  font-weight: 500;
  padding: 0.4em 0.7em;
}

/* Alert animations */
.alert {
  border-radius: 10px;
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  .btn-group .btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
  }

  .btn-group .btn i {
    display: none;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Input group focus */
.input-group:focus-within .input-group-text {
  border-color: #86b7fe;
}

.input-group:focus-within .form-control {
  border-color: #86b7fe;
}
