@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #ffc000;
  --bg-color: #f8f9fa;
  --text-main: #222222;
  --text-secondary: #777777;
  --border-color: #e0e0e0;
  --white: #ffffff;
  --danger: #dc3545;
  --success: #28a745;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #e9ecef;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

/* Mobile Container constraint */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--white);
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Top Navigation Bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar .icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  flex-grow: 1;
  text-align: center;
}

.navbar-right {
  display: flex;
  gap: 12px;
}

/* Main Content Area */
.content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background-color: var(--white);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:active {
  opacity: 0.8;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 0.8rem 0;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
}

.tab.active {
  color: var(--text-main);
  font-weight: 600;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
}

/* Keypad (from screenshot 2) */
.keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
  background-color: #f8f9fa;
  border-top: 1px solid var(--border-color);
  position: sticky;
  bottom: 0;
}

.keypad-btn {
  background-color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 20px 0;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.keypad-btn:active {
  background-color: #f0f0f0;
}

.keypad-btn.action {
  background-color: var(--primary-color);
  color: var(--white);
}

.keypad-btn.action:active {
  background-color: #e6ac00;
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-danger { color: var(--danger); }
.text-secondary { color: var(--text-secondary); }
.font-bold { font-weight: 600; }

/* Bottom Navigation */
.bottom-nav {
  position: sticky;
  bottom: 0;
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 10;
  margin-top: auto;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.75rem;
  gap: 0.3rem;
  text-decoration: none;
  cursor: pointer;
}

.nav-item.active {
  color: var(--text-main);
  font-weight: 700;
}

.nav-icon {
  width: 24px;
  height: 24px;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

.nav-item.active .nav-icon svg {
  stroke: var(--text-main);
  fill: var(--text-main);
}

.nav-item-center, .scan-btn-wrapper {
  position: relative;
  top: -20px;
}

.center-btn, .scan-btn {
  width: 56px;
  height: 56px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  margin: 0 auto;
}

.center-btn-inner {
  width: 44px;
  height: 44px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.scan-btn svg {
  width: 28px;
  height: 28px;
  color: var(--text-main);
}
