/* Styling dasar untuk responsivitas dan desain modern */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ========================
   DARK MODE (Default)
   ======================== */
:root {
  --bg-main: #020617;
  --bg-card: #0f172a;
  --bg-card-soft: #1e293b;
  --bg-gradient: radial-gradient(circle at top right, #1e293b 0%, #020617 50%, #000 100%);
  --bg-card-gradient: linear-gradient(135deg, #1e293b, #0f172a);
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.15);
  --accent-strong: #16a34a;
  --danger: #ef4444;
  --info: #38bdf8;
  --border-soft: rgba(34, 197, 94, 0.3);
  --text-main: #ffffff;
  --text-soft: #94a3b8;
  --text-muted: #64748b;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-elevated: 0 24px 60px rgba(0, 0, 0, 0.55);
  --input-bg: #1e293b;
  --input-border: rgba(34, 197, 94, 0.3);
  --scrollbar-track: #1e293b;
  --video-placeholder-bg: #0f172a;
  --pill-bg: #1e293b;
  --btn-ghost-bg: transparent;
  --btn-ghost-hover: rgba(34, 197, 94, 0.15);
}

/* ========================
   LIGHT MODE
   ======================== */
[data-theme="light"] {
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-card-soft: #f0fdf4;
  --bg-gradient: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  --bg-card-gradient: linear-gradient(135deg, #ffffff, #f8fff8);
  --accent: #16a34a;
  --accent-soft: rgba(22, 163, 74, 0.1);
  --accent-strong: #15803d;
  --danger: #dc2626;
  --info: #0284c7;
  --border-soft: #16a34a;
  --text-main: #0f172a;
  --text-soft: #15803d;
  --text-muted: #166534;
  --shadow-elevated: 0 10px 40px rgba(22, 163, 74, 0.12);
  --input-bg: #ffffff;
  --input-border: #16a34a;
  --scrollbar-track: #dcfce7;
  --video-placeholder-bg: #f0fdf4;
  --pill-bg: #dcfce7;
  --btn-ghost-bg: #f0fdf4;
  --btn-ghost-hover: #dcfce7;
}

/* ========================
   THEME TOGGLE BUTTON
   ======================== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.05);
}

/* Dark mode: show sun icon */
.theme-toggle .icon-sun {
  display: inline;
}
.theme-toggle .icon-moon {
  display: none;
}

/* Light mode: show moon icon */
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: inline;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  transition: background 0.3s ease, color 0.3s ease;
}

html {
  height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-radius: 4px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.app-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-main);
}

.subtitle {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pill {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent);
  background: var(--pill-bg);
  font-size: 0.82rem;
  color: var(--text-main);
  font-weight: 500;
  transition: all 0.3s ease;
}

.main-layout {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent);
  padding: 1rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-elevated);
  width: 48%;
  min-width: 350px;
  transition: all 0.3s ease;
}

.card-header h2 {
  font-size: 1.25rem;
  margin: 0 0 0.65rem;
  color: var(--text-main);
}

/* Kamera */
.camera-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--video-placeholder-bg);
  border: 2px solid var(--accent);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

#canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  transform: scaleX(-1);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0 1.5rem;
  text-align: center;
  background: var(--video-placeholder-bg);
  flex-direction: column;
  gap: 0.5rem;
}

.video-placeholder i {
  font-size: 2.5rem;
  color: var(--accent);
}

.hidden {
  display: none !important;
}

