/* =======================================================
 * MOBILE PRESENSI PWA STYLESHEET (SIKEPO / YPSA MOBILE THEME)
 * ======================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-navy: #1b2a60;
  --primary-blue: #0284c7;
  --accent-blue: #38bdf8;
  --header-bg-start: #c1e2f5;
  --header-bg-end: #c1e2f5;
  --canvas-bg: #c1e2f5;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --safe-bottom: env(safe-area-inset-bottom, 20px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--canvas-bg);
  color: var(--text-main);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
}

.mobile-wrapper {
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  background-color: var(--canvas-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(75px + var(--safe-bottom));
}

/* =========================================
 * 1. HEADER PROFILE & GURU SISWA HERO
 * ========================================= */
.header-hero {
  background: var(--canvas-bg);
  padding: 24px 18px 10px 18px;
  position: relative;
  overflow: hidden;
  min-height: 295px;
  display: flex;
  justify-content: space-between;
}

.hero-left {
  flex: 1.25;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.app-brand-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 10px;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(30, 58, 95, 0.08));
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e3a5f;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.employee-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1e3a5f;
  letter-spacing: -0.01em;
  margin-top: 4px;
}

.employee-title {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

/* Guest State Hero Typography & Elements */
.guest-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 2px;
}

.welcome-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #0369a1;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.08);
}

.welcome-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 6px rgba(14, 165, 233, 0.6);
}

.guest-welcome-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f2d4a;
  letter-spacing: -0.01em;
  margin: 0;
}

.guest-welcome-desc {
  font-size: 0.84rem;
  color: #475569;
  font-weight: 400;
  line-height: 1.45;
  margin: 4px 0 0 0;
  max-width: 200px;
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  font-family: inherit;
  margin-top: 2px;
}

.btn-hero-cta i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.btn-hero-cta:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-hero-cta:hover i {
  transform: translateX(3px);
}

.btn-hero-cta:active {
  transform: scale(0.97) translateY(0);
}

.nip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  margin-top: 10px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nip-pill.guest-pill {
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284c7;
  cursor: pointer;
}

.nip-pill.guest-pill:active {
  transform: scale(0.97);
}

.hero-right-portrait {
  position: absolute;
  right: 0;
  top: 0;
  width: 175px;
  height: 300px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 98% top;
  filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.08));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portrait-img.default-hero-guru {
  object-fit: contain;
  object-position: right top;
}

.portrait-img.user-avatar-hero {
  object-fit: cover;
  object-position: center top;
  border-bottom-left-radius: 40px;
  box-shadow: -4px 6px 16px rgba(15, 23, 42, 0.12);
}

/* =========================================
 * 2. MAIN CARD: PRESENSI & KINERJA
 * ========================================= */
.card-presensi {
  background: var(--card-bg);
  border-radius: 28px;
  padding: 22px 20px;
  margin: -15px 16px 16px 16px;
  box-shadow: 0 10px 30px rgba(30, 41, 59, 0.05);
  z-index: 3;
  position: relative;
  border: none;
}

.presensi-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.meta-date-time {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.badge-status-top {
  background: #fef3c7;
  color: #d97706;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 14px;
}

.badge-status-top.ontime {
  background: #ecfdf5;
  color: #047857;
}

.card-title-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e3a5f;
  margin: 4px 0 10px 0;
}

.card-divider {
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}

.presensi-inner-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  gap: 12px;
}

/* Clock Items (Jam Datang & Pulang) */
.clock-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.clock-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clock-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.clock-icon-circle.in {
  background: #ecfdf5;
  color: #10b981;
  border: 2px solid #a7f3d0;
}

.clock-icon-circle.out {
  background: #fef2f2;
  color: #ef4444;
  border: 2px solid #fecaca;
}

.clock-text-wrap {
  display: flex;
  flex-direction: column;
}

.clock-time {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.clock-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

/* Badge Jam Kerja Widget (Simpel & Menarik) */
.work-badge-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: 96px;
  transition: all 0.25s ease;
}

.work-badge-card:hover {
  border-color: #cbd5e1;
}

.work-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.work-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.work-badge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  transition: all 0.3s ease;
}

.work-badge-pill.working {
  background: #e0f2fe;
  color: #0284c7;
}

.work-badge-pill.completed {
  background: #ecfdf5;
  color: #047857;
}

