/*****************************************************************
 * APLIKASI ABSENSI DIGITAL BY MSPF
 * SMK NEGERI 4 GARUT
 *
 * FILE    : app.css
 * FUNGSI  : Tampilan frontend eksternal
 *****************************************************************/

:root {
  --primary: #0f4c81;
  --primary-dark: #08365d;
  --primary-light: #eaf4fc;

  --accent: #d4af37;

  --success: #16a34a;
  --success-light: #eaf8ef;

  --warning: #d97706;
  --warning-light: #fff7e8;

  --danger: #dc2626;
  --danger-light: #fef0f0;

  --background: #f2f6fb;
  --surface: #ffffff;

  --text: #1f2937;
  --muted: #6b7280;
  --border: #dce5ee;

  --radius-large: 24px;
  --radius-medium: 17px;
  --radius-small: 13px;

  --shadow:
    0 14px 36px rgba(15, 76, 129, 0.11);

  --shadow-small:
    0 7px 20px rgba(15, 76, 129, 0.08);
}


/* ==============================================================
   RESET
============================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at top right,
      rgba(212, 175, 55, 0.13),
      transparent 27%
    ),
    linear-gradient(
      180deg,
      #eaf3fb 0%,
      var(--background) 48%,
      #f8fafc 100%
    );

  color: var(--text);

  font-family:
    "Poppins",
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}


/* ==============================================================
   SPLASH
============================================================== */

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 28px;

  background:
    radial-gradient(
      circle at top,
      rgba(255, 255, 255, 0.18),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      var(--primary-dark),
      var(--primary)
    );

  color: #ffffff;

  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  width: 100%;
  max-width: 410px;

  text-align: center;

  animation:
    splashEnter 0.7s ease both;
}

.splash-logo {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 120px;
  height: 120px;

  margin: 0 auto 22px;

  border-radius: 50%;

  background: #ffffff;
  color: var(--primary);

  box-shadow:
    0 17px 44px rgba(0, 0, 0, 0.22);
}

.splash-logo .material-icons-round {
  font-size: 64px;
}

.splash-content h1 {
  margin: 0;

  font-size: 27px;
  line-height: 1.35;
}

.splash-brand {
  margin: 8px 0 0;

  color: #f8d75f;

  font-size: 20px;
  font-weight: 700;
}

.splash-school {
  margin: 10px 0 0;

  font-size: 13px;
  opacity: 0.9;
}

.splash-loader {
  width: 52px;
  height: 52px;

  margin: 28px auto 13px;

  border: 5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-right-color: var(--accent);
  border-radius: 50%;

  animation:
    rotateLoader 0.85s linear infinite;
}

.splash-message {
  margin: 0;

  font-size: 11px;
  opacity: 0.82;
}


/* ==============================================================
   HALAMAN
============================================================== */

.application {
  width: 100%;
  max-width: 590px;

  margin: 0 auto;

  padding:
    max(18px, env(safe-area-inset-top))
    15px
    calc(42px + env(safe-area-inset-bottom));

  animation:
    applicationEnter 0.5s ease both;
}


/* ==============================================================
   HEADER
============================================================== */

.app-header {
  display: flex;
  align-items: center;

  gap: 14px;

  margin-bottom: 16px;
  padding: 18px;

  border:
    1px solid rgba(255, 255, 255, 0.72);

  border-radius: var(--radius-large);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98),
      rgba(244, 249, 253, 0.93)
    );

  box-shadow: var(--shadow);
}

.app-header-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  width: 62px;
  height: 62px;

  border:
    3px solid rgba(212, 175, 55, 0.4);

  border-radius: 50%;

  background: var(--primary);
  color: #ffffff;
}

.app-header-logo .material-icons-round {
  font-size: 35px;
}

.app-header-copy {
  min-width: 0;
}

