/* =========================================
   MultiPay Pro - Custom Styles (UI/UX v2)
   ========================================= */

.glass {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 0.5rem;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Scrollbar tùy chỉnh */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Container chứa nội dung có scroll - containment để tránh re-layout */
.contain-layout { contain: content; }

/* Month card transitions */
.month-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}
.month-card:hover { transform: translateY(-2px); }
.month-card.hidden { display: none !important; }

/* Check-in / Check-out buttons pulse effect */
.btn-pulse {
  position: relative;
  overflow: hidden;
}
.btn-pulse::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
}
.btn-pulse:active::after {
  width: 200%; height: 200%;
  opacity: 0;
}

/* Badge trạng thái chấm công */
.badge-dunggio { background: #064e3b; color: #bbf7d0; border: 1px solid #047857; }
.badge-muon { background: #713f12; color: #fcd34d; border: 1px solid #b45309; }
.badge-vesom { background: #581c87; color: #d8b4fe; border: 1px solid #7c3aed; }
.badge-nghi { background: #454545; color: #e5e7eb; border: 1px solid #6b7280; }

/* Toast entrance */
@keyframes toast-in {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
.toast-enter { animation: toast-in 0.35s ease forwards; }

/* Empty state */
.empty-illustration { opacity: 0.5; }

/* Responsive table wrapper */
.table-wrap { overflow-x: auto; contain: layout; }

/* Focus visible enhancements */
*:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }

/* Dark mode form inputs */
input[type="date"], input[type="datetime-local"], select {
  background: #0f172a;
  color: #f1f5f9;
}
