.wt-wrap {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(6, 12, 24, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 25px 80px rgba(4, 6, 14, 0.85);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.wt-wrap-full {
  max-width: none;
  width: 100%;
  margin: 2rem 0;
  border-radius: 0;
}

.wt-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(76, 201, 240, 0.2), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(255, 99, 146, 0.25), transparent 45%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.wt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
  position: relative;
  z-index: 2;
}

.wt-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: #f8fafc;
}

.wt-user-name {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.wt-subtitle {
  color: #94a3b8;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.wt-divider {
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(to right, transparent, rgba(99, 179, 237, 0.35), transparent);
}

.wt-current-session {
  padding: 1.25rem;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.wt-current-session h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: #f1f5f9;
}

.wt-session-meta,
.wt-elapsed {
  margin: 0.5rem 0;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.wt-current-session .wt-btn {
  margin-top: 1rem;
}

.wt-start-panel h3,
.wt-end-panel h3 {
  margin-top: 0;
  color: #f8fafc;
}

.wt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .wt-grid {
    grid-template-columns: 1fr;
  }
}

.wt-qr-reader {
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  min-height: 200px;
}

.wt-qr-reader video {
  width: 100%;
  max-height: 260px;
  display: block;
}

.wt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  gap: 0.35rem;
}

.wt-btn-primary {
  background: linear-gradient(120deg, #6dd5fa, #2979ff);
  color: #fff;
  font-weight: 600;
}

.wt-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(41, 121, 255, 0.3);
}

.wt-btn-scan {
  width: 100%;
  margin-top: 0.75rem;
  font-weight: 600;
  border-radius: 14px;
  background: linear-gradient(120deg, #f97316, #ec4899);
  color: #fff;
  box-shadow: 0 15px 30px rgba(236, 72, 153, 0.35);
}

.wt-btn-scan.wt-scanning {
  animation: wtScanPulse 1.2s ease-out infinite;
  background: linear-gradient(120deg, #ec4899, #8b5cf6);
}

.wt-btn-scan:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

@keyframes wtScanPulse {
  0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(236, 72, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

.wt-btn-link {
  background: transparent;
  color: #94a3b8;
  margin-top: 0.75rem;
}

.wt-btn-link:hover {
  color: #f1f5f9;
}

.wt-message {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  min-height: 1.5em;
}

.wt-message.wt-success {
  color: #86efac;
}

.wt-message.wt-error {
  color: #fca5a5;
}

.wt-login-wrap .wt-header h2,
.wt-login-wrap .wt-subtitle {
  color: #f8fafc;
}

.wt-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .wt-login-grid {
    grid-template-columns: 1fr;
  }
}

.wt-login-card {
  background: rgba(30, 41, 59, 0.6);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.wt-login-card label {
  color: #e2e8f0;
}

.wt-login-card input[type="text"],
.wt-login-card input[type="password"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin: 0.25rem 0 1rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #0f172a;
  color: #f1f5f9;
}

.wt-login-side h3 {
  margin: 0 0 0.5rem;
  color: #f1f5f9;
}

.wt-login-side p {
  color: #94a3b8;
  margin: 0 0 1rem;
}

.wt-report-filters label {
  margin-right: 0.5rem;
}

.wt-report-filters input,
.wt-report-filters select {
  margin-right: 1rem;
}