.app-header-copy p {
  margin: 0;

  color: var(--accent);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-header-copy h1 {
  margin: 4px 0 0;

  color: var(--primary);

  font-size: 18px;
  line-height: 1.35;
}

.app-header-copy span {
  display: block;

  margin-top: 4px;

  color: var(--muted);
  font-size: 11px;
}


/* ==============================================================
   CARD
============================================================== */

.card {
  margin-bottom: 16px;
  padding: 20px;

  border:
    1px solid rgba(220, 229, 238, 0.9);

  border-radius: var(--radius-large);

  background:
    rgba(255, 255, 255, 0.97);

  box-shadow:
    var(--shadow-small);
}


/* ==============================================================
   STATUS SISTEM
============================================================== */

.status-banner {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  margin-bottom: 16px;
  padding: 14px 16px;

  border: 1px solid #cfe0ef;
  border-radius: var(--radius-medium);

  background: var(--primary-light);
  color: var(--primary);
}

.status-banner > .material-icons-round {
  margin-top: 1px;
  font-size: 27px;
}

.status-banner strong {
  display: block;
  font-size: 13px;
}

.status-banner p {
  margin: 3px 0 0;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.55;
}

.status-banner.success {
  border-color: #bde9ca;
  background: var(--success-light);
  color: var(--success);
}

.status-banner.warning {
  border-color: #fed7aa;
  background: var(--warning-light);
  color: var(--warning);
}

.status-banner.error {
  border-color: #fecaca;
  background: var(--danger-light);
  color: var(--danger);
}

.status-banner.loading > .material-icons-round {
  animation:
    rotateLoader 1s linear infinite;
}


/* ==============================================================
   JAM
============================================================== */

.clock-card {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr) auto;

  align-items: center;

  gap: 17px;
}

.clock-card p {
  margin: 0;

  color: var(--accent);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.clock-card h2 {
  margin: 5px 0 0;

  color: var(--primary);

  font-size: 18px;
}

.clock-card .admin-name {
  display: flex;
  align-items: center;

  gap: 6px;

  margin-top: 8px;

  color: var(--muted);

  font-size: 11px;
}

.clock-card .admin-name .material-icons-round {
  color: var(--primary);
  font-size: 18px;
}

.server-clock {
  min-width: 132px;

  padding: 12px;

  border-radius: var(--radius-medium);

  background:
    linear-gradient(
      145deg,
      var(--primary),
      var(--primary-dark)
    );

  color: #ffffff;
  text-align: center;
}

.server-clock span {
  display: block;
}

.clock-day,
.clock-date {
  font-size: 10px;
  opacity: 0.88;
}

.clock-date {
  margin-top: 2px;
}

.clock-time {
  margin-top: 7px;

  color: #ffe37e;

  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}


/* ==============================================================
   PROGRESS
============================================================== */

.progress-card {
  margin-bottom: 16px;
  padding: 15px 17px;

  border-radius: var(--radius-medium);

  background: var(--surface);

  box-shadow:
    var(--shadow-small);
}

.progress-track {
  height: 9px;

  overflow: hidden;

  border-radius: 999px;

  background: #e7edf4;
}

.progress-bar {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--primary),
      #2986c4,
      var(--accent)
    );

  transition:
    width 0.35s ease;
}

.progress-copy {
  display: flex;
  justify-content: space-between;

  gap: 12px;

  margin-top: 9px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 600;
}


/* ==============================================================
   STEP
============================================================== */

