
:root {
  --orange: #ff7426;
  --dark: #24242a;
  --gray: #81818c;
  --line: #e9e9ee;
  --background: #f7f7f9;
  --red: #e65245;
  --purple: #7553ae;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--dark);
  font-family: Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  width: min(100%, 700px);
  min-height: 100vh;
  margin: auto;
  padding-bottom: 78px;
  background: white;
}

.page {
  padding: 28px 20px;
}

.topbar,
.month-header,
.bottom-nav,
.legend {
  display: flex;
}

.topbar,
.month-header {
  align-items: center;
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gray);
  font-size: 12px;
  font-weight: 600;
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
}

.add-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--orange);
  color: white;
  font-size: 28px;
}

.month-header {
  margin-top: 30px;
}

.month-title {
  text-align: center;
}

.month-title h2 {
  margin: 0;
  font-size: 20px;
}

.month-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--dark);
  font-size: 25px;
}

.today-button {
  display: block;
  margin: 18px auto;
  padding: 9px 13px;
  border: 0;
  border-radius: 10px;
  background: #fff0e8;
  color: #d85b18;
  font-size: 12px;
  font-weight: 700;
}

.instruction {
  margin: 20px 0 13px;
  color: var(--gray);
  font-size: 13px;
}

.weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.weekdays {
  margin-bottom: 6px;
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.day-cell {
  position: relative;
  min-height: 56px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.day-cell:hover {
  border-color: var(--orange);
}

.day-cell.empty {
  border-color: transparent;
  background: transparent;
}

.day-cell.today {
  border: 2px solid var(--orange);
  color: var(--orange);
}

.day-cell.blocked::after,
.day-cell.repeated::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.day-cell.blocked::after {
  background: var(--red);
}

.day-cell.repeated::after {
  background: var(--purple);
}

.legend {
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 22px;
  color: var(--gray);
  font-size: 11px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.available-dot {
  background: #32aa68;
}

.blocked-dot {
  background: var(--red);
}

.repeat-dot {
  background: var(--purple);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  justify-content: space-around;
  padding: 10px 5px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: #92929c;
  font-size: 19px;
}

.bottom-nav span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
}

.bottom-nav .active {
  color: var(--orange);
}

dialog {
  width: min(92%, 420px);
  padding: 24px;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

dialog h2 {
  margin: 5px 0 20px;
  font-size: 21px;
}

.close-button {
  float: right;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f4;
  font-size: 21px;
}

dialog label {
  display: block;
  margin: 14px 0 5px;
  color: var(--gray);
  font-size: 12px;
  font-weight: 700;
}

dialog input[type="time"] {
  width: 100%;
  margin-top: 6px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--dark);
}

.repeat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--dark);
}

.repeat-row input {
  width: 19px;
  height: 19px;
  accent-color: var(--orange);
}

.repeat-row small {
  display: block;
  margin-top: 3px;
  color: var(--gray);
  font-weight: 400;
}

.main-button,
.delete-button {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  color: white;
  font-weight: 700;
}

.main-button {
  background: var(--orange);
}

.delete-button {
  margin-top: 9px;
  background: #74747b;
}

@media (min-width: 768px) {
  .app {
    width: 700px;
  }
}
.nav-link {
  display: block;
  color: #92929c;
  background: transparent;
  text-decoration: none;
  text-align: center;
  font-size: 19px;
}

.nav-link span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
}

.nav-link.active {
  color: var(--orange);
}
.nav-link {
  display: block;
  color: #92929c;
  background: transparent;
  text-decoration: none;
  text-align: center;
  font-size: 19px;
}

.nav-link span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
}

.nav-link.active {
  color: var(--orange);
}
.day-cell.available::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #32aa68;
}

.day-cell.blocked::after {
  background: var(--red);
}

.day-cell.repeated::after {
  background: var(--purple);
}