body {
  background-color: #f8f9fa;
  font-family: "Arial", sans-serif;
}

/* Navbar */
.navbar {
  background: linear-gradient(45deg, #007bff, #00d4ff) !important;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: bold;
  color: white !important;
  transition: transform 0.2s;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  color: white !important;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.3);
  font-weight: bold;
}

.navbar-toggler {
  border-color: white;
}

/* Cards */
.card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
}

/* Loading Spinner */
.loading-spinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Modal Colors */
.modal-success .modal-content {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.modal-error .modal-content {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.modal-warning .modal-content {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}
.modal-queue .modal-content {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Animations */
.animate__animated.animate__fadeIn {
  animation-duration: 0.5s;
}

.animate__animated.animate__fadeInUp {
  animation-duration: 0.7s;
}

/* Responsive */
@media (max-width: 576px) {
  .container {
    padding: 10px;
  }
  .table-responsive {
    overflow-x: auto;
  }
  .nav-link {
    padding: 8px 10px;
    font-size: 14px;
  }
  .card {
    margin-bottom: 15px;
  }
}

/* Table Badges */
.badge {
  font-size: 0.9em;
  padding: 5px 10px;
}

/* Image Thumbnail */
.img-thumbnail {
  transition: transform 0.3s;
}

.img-thumbnail:hover {
  transform: scale(1.1);
}

/* Animasi Profil Avatar */
.profile-avatar {
  transition: all 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.15) rotate(5deg);
}

.profile-avatar img {
  transition: all 0.3s ease;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}

/* Badge online kecil */
.position-absolute.bottom-0.end-0 {
  width: 12px;
  height: 12px;
}

/* Dropdown lebih halus */
.dropdown-menu {
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 200px;
}

.dropdown-item {
  border-radius: 8px;
  margin: 0 0.5rem;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: #0d6efd;
  color: white !important;
}

#flashModal .modal-content {
  border-radius: 20px;
}