.step-card {
  position: relative;

  overflow: hidden;

  transition:
    opacity 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.step-card::before {
  position: absolute;

  top: 0;
  bottom: 0;
  left: 0;

  width: 5px;

  background: #d9e2eb;

  content: "";
}

.step-card.active {
  border-color:
    rgba(15, 76, 129, 0.28);

  transform:
    translateY(-1px);
}

.step-card.active::before {
  background: var(--primary);
}

.step-card.completed::before {
  background: var(--success);
}

.step-card.locked {
  opacity: 0.66;
}

.step-heading {
  display: flex;
  align-items: center;

  gap: 13px;

  margin-bottom: 18px;
}

.step-number {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  width: 41px;
  height: 41px;

  border-radius: 50%;

  background: #e7edf4;
  color: var(--muted);

  font-size: 14px;
  font-weight: 700;
}

.step-card.active .step-number {
  background: var(--primary);
  color: #ffffff;
}

.step-card.completed .step-number {
  background: var(--success);
  color: #ffffff;
}

.step-heading h2,
.step-heading h3 {
  margin: 0;

  color: var(--primary);

  font-size: 16px;
}

.step-heading p {
  margin: 3px 0 0;

  color: var(--muted);

  font-size: 10px;
  line-height: 1.5;
}


/* ==============================================================
   FORM
============================================================== */

.field-label {
  display: block;

  margin-bottom: 8px;

  color: var(--text);

  font-size: 12px;
  font-weight: 600;
}

.secondary-label {
  margin-top: 15px;
}

.optional-label {
  margin-left: 4px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 500;
}

.field-wrapper {
  position: relative;
}

.field-wrapper > .material-icons-round:first-child {
  position: absolute;

  top: 50%;
  left: 14px;

  z-index: 1;

  color: var(--primary);

  font-size: 21px;

  transform:
    translateY(-50%);

  pointer-events: none;
}

.field-wrapper select,
.field-wrapper input,
textarea {
  width: 100%;

  border: 1px solid var(--border);
  border-radius: var(--radius-small);

  outline: none;

  background: #ffffff;
  color: var(--text);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field-wrapper select,
.field-wrapper input {
  min-height: 52px;

  padding: 12px 44px;
}

.field-wrapper select {
  padding-right: 45px;
  appearance: none;
}

textarea {
  min-height: 96px;

  padding: 13px 14px;

  resize: vertical;
}

.field-wrapper select:focus,
.field-wrapper input:focus,
textarea:focus {
  border-color: var(--primary);

  box-shadow:
    0 0 0 4px
    rgba(15, 76, 129, 0.1);
}

.field-wrapper select:disabled,
.field-wrapper input:disabled,
textarea:disabled {
  cursor: not-allowed;

  background: #f2f5f8;
  color: #9aa4b2;
}

.select-arrow {
  position: absolute;

  top: 50%;
  right: 13px;

  color: var(--muted);

  transform:
    translateY(-50%);

  pointer-events: none;
}

.field-message {
  min-height: 18px;

  margin-top: 7px;

  color: var(--muted);

  font-size: 10px;
}

.field-message.success {
  color: var(--success);
}

.field-message.error {
  color: var(--danger);
}


/* ==============================================================
   JADWAL
============================================================== */

.schedule-card {
  display: flex;
  align-items: flex-start;

  gap: 13px;
}

.schedule-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  border-radius: 15px;

  background: var(--primary-light);
  color: var(--primary);
}

.schedule-card h3 {
  margin: 0;

  color: var(--primary);

  font-size: 14px;
}

.schedule-card p {
  margin: 4px 0 0;

  color: var(--muted);

  font-size: 10px;
  line-height: 1.55;
}

.schedule-detail {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;

  margin-top: 9px;
}

.schedule-detail span {
  padding: 5px 9px;

  border-radius: 999px;

  background: #edf3f8;
  color: var(--primary);

  font-size: 9px;
  font-weight: 600;
}

.schedule-card.success {
  border-color: #bde9ca;
  background: var(--success-light);
}

.schedule-card.error {
  border-color: #fecaca;
  background: var(--danger-light);
}


/* ==============================================================
   KAMERA DAN WAJAH
============================================================== */

.camera-area {
  position: relative;

  min-height: 370px;

  overflow: hidden;

  border-radius: 20px;

  background: #020617;
}

.camera-video,
.camera-canvas {
  display: block;

  width: 100%;
  min-height: 370px;

  object-fit: cover;
}

.camera-video {
  transform: scaleX(-1);
}

.camera-canvas {
  position: absolute;

  inset: 0;

  z-index: 2;

  pointer-events: none;

  transform: scaleX(-1);
}

.face-guide {
  position: absolute;

  inset: 0;

  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 12px;

  pointer-events: none;
}

.face-frame {
  width: min(62vw, 245px);

  aspect-ratio: 0.78;

  border:
    3px solid rgba(255, 255, 255, 0.88);

  border-radius: 48%;

  box-shadow:
    0 0 0 999px rgba(2, 6, 23, 0.2),
    0 0 28px rgba(255, 255, 255, 0.2);
}

.face-guide p {
  margin: 0;

  padding: 7px 12px;

  border-radius: 999px;

  background:
    rgba(2, 6, 23, 0.72);

  color: #ffffff;

  font-size: 10px;
}

.camera-overlay {
  position: absolute;

  inset: 0;

  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  padding: 24px;

  background:
    rgba(2, 6, 23, 0.94);

  color: #ffffff;

  text-align: center;
}

.camera-overlay .material-icons-round {
  margin-bottom: 12px;

  color: #94a3b8;

  font-size: 52px;
}

.camera-overlay.error .material-icons-round {
  color: #f87171;
}

.camera-overlay strong {
  font-size: 14px;
}

.camera-overlay p {
  max-width: 310px;

  margin: 6px 0 0;

  color: #cbd5e1;

  font-size: 10px;
  line-height: 1.65;
}

.camera-spinner {
  width: 56px;
  height: 56px;

  margin-bottom: 15px;

  border:
    5px solid rgba(255, 255, 255, 0.2);

  border-top-color: #ffffff;
  border-right-color: var(--accent);
  border-radius: 50%;

  animation:
    rotateLoader 0.85s linear infinite;
}


/* ==============================================================
   STATUS VERIFIKASI
============================================================== */

.verification-status {
  display: flex;
  align-items: flex-start;

  gap: 11px;

  margin-top: 14px;
  padding: 13px;

  border-radius: var(--radius-small);
}

.verification-status > .material-icons-round {
  font-size: 28px;
}

.verification-status strong {
  display: block;

  font-size: 12px;
}

.verification-status p {
  margin: 3px 0 0;

  font-size: 10px;
  line-height: 1.5;
}

.verification-status.waiting {
  background: #f1f5f9;
  color: #64748b;
}

.verification-status.processing {
  background: var(--warning-light);
  color: var(--warning);
}

.verification-status.success {
  background: var(--success-light);
  color: var(--success);
}

.verification-status.error {
  background: var(--danger-light);
  color: var(--danger);
}


/* ==============================================================
   NILAI WAJAH
============================================================== */

.face-score {
  margin-top: 13px;
}

.face-score-heading {
  display: flex;
  justify-content: space-between;

  gap: 12px;

  color: var(--muted);

  font-size: 10px;
}

.face-score-heading strong {
  color: var(--primary);
}

.face-score-track {
  height: 9px;

  margin-top: 7px;

  overflow: hidden;

  border-radius: 999px;

  background: #e5edf4;
}

.face-score-bar {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--danger),
      var(--warning),
      var(--success)
    );

  transition:
    width 0.35s ease;
}


