/* ============================================================
   HadirPak! — Dark Industrial Theme
   Font: Space Grotesk + JetBrains Mono
   ============================================================ */

:root {
  --bg-base:     #0d0f12;
  --bg-surface:  #141720;
  --bg-card:     #1a1e2a;
  --bg-raised:   #212636;
  --border:      #2a2f3e;
  --border-muted:#1e2330;

  --accent:      #00e5a0;
  --accent-dim:  #00b87a;
  --accent-glow: rgba(0, 229, 160, 0.15);

  --text-primary:  #e8ecf0;
  --text-secondary:#8892a4;
  --text-muted:    #545e70;

  --red:    #ff4d6d;
  --yellow: #ffd166;
  --blue:   #4d9fff;
  --orange: #ff8c42;

  --sidebar-w: 240px;
  --topbar-h:  56px;
  --radius:    10px;
  --radius-sm: 6px;
  --shadow:    0 4px 20px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  min-height: 64px;
}

.sidebar-brand img {
  max-width: 160px;
  height: auto;
}

.brand-icon {
  width: 38px; height: 38px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 18px;
}

.brand-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.brand-tagline {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 10px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 12px 8px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 2px;
}

.nav-item:hover { background: var(--bg-raised); color: var(--text-primary); }

.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  border-left: 2px solid var(--accent);
}

.nav-item i { font-size: 15px; width: 18px; text-align: center; }

.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }

.user-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role {
  display: block;
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logout-btn {
  color: var(--text-muted);
  font-size: 16px;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.15s;
  text-decoration: none;
}
.logout-btn:hover { color: var(--red); background: rgba(255,77,109,0.1); }

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin 0.3s;
}

.topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  display: none;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.topbar-right { display: flex; align-items: center; gap: 12px; }

.clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
}

.date-badge {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-raised);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.page-content {
  flex: 1;
  padding: 24px;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert-container { padding: 12px 24px 0; }

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 8px;
  border: 1px solid;
}

.alert i { font-size: 15px; flex-shrink: 0; }
.alert span { flex: 1; }
.alert-close { background: none; border: none; cursor: pointer; padding: 2px; }

.alert-success { background: rgba(0,229,160,0.08); border-color: var(--accent-dim); color: var(--accent); }
.alert-success .alert-close { color: var(--accent); }
.alert-danger  { background: rgba(255,77,109,0.08); border-color: var(--red); color: var(--red); }
.alert-danger .alert-close  { color: var(--red); }
.alert-info    { background: rgba(77,159,255,0.08); border-color: var(--blue); color: var(--blue); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title i { color: var(--accent); }
.card-body { padding: 20px; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.stat-card.hadir::before  { background: var(--accent); }
.stat-card.izin::before   { background: var(--yellow); }
.stat-card.sakit::before  { background: var(--orange); }
.stat-card.alpha::before  { background: var(--red); }
.stat-card.total::before  { background: var(--blue); }
.stat-card.belum::before  { background: var(--text-muted); }

.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card.hadir .stat-value  { color: var(--accent); }
.stat-card.izin .stat-value   { color: var(--yellow); }
.stat-card.sakit .stat-value  { color: var(--orange); }
.stat-card.alpha .stat-value  { color: var(--red); }
.stat-card.total .stat-value  { color: var(--blue); }
.stat-card.belum .stat-value  { color: var(--text-secondary); }

.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.stat-icon {
  position: absolute;
  right: 16px; bottom: 14px;
  font-size: 28px;
  opacity: 0.08;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-hadir { background: rgba(0,229,160,0.12); color: var(--accent); border: 1px solid var(--accent-dim); }
.badge-izin  { background: rgba(255,209,102,0.12); color: var(--yellow); border: 1px solid rgba(255,209,102,0.3); }
.badge-sakit { background: rgba(255,140,66,0.12); color: var(--orange); border: 1px solid rgba(255,140,66,0.3); }
.badge-alpha { background: rgba(255,77,109,0.12); color: var(--red); border: 1px solid rgba(255,77,109,0.3); }
.badge-belum { background: rgba(84,94,112,0.2); color: var(--text-muted); border: 1px solid var(--border); }
.badge-active  { background: rgba(0,229,160,0.12); color: var(--accent); }
.badge-inactive{ background: rgba(255,77,109,0.12); color: var(--red); }
.badge-late    { background: rgba(255,140,66,0.12); color: var(--orange); font-size: 10px; }

/* ============================================================
   TABLES
   ============================================================ */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table { width: 100%; border-collapse: collapse; }

thead th {
  background: var(--bg-raised);
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-muted);
  vertical-align: middle;
}

tbody tr:hover td { background: var(--bg-raised); }
tbody tr:last-child td { border-bottom: none; }

.td-name { color: var(--text-primary); font-weight: 500; }
.td-mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }

/* 2-column form grid — collapses to 1 col on small phones */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 16px;           /* min 16px prevents iOS auto-zoom */
  font-family: 'Space Grotesk', sans-serif;
  transition: border-color 0.15s;
  outline: none;
  -webkit-appearance: none;  /* removes iOS default styling */
  appearance: none;
}