.work-badge-body {
  margin: 2px 0 0 0;
  display: flex;
  flex-direction: column;
}

.work-badge-metric {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px;
}

.work-badge-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.work-badge-val.sub-val {
  font-size: 1.15rem;
  margin-left: 2px;
}

.work-badge-unit {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  margin-right: 2px;
}

.work-badge-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

@media (max-width: 350px) {
  .presensi-inner-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* =========================================
 * 3. AKTIVITAS 3 HARI TERAKHIR SECTION
 * ========================================= */
.section-activities {
  padding: 0 16px;
  margin-bottom: 24px;
}

.activities-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 4px 12px 4px;
}

.activities-title-wrap {
  display: flex;
  flex-direction: column;
}

.activities-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e3a5f;
  margin: 0;
  letter-spacing: -0.2px;
}

.activities-subtitle {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  margin: 2px 0 0 0;
}

.activities-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 12px;
}

.activities-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item-card {
  background: var(--card-bg, #ffffff);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: 0 4px 18px rgba(30, 41, 59, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.activity-today-card {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.08);
}

.activity-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.activity-date-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-cal-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.activity-cal-icon.today-icon {
  background: #e0f2fe;
  color: #0284c7;
}

.activity-date-texts {
  display: flex;
  flex-direction: column;
}

.activity-day-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-day-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.activity-today-pill {
  font-size: 0.6rem;
  font-weight: 800;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 1px 6px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.activity-full-date {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 500;
}

.activity-status-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.activity-status-badge.ontime {
  background: #ecfdf5;
  color: #047857;
}

.activity-status-badge.late {
  background: #fef2f2;
  color: #b91c1c;
}

.activity-status-badge.working {
  background: #e0f2fe;
  color: #0284c7;
}

.activity-status-badge.waiting {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* Dua Kolom Log: Check In & Check Out */
.activity-log-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 14px;
}

.activity-log-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.log-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.log-indicator.in {
  background: #ecfdf5;
  color: #10b981;
}

.log-indicator.out {
  background: #fef2f2;
  color: #ef4444;
}

.log-text-wrap {
  display: flex;
  flex-direction: column;
}

.log-time {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.log-label {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
}

.activity-col-separator {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
}

.activity-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #f1f5f9;
  font-size: 0.7rem;
  color: #64748b;
}

.activity-footer-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-dot {
  color: #cbd5e1;
}

.activity-pulse-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.68rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(2, 132, 199, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

/* Empty & Guest State Box */
.activity-empty-box {
  background: var(--card-bg, #ffffff);
  border-radius: 22px;
  padding: 28px 20px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  box-shadow: 0 4px 18px rgba(30, 41, 59, 0.03);
}

.activity-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.activity-empty-icon.guest {
  background: #e0f2fe;
  color: #0284c7;
}

.activity-empty-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.activity-empty-desc {
  font-size: 0.76rem;
  color: #64748b;
  margin: 0 0 16px 0;
  line-height: 1.45;
}

.btn-activity-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s;
}

.btn-activity-login:active {
  background: #0369a1;
}

/* =========================================
 * 4. CURVED BOTTOM NAVIGATION WITH NOTCH
 * ========================================= */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  height: calc(66px + var(--safe-bottom));
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: var(--safe-bottom);
  border-radius: 28px 28px 0 0;
  z-index: 100;
}

.nav-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #94a3b8;
  text-decoration: none;
  flex: 1;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-tab-item i {
  font-size: 1.55rem;
  color: #94a3b8;
}

.nav-tab-item.active {
  color: #1b2a60;
}

.nav-tab-item.active i {
  color: #1b2a60;
}

.nav-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #1b2a60;
}

/* Center Floating Fingerprint Button & Notch */
.center-floating-slot {
  position: relative;
  width: 64px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.floating-ambient-notch {
  position: absolute;
  top: -18px;
  width: 68px;
  height: 44px;
  background: radial-gradient(circle at 50% 30%, rgba(193, 226, 245, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.floating-scan-btn {
  position: absolute;
  top: -24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1b2a60;
  border: 3px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 18px rgba(27, 42, 96, 0.35);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 105;
}

.floating-scan-btn:active {
  transform: scale(0.92);
}

.floating-scan-btn i {
  color: #ffffff;
}

/* =========================================
 * 5. CAMERA MODAL & SCANNER OVERLAY
 * ========================================= */
.camera-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: flex-end;
}

.camera-sheet-backdrop.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.camera-sheet {
  width: 100%;
  max-width: 440px;
  background: #0f172a;
  border-radius: 28px 28px 0 0;
  padding: 20px 20px calc(24px + var(--safe-bottom)) 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #ffffff;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sheet-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.btn-close-sheet {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

.camera-viewport-box {
  width: 100%;
  height: 280px;
  background: #000;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.3);
}

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

.oval-scan-guide {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 170px;
  height: 220px;
  border: 2px dashed rgba(56, 189, 248, 0.7);
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

.laser-beam {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: beam-move 2.5s infinite alternate ease-in-out;
}

@keyframes beam-move {
  0% { top: 5%; opacity: 0.3; }
  100% { top: 95%; opacity: 0.9; }
}

/* Live Geofence Tag inside sheet */
.sheet-geo-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
}

/* Dual Action Buttons: Check In & Check Out */
.attendance-actions-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}

.btn-dual-action {
  height: 60px;
  border-radius: 18px;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-align: left;
}

.btn-dual-action:active {
  transform: scale(0.96);
}

.btn-dual-action i {
  font-size: 1.85rem;
  flex-shrink: 0;
}

.action-btn-texts {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.15;
}

.btn-primary-text {
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-sub-text {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.88;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-top: 2px;
}

.btn-dual-action.btn-checkin {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-dual-action.btn-checkout {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.btn-dual-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* =======================================================
 * MODAL BOTTOM SHEETS (LOGIN & PROFILE MANAGEMENT)
 * ======================================================= */
.modal-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  padding: 12px 20px 24px 20px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 88vh;
  overflow-y: auto;
}

.modal-sheet-backdrop.active .modal-sheet {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 42px;
  height: 5px;
  background: #e2e8f0;
  border-radius: 4px;
  margin: 0 auto 12px auto;
}

.sheet-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

/* Sheet forms & inputs */
.sheet-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.sheet-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.sheet-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 1.25rem;
  pointer-events: none;
}

.sheet-input-group input {
  width: 100%;
  height: 50px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 44px 0 42px;
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sheet-input-group input:focus {
  outline: none;
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.sheet-pwd-toggle {
  position: absolute;
  right: 14px;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
}

.btn-sheet-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: transform 0.15s ease, opacity 0.2s ease;
  margin-top: 4px;
}

.btn-sheet-submit:active {
  transform: scale(0.98);
}

.btn-sheet-submit:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
}

.sheet-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.sheet-footer-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 0.72rem;
  color: #64748b;
}

.sheet-footer-hint code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
  color: #0f172a;
}

/* Profile Modal Details */
.profile-avatar-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 14px 16px;
  margin-top: 14px;
}

.avatar-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.avatar-circle-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #0284c7;
  background: #e2e8f0;
}

.avatar-change-btn {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.avatar-meta-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.avatar-user-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar-user-email {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar-role-pill {
  display: inline-block;
  align-self: flex-start;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
}

.profile-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 4px;
  margin-top: 16px;
  gap: 4px;
}

.profile-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.profile-tab-btn.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.tab-pane {
  display: none;
  margin-top: 14px;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

.section-guidance {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 12px;
}

.photo-picker-box {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s ease, background 0.2s ease;
  margin-bottom: 12px;
}

.photo-picker-box:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.upload-big-icon {
  font-size: 2.2rem;
  color: #0284c7;
}

.upload-picker-text {
  font-size: 0.825rem;
  font-weight: 600;
  color: #1e293b;
}

.upload-picker-hint {
  font-size: 0.7rem;
  color: #94a3b8;
}

.profile-logout-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.btn-logout-mobile {
  width: 100%;
  height: 44px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-logout-mobile:hover {
  background: #fee2e2;
}

/* Toast Message */
.mobile-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1e293b;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 2000;
  text-align: center;
  max-width: 90%;
}

.mobile-toast.show {
  display: block;
  transform: translateX(-50%) translateY(0);
  animation: fadeIn 0.2s ease-out;
}

.mobile-toast.success { background: #065f46; border: 1px solid #10b981; }
.mobile-toast.error   { background: #881337; border: 1px solid #f43f5e; }

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