/* ==============================================================
   FOTO
============================================================== */

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  min-height: 190px;

  margin-bottom: 14px;

  border: 2px dashed #c8d5e2;
  border-radius: var(--radius-medium);

  background: #f7fafc;
  color: var(--muted);
}

.photo-placeholder .material-icons-round {
  color: var(--primary);
  font-size: 48px;
  opacity: 0.7;
}

.photo-placeholder p {
  margin: 8px 0 0;

  font-size: 10px;
}

.photo-preview {
  position: relative;

  overflow: hidden;

  margin-bottom: 14px;

  border-radius: var(--radius-medium);

  background: #111827;
}

.photo-preview img {
  display: block;

  width: 100%;
  max-height: 430px;

  object-fit: cover;
}

.photo-remove-button {
  position: absolute;

  top: 10px;
  right: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  padding: 0;
  border: 0;
  border-radius: 50%;

  background:
    rgba(17, 24, 39, 0.72);

  color: #ffffff;

  cursor: pointer;
}


/* ==============================================================
   GPS
============================================================== */

.gps-details {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 9px;

  margin-top: 13px;
}

.gps-details > div {
  min-width: 0;

  padding: 10px;

  border-radius: var(--radius-small);

  background: #f1f5f9;

  text-align: center;
}

.gps-details span {
  display: block;

  color: var(--muted);

  font-size: 9px;
}