/* Buttons */
.button-row {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  border-radius: 999px;
  border: none;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn.primary:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.btn.ghost {
  background: var(--btn-ghost-bg);
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn.ghost:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 2px solid var(--accent);
  margin: 0 -0.2rem 0.9rem;
  padding: 0 0.2rem;
}

.tab-button {
  flex: 1;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button:hover {
  color: var(--accent);
}

.tab-button.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Form / layout */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.info-column {
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: var(--bg-card-soft);
  border: 2px dashed var(--accent);
}

.info-column h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
  color: var(--text-main);
}

.info-column ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-column li {
  margin-bottom: 0.3rem;
}

label {
  font-size: 0.86rem;
  color: var(--text-main);
  font-weight: 500;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 2px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

input::placeholder {
  color: var(--text-muted);
}

.help-text {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.help-text i {
  color: var(--accent);
}

/* Status */
.status {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  min-height: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.status.success {
  color: var(--accent);
}

.status.error {
  color: var(--danger);
}

.status.info {
  color: var(--info);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--accent-soft);
}

.result-row:last-child {
  border: none;
}

.result-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.result-value {
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
  flex: 1;
}

.search-box {
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--input-bg);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.search-input::placeholder {
  color: var(--text-soft);
  opacity: 0.7;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.user-list {
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-right: 0.5rem;
}

/* Custom scrollbar untuk user-list */
.user-list::-webkit-scrollbar {
  width: 6px;
}

.user-list::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 3px;
}

.user-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.user-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #16a34a, #22c55e);
}

.user-row {
  transition: all 0.2s ease;
}

.user-row:hover {
  border-color: var(--accent);
  background: var(--btn-ghost-hover);
}

.user-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ====================== */
/* MODAL STYLING */
/* ====================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  z-index: 1001;
  background: var(--bg-base);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

.modal-content.modal-small {
  max-width: 380px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-main);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  margin: 0;
  color: var(--text-main);
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border-soft);
}

/* Form styling dalam modal */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--input-bg);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group input[readonly] {
  background: var(--btn-ghost-bg);
  color: var(--text-muted);
}

.form-group input[readonly]:focus {
  border-color: var(--border-soft);
  box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
  .app-shell {
    padding: 1rem 0.75rem 1.5rem;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .header-title {
    width: 100%;
  }

  .header-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .app-header h1 {
    font-size: 1.35rem;
  }

  .subtitle {
    font-size: 0.8rem;
  }

  .main-layout {
    flex-direction: column;
    gap: 1rem;
  }

  .card {
    width: 100%;
    min-width: unset;
    padding: 1rem;
    gap: 0.8rem;
  }

  .card-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .card-header h2 {
    font-size: 1.1rem;
    width: 100%;
  }

  .button-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .tabs {
    flex-direction: column;
    gap: 0.4rem;
  }

  .tab-button {
    width: 100%;
    padding: 0.65rem;
    font-size: 0.9rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .video-wrapper {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }

  .info-column {
    padding: 0.75rem;
  }

  .help-text {
    font-size: 0.8rem;
  }

  .status {
    font-size: 0.85rem;
  }

  .modal-content {
    width: 95%;
    margin: 0 auto;
    max-height: calc(100vh - 2rem);
  }
}

@media (min-width: 820px) {
  .main-layout {
    gap: 1.5rem;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .tabs {
    gap: 0.75rem;
  }

  .tab-button {
    padding: 0.7rem 1rem;
  }

  .card-header {
    flex-wrap: nowrap;
  }
}

/* Admin Panel */
.admin-header {
  justify-content: space-between;
  align-items: center;
}

.navbar-center {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-item {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

.admin-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stats-card {
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-item {
  padding: 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border-soft);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-value.stat-small {
  font-size: 1rem;
}

.user-list-card {
  width: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-header h2 {
  margin: 0;
}

.user-photo {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.photo-thumbnail {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

.user-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.user-name {
  font-weight: 600;
  color: var(--text-main);
}

.user-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.app-footer {
  text-align: center;
  padding-top: 2rem;
  margin-top: auto;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.app-footer p {
  margin: 0;
}

/* Pagination dalam card user-list */
.user-list-card .pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.user-list-card .pagination-info {
  color: var(--text-soft);
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
}

.user-list-card .pagination-buttons {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.user-list-card .pagination-btn {
  min-width: 36px;
  height: 36px;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--btn-ghost-bg);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-list-card .pagination-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent);
  transform: translateY(-1px);
}

.user-list-card .pagination-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 600;
}

.user-list-card .pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.user-list-card .pagination-btn i {
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .user-list-card .pagination-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .user-list-card .pagination-info {
    order: 2;
    margin-bottom: 0;
  }

  .user-list-card .pagination-buttons {
    order: 1;
  }
}

/* ===================================
   LIVENESS DETECTION INDICATOR
   =================================== */

.liveness-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-soft);
  background: var(--card-bg);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.liveness-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.liveness-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.liveness-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.liveness-text {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.blink-count {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--text-soft);
  white-space: nowrap;
}

/* Inactive state */
.liveness-inactive {
  border-color: var(--border-soft);
}

.liveness-inactive .liveness-icon {
  background: var(--accent-soft);
  color: var(--text-soft);
}

/* Starting state */
.liveness-starting {
  border-color: var(--info);
  background: rgba(56, 189, 248, 0.08);
}

.liveness-starting .liveness-icon {
  background: rgba(56, 189, 248, 0.2);
  color: var(--info);
  animation: pulse-icon 1s infinite;
}

/* Active state - waiting for blinks */
.liveness-active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.liveness-active .liveness-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  animation: blink-animation 0.8s infinite;
}

.liveness-active .blink-count {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

/* Passed state */
.liveness-passed {
  border-color: var(--accent);
  background: rgba(34, 197, 94, 0.08);
}

.liveness-passed .liveness-icon {
  background: rgba(34, 197, 94, 0.2);
  color: var(--accent);
}

.liveness-passed .blink-count {
  background: rgba(34, 197, 94, 0.2);
  color: var(--accent);
}

.liveness-passed .liveness-text {
  color: var(--accent);
}

/* Failed state */
.liveness-failed {
  border-color: var(--danger);
  background: rgba(249, 115, 115, 0.08);
}

.liveness-failed .liveness-icon {
  background: rgba(249, 115, 115, 0.2);
  color: var(--danger);
}

.liveness-failed .blink-count {
  background: rgba(249, 115, 115, 0.2);
  color: var(--danger);
}

.liveness-failed .liveness-text {
  color: var(--danger);
}

/* Animations */
@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes blink-animation {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.05);
  }
  75% {
    transform: scale(0.98);
  }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .liveness-indicator {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
  }
  
  .liveness-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .liveness-info {
    flex: 1;
    min-width: 150px;
  }
  
  .blink-count {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
}