.form-control:focus { border-color: var(--accent-dim); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-control::placeholder { color: var(--text-muted); }

select.form-control { cursor: pointer; }
select.form-control option { background: var(--bg-card); }

textarea.form-control { resize: vertical; min-height: 80px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: var(--accent-dim); }

.btn-secondary {
  background: var(--bg-raised);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent-dim); color: var(--accent); }

.btn-danger {
  background: rgba(255,77,109,0.1);
  color: var(--red);
  border: 1px solid rgba(255,77,109,0.3);
}
.btn-danger:hover { background: rgba(255,77,109,0.2); }

.btn-sm { padding: 5px 12px; font-size: 12px; }

.btn-icon {
  width: 30px; height: 30px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-size: 14px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header-left h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-header-left p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   SECTION GRID
   ============================================================ */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar-wrap {
  background: var(--bg-raised);
  border-radius: 20px;
  height: 6px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: var(--accent);
  transition: width 0.5s ease;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all 0.15s;
}

.pagination a:hover { border-color: var(--accent-dim); color: var(--accent); }
.pagination .active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

/* ============================================================
   CAMERA WIDGET
   ============================================================ */
.camera-container {
  background: var(--bg-raised);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  max-width: 400px;
  margin: 0 auto;
}

.camera-preview {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.camera-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-raised);
  color: var(--text-muted);
}

.camera-overlay i { font-size: 40px; }

.camera-captured {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}

.camera-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

/* ============================================================
   MAP PREVIEW
   ============================================================ */
.map-container {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 13px;
}

.map-coords {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  margin-top: 4px;
}

.location-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.location-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.3s;
}
.location-dot.active { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.location-dot.error  { background: var(--red); }

/* ============================================================
   STATUS SELECTOR (Attendance)
   ============================================================ */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.status-option { display: none; }

.status-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.status-label:hover { border-color: var(--accent-dim); }

.status-option:checked + .status-label { border-color: var(--accent); background: var(--accent-glow); }

.status-label i { font-size: 22px; }
.status-label span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.status-hadir .status-label i { color: var(--accent); }
.status-izin  .status-label i { color: var(--yellow); }
.status-sakit .status-label i { color: var(--orange); }

/* ============================================================
   SITE CARDS (Dashboard)
   ============================================================ */
.site-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.site-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.15s;
}

.site-card:hover { border-color: var(--accent-dim); }