.gps-details strong {
  display: block;

  overflow: hidden;

  margin-top: 4px;

  color: var(--primary);

  font-size: 10px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ==============================================================
   CHECKLIST
============================================================== */

.checklist {
  display: grid;

  gap: 8px;

  margin-bottom: 17px;
}

.checklist > div {
  display: flex;
  align-items: center;

  gap: 8px;

  padding: 10px 12px;

  border-radius: var(--radius-small);

  background: #f3f6f9;
  color: var(--muted);

  font-size: 10px;
}

.checklist > div.completed {
  background: var(--success-light);
  color: var(--success);
}

.checklist .material-icons-round {
  font-size: 19px;
}


/* ==============================================================
   TOMBOL
============================================================== */

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  width: 100%;
  min-height: 52px;

  padding: 11px 14px;

  border: 0;
  border-radius: var(--radius-small);

  cursor: pointer;

  font-size: 11px;
  font-weight: 700;

  transition:
    transform 0.15s ease,
    opacity 0.2s ease;
}

.action-button:not(:disabled):active {
  transform: scale(0.985);
}

.action-button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.action-button.primary {
  background:
    linear-gradient(
      145deg,
      var(--primary),
      var(--primary-dark)
    );

  color: #ffffff;
}

.action-button.secondary {
  border:
    1px solid rgba(15, 76, 129, 0.2);

  background: var(--primary-light);
  color: var(--primary);
}

.action-button.success {
  background: var(--success);
  color: #ffffff;
}

.action-button.warning {
  background: var(--warning-light);
  color: var(--warning);
}

.action-row {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 9px;

  margin-top: 14px;
}


/* ==============================================================
   LOADING OVERLAY
============================================================== */

.loading-overlay {
  position: fixed;

  inset: 0;

  z-index: 12000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background:
    rgba(8, 54, 93, 0.45);

  backdrop-filter: blur(7px);
}

.loading-dialog {
  width: 100%;
  max-width: 310px;

  padding: 27px 23px;

  border-radius: 24px;

  background: #ffffff;

  box-shadow:
    0 22px 60px rgba(8, 54, 93, 0.26);

  text-align: center;
}

.loading-dialog h2 {
  margin: 17px 0 0;

  color: var(--primary);

  font-size: 17px;
}

.loading-dialog p {
  margin: 6px 0 0;

  color: var(--muted);

  font-size: 10px;
  line-height: 1.6;
}

.loading-ring {
  width: 65px;
  height: 65px;

  margin: 0 auto;

  border:
    6px solid #dce8f2;

  border-top-color: var(--primary);
  border-right-color: var(--accent);
  border-radius: 50%;

  animation:
    rotateLoader 0.85s linear infinite;
}


/* ==============================================================
   TOAST
============================================================== */

.toast-container {
  position: fixed;

  right: 15px;
  bottom:
    calc(18px + env(safe-area-inset-bottom));
  left: 15px;

  z-index: 13000;

  display: flex;
  align-items: center;
  flex-direction: column;

  gap: 9px;

  pointer-events: none;
}

