/* Force the app to fill the CloudPhone viewport */
html, body {
  margin: 0;
  padding: 0;
  width: 240px;
  height: 320px;
  background: #fafafa;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* Container stretches full screen */
.app-container {
  width: 240px;
  height: 320px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* Pages take all space above nav */
.page {
  flex: 1;
  padding: 6px;
  text-align: center;
  overflow-y: auto;
}

.hidden {
  display: none;
}

.app-title {
  font-size: 14px;
  margin: 4px 0;
  font-weight: 600;
}

select, input {
  width: 90%;
  margin: 4px 0;
  padding: 4px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.primary-btn {
  width: 90%;
  padding: 6px;
  margin-top: 4px;
  background: #6200ee;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
}

.card {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 6px;
  margin-top: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.result-text {
  margin-top: 6px;
  font-weight: bold;
  font-size: 12px;
}

/* Bottom navigation fixed at bottom */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  background: #eeeeee;
  padding: 4px 0;
}

.bottom-nav button {
  flex: 1;
  margin: 0 2px;
  background: #6200ee;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
}

