/* — Base reset & Inter font — */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  box-sizing: border-box;
}

/* — Banner — */
.banner {
  position: relative;
  height: 60px;
  background-color: #854CC2;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.banner-left {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

/* Center the PNG logo */
.banner-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}
.banner-logo {
  height: 45px;
  width: auto;
}
body.chromebook .banner-logo {
  height: 37px;  /* was 20px */
}
.banner-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.icon-button {
  background: none;
  border: none;
  padding: 0;
  margin-right: 12px;
  cursor: pointer;
}
.icon-button img {
  height: 32px;
  width: 32px;
}
.done-button {
  background: none;
  border: 2px solid #fff;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
}

/* — Calculator container — */
.calculator-container {
  width: 100%;
  height: calc(100vh - 60px);
}

/* — Overlay & Modal — */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.hidden {
  display: none;
}
.modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}
.modal-header {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #333;
}
.modal-elapsed {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 8px;
}
.elapsed-number {
  font-size: 3rem;
  font-weight: 400;
  color: #333333;
  line-height: 1;
  margin-right: 8px;
}
.elapsed-unit {
  font-size: 2.5rem;
  font-weight: 400;
  color: #333333;
  line-height: 1;
  margin-right: 16px;
}
.modal-start {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: #666;
}
.modal-badge {
  display: inline-block;
  background: #777;
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-bottom: 16px;
}
.modal-message {
  font-size: 0.875rem;
  color: #333;
  margin-bottom: 24px;
  line-height: 1.4;
}
.modal-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.btn-link {
  flex: 1;
  background: none;
  border: 1.5px solid #1f78ec;
  color: #1f78ec;
  font-size: 0.875rem;
  padding: 8px 0;
  border-radius: 4px;
  cursor: pointer;
}
.btn-primary {
  flex: 1;
  background: #1f78ec;
  border: none;
  color: #fff;
  font-size: 0.875rem;
  padding: 8px 0;
  border-radius: 4px;
  cursor: pointer;
}