.toast {
  display: grid;

  grid-template-columns:
    auto minmax(0, 1fr) auto;

  align-items: flex-start;

  gap: 10px;

  width: 100%;
  max-width: 480px;

  padding: 13px 14px;

  border-radius: 15px;

  background:
    rgba(15, 76, 129, 0.97);

  color: #ffffff;

  box-shadow:
    0 16px 38px rgba(15, 23, 42, 0.28);

  pointer-events: auto;

  animation:
    toastEnter 0.28s ease both;
}

.toast.success {
  background:
    rgba(22, 163, 74, 0.97);
}

.toast.warning {
  background:
    rgba(217, 119, 6, 0.97);
}

.toast.error {
  background:
    rgba(220, 38, 38, 0.97);
}

.toast > .material-icons-round {
  font-size: 25px;
}

.toast strong {
  display: block;

  font-size: 11px;
}

.toast p {
  margin: 3px 0 0;

  font-size: 9px;
  line-height: 1.5;
}

.toast button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  padding: 0;
  border: 0;
  border-radius: 50%;

  background: transparent;
  color: #ffffff;

  cursor: pointer;
}


/* ==============================================================
   SUKSES
============================================================== */

.success-panel {
  padding-top: 28px;

  text-align: center;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 86px;
  height: 86px;

  margin: 0 auto 16px;

  border-radius: 50%;

  background: var(--success);
  color: #ffffff;

  box-shadow:
    0 13px 28px
    rgba(22, 163, 74, 0.24);
}

.success-icon .material-icons-round {
  font-size: 51px;
}

.success-panel h2 {
  margin: 0;

  color: var(--success);

  font-size: 22px;
}

.success-panel > p {
  margin: 6px 0 18px;

  color: var(--muted);

  font-size: 11px;
}

.success-data {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 9px;

  margin-bottom: 17px;

  text-align: left;
}

.success-data > div {
  min-width: 0;

  padding: 11px;

  border-radius: var(--radius-small);

  background: #f3f7fa;
}

.success-data span {
  display: block;

  color: var(--muted);

  font-size: 9px;
}

.success-data strong {
  display: block;

  overflow: hidden;

  margin-top: 4px;

  color: var(--primary);

  font-size: 10px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ==============================================================
   NAVIGASI DAN FOOTER
============================================================== */

.page-navigation {
  margin-top: 5px;

  text-align: center;
}

.page-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 10px 14px;

  border-radius: 999px;

  background: var(--primary-light);
  color: var(--primary);

  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.app-footer {
  padding: 21px 8px 5px;

  color: var(--muted);

  font-size: 9px;
  line-height: 1.7;

  text-align: center;
}

.app-footer p {
  margin: 0;
}


/* ==============================================================
   ANIMASI
============================================================== */

@keyframes rotateLoader {
  to {
    transform: rotate(360deg);
  }
}

@keyframes splashEnter {
  from {
    opacity: 0;

    transform:
      translateY(17px)
      scale(0.98);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}

@keyframes applicationEnter {
  from {
    opacity: 0;
    transform: translateY(13px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastEnter {
  from {
    opacity: 0;
    transform:
      translateY(15px)
      scale(0.97);
  }

  to {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}


/* ==============================================================
   RESPONSIVE
============================================================== */

@media (max-width: 470px) {
  .application {
    padding-right: 12px;
    padding-left: 12px;
  }

  .app-header {
    padding: 15px;
  }

  .app-header-logo {
    width: 54px;
    height: 54px;
  }

  .app-header-copy h1 {
    font-size: 15px;
  }

  .card {
    padding: 17px;
    border-radius: 20px;
  }

  .clock-card {
    grid-template-columns: 1fr;
  }

  .server-clock {
    width: 100%;
  }

  .camera-area,
  .camera-video,
  .camera-canvas {
    min-height: 340px;
  }

  .gps-details {
    grid-template-columns: 1fr;
  }

  .action-row {
    grid-template-columns: 1fr;
  }

  .success-data {
    grid-template-columns: 1fr;
  }
}


/* ==============================================================
   AKSESIBILITAS
============================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }
}