.site-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.site-card-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.site-card-code { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.site-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mini-stat { text-align: center; }
.mini-stat-val { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 700; line-height: 1; }
.mini-stat-label { font-size: 10px; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }

.mini-stat.hadir .mini-stat-val { color: var(--accent); }
.mini-stat.izin  .mini-stat-val { color: var(--yellow); }
.mini-stat.sakit .mini-stat-val { color: var(--orange); }
.mini-stat.alpha .mini-stat-val { color: var(--red); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-bar .form-control { width: auto; }

/* ============================================================
   RESPONSIVE — Mobile First
   Breakpoints: 768px (tablet), 480px (phone), 375px (small phone)
   ============================================================ */

/* ---- Tablet & below (768px) ---- */
@media (max-width: 768px) {
  /* Sidebar: slide-out drawer */
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }

  /* Overlay behind open sidebar */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
  }
  .sidebar-overlay.active { display: block; }

  .main-wrapper { margin-left: 0; }
  .sidebar-toggle { display: flex; }

  /* Page padding tighter */
  .page-content { padding: 14px; }

  /* Stats grid: 2 col */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Page header: stack vertically */
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-header .d-flex { flex-wrap: wrap; }

  /* Filter bar: wrap */
  .filter-bar { flex-wrap: wrap; }
  .filter-bar .form-control { width: 100% !important; }
  .filter-bar .btn { flex: 1; justify-content: center; }

  /* Tables: horizontal scroll */
  .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 600px; }

  /* Buttons: bigger touch targets */
  .btn { min-height: 44px; padding: 10px 16px; }
  .btn-sm { min-height: 40px; padding: 8px 14px; }
  .btn-icon { width: 44px !important; height: 44px !important; }

  /* Site cards: single col */
  .site-cards-grid { grid-template-columns: 1fr; }

  /* Section grid: single col */
  .section-grid { grid-template-columns: 1fr; }

  /* Topbar */
  .topbar-title { font-size: 13px; }
  .topbar-logo-mobile { display: block !important; }
  .topbar-title-text { display: none; }
  .clock { font-size: 13px; }
  .date-badge { display: none; }
}

/* ---- Phone (480px) ---- */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-value  { font-size: 24px; }
  .stat-card   { padding: 14px; }

  /* Form: single col */
  .form-row-2col {
    grid-template-columns: 1fr !important;
  }

  /* Camera container full width */
  .camera-container { max-width: 100%; }

  /* Status grid */
  .status-grid { gap: 8px; }
  .status-label { padding: 12px 8px; }

  /* Table cells: smaller font */
  tbody td { font-size: 12px; padding: 8px 10px; }
  thead th  { font-size: 10px; padding: 8px 10px; }

  /* Card body padding */
  .card-body { padding: 14px; }
  .card-header { padding: 12px 14px; }

  /* Page content */
  .page-content { padding: 10px; }
}

/* ---- Small phone (375px) ---- */
@media (max-width: 375px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .stat-value  { font-size: 20px; }
  .brand-tagline { display: none; }
}

/* ---- Touch device improvements ---- */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects that don't make sense on touch */
  .nav-item:hover { background: transparent; }
  .nav-item.active { background: var(--accent-glow); }

  /* Larger tap areas */
  .nav-item { padding: 12px 12px; min-height: 48px; }

  /* Smooth scrolling for tables */
  .table-container { scroll-snap-type: x proximity; }

  /* Prevent double-tap zoom on buttons */
  .btn { touch-action: manipulation; }

  /* Input fields bigger on mobile */
  .form-control { min-height: 44px; font-size: 16px; }
  select.form-control { min-height: 44px; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-accent  { color: var(--accent) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-danger  { color: var(--red) !important; }
.text-warning { color: var(--yellow) !important; }
.text-info    { color: var(--blue) !important; }
.text-mono    { font-family: 'JetBrains Mono', monospace; }

.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.mb-0         { margin-bottom: 0 !important; }
.mb-16        { margin-bottom: 16px; }
.mb-24        { margin-bottom: 24px; }
.mt-16        { margin-top: 16px; }
.w-100        { width: 100%; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
