@font-face {
  font-family: 'AppFont';
  src: url('../../font/font.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue: #0A67E9;
  --blue-dark: #0a5fe0;
  --blue-deep: #0957d0;
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.7);
  --shadow: 0 18px 36px rgba(5, 25, 70, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  background: var(--blue);
  color: var(--white);
}

html,
body,
body * {
  font-family: 'AppFont' !important;
}

button,
input,
select,
textarea {
  font-family: 'AppFont' !important;
}

.screen {
  width: min(420px, 100%);
  min-height: 100vh;
  padding: 26px 18px 48px;
  background: var(--blue);
  background-image: url("../wallpaper.png");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 102, 230, 0.96), rgba(12, 110, 246, 0.84) 40%, rgba(12, 110, 246, 0.35));
  z-index: 0;
}

.screen > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.back-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  padding: 0;
  text-decoration: none;
}

.back-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.title {
  font-size: 20px;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.nav a {
  text-decoration: none;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
}

.nav a.active {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.date-pill {
  width: fit-content;
  margin: 0 auto 16px;
  padding: 10px 24px;
  border-radius: 16px;
  border: 2px solid var(--border);
  font-size: 18px;
  letter-spacing: 0.8px;
  text-align: center;
  background: transparent;
}

.date-pill.filled {
  background: var(--blue);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.history-loading {
  width: 100%;
  text-align: center;
  padding: 24px 12px;
  font-size: 20px;
  letter-spacing: 0.8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.card {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.time {
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.divider {
  height: 16px;
}

@media (max-width: 420px) {
  .screen {
    padding: 22px 16px 40px;
  }

  .title {
    font-size: 18px;
  }

  .date-pill {
    font-size: 16px;
  }

  .value {
    font-size: 24px;
  }
}

