/* style.css - Complete Design System for Loop QR Engagement System */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Instrument+Sans:wght@400;500;600;700&display=swap');

html, body {
  margin: 0;
  padding: 0;
  background: #F6F1E9;
  color: #1B1613;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

a {
  color: #B4552D;
  text-decoration: none;
}

a:hover {
  color: #8E3F1E;
  text-decoration: underline;
}

input, select, textarea, button {
  font-family: inherit;
}

@keyframes sheetUp {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #E0D5C4;
  border-radius: 8px;
  border: 3px solid #F6F1E9;
}

/* Header Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: #1B1613;
  color: #F6F1E9;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand-title {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  letter-spacing: .2px;
}

.brand-sub {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9C9187;
}

.nav-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #2A2320;
  border-radius: 999px;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn.active {
  background: #FFFDF9;
  color: #1B1613;
}

.tab-btn.inactive {
  background: transparent;
  color: #B2A69A;
}

/* Customer Scan Container & Responsive Card */
.scan-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 64px;
  min-height: calc(100vh - 60px);
}

.scan-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: #FFFDF9;
  border-radius: 28px;
  border: 1px solid #E8DECE;
  box-shadow: 0 24px 48px -12px rgba(27, 22, 19, 0.15);
  overflow: hidden;
  margin: 0 auto;
}

/* Sheet Modals */
.overlay-sheet {
  position: absolute;
  inset: 0;
  background: rgba(27, 22, 19, .45);
  display: flex;
  align-items: flex-end;
  z-index: 20;
  backdrop-filter: blur(3px);
}

.sheet-content {
  width: 100%;
  background: #FFFDF9;
  border-radius: 26px 26px 0 0;
  padding: 26px 22px 28px;
  animation: sheetUp .28s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.sheet-drag-pill {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: #E4DACB;
  margin: 0 auto 20px;
}

/* Admin Dashboard */
.admin-subnav {
  background: #FFFDF9;
  border-bottom: 1px solid #E4DACB;
  padding: 0 28px;
  position: sticky;
  top: 52px;
  z-index: 40;
}

.admin-subnav-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.admin-subnav-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  white-space: nowrap;
}

.admin-tab {
  padding: 16px 18px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.admin-tab.active {
  border-bottom-color: #B4552D;
  color: #B4552D;
}

.admin-tab.inactive {
  color: #8C8074;
}

.admin-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 28px 72px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .navbar {
    padding: 10px 16px;
  }
}

@media (max-width: 768px) {
  .scan-wrapper {
    padding: 0 0 32px;
  }

  .scan-card {
    border-radius: 0;
    border: none;
    box-shadow: none;
    min-height: calc(100vh - 56px);
  }

  .overlay-sheet {
    position: fixed;
  }

  .admin-subnav {
    padding: 0 16px;
  }

  .admin-main {
    padding: 20px 16px 48px;
  }
}
