/* public/css/style.css */
body {
  font-family: "Roboto", sans-serif;
  background-color: #f5f5f5;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
  padding: 0;
  width: 100%;
  transition: all 0.3s;
}

.card {
  border: none;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
  font-weight: 500;
}

.table th {
  font-weight: 500;
}

.badge {
  font-weight: 500;
}

.btn-action {
  margin-right: 5px;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.animate__animated {
  animation-duration: 0.5s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .table {
    font-size: 0.85rem;
  }

  .pagination {
    font-size: 0.85rem;
  }
}

/* Thêm vào file CSS của bạn */
.highlight-row {
  background-color: rgba(255, 193, 7, 0.3) !important;
  transition: background-color 0.5s ease;
}

@keyframes flash-highlight {
  0% {
    background-color: rgba(255, 193, 7, 0.3);
  }
  50% {
    background-color: rgba(255, 193, 7, 0.6);
  }
  100% {
    background-color: rgba(255, 193, 7, 0.3);
  }
}

.flash-animation {
  animation: flash-highlight 1s ease infinite;
}

/* Spinner Overlay */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.spinner-overlay.fade-out {
  opacity: 0;
}

.spinner-container {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(78, 115, 223, 0.2);
  border-radius: 50%;
  border-top-color: #4e73df;
  animation: spin 1s linear infinite;
}

.spinner-text {
  margin-top: 15px;
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Spinner trong nút */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}
