*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  /* width: 100%; */
  overflow-x: hidden;
}
html {
  font-family: 'Roboto', sans-serif;
  font-optical-sizing: auto;
  font-size: 18px;
  scrollbar-gutter: stable;
}
@media (min-width: 1000px){
  html {
    font-size: 15px;
  }
}
body { 
  background-color: #f0f4f8;
  color: #1e293b;
  min-height: 100vh;
  margin: 0;
  padding: 1rem;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url("/chevron.svg") no-repeat right .75rem center/1.7rem auto;
  padding-right: 2rem;
}
.header {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;;
}
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  align-items: flex-start;
  justify-content: center;
}
@media (max-width: 767.89px) {
  body {
    padding: .4rem;
  }
  .container {
    flex-direction: column;
    max-width: 100%;
    padding: 0;
    gap: 1rem;
  }
}

.calendar-main-padding {
  min-height: 40px;
  margin-bottom: 10px;
}

/* Responsive input text + button */
.add-checklist-item-form,
.add-apartment-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  flex-direction: column;
}
.add-checklist-item-form input[type="text"],
.add-apartment-form input[type="text"] {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}
.add-checklist-item-form button,
.add-apartment-form button {
  flex-shrink: 0;
  white-space: nowrap;
  max-width: 100%;
  width: 100%;
}

/* Login page specific styles */
.login-container {
  max-width: 400px;
  width: 100%;
  padding: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  text-align: center;
  margin: 0 auto;
  position: relative;
  display: block;
}
body.login-page {
  background-color: #e2e8f0;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
}

.card {
  display: flex;
  flex-direction: column;
  background-color: white;
  padding: .7rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 100%;
  max-width: calc(100vw - .8rem);
  flex: 1 1 0;
}
.card * {
  min-width: 0;
}
.logout-btn {
  position: absolute;
  top: 0;
  right: 0;
  color: #141414;
  text-decoration: underline;
  border: none;
  background: transparent;
  padding: 1rem;
  cursor: pointer;
  font-weight: 500;
}
h2 {
  margin-top: 0;
}
input,
select,
textarea,
option,
p {
  font-size: 1em;
}
input::placeholder,
textarea::placeholder {
  font-size: 1em;
}

#apartment-select,
#apartment-select-cal {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgb(59, 130, 246);
    letter-spacing: .01em;
}
#apartment-select option,
#apartment-select-cal option {
  font-size: .9rem;
}
@media (min-width: 768px) {
  .card {
    max-width: 48%;
    padding: 1.25rem;
  }
  .add-apartment-form,
  .add-checklist-item-form {
    flex-direction: row;
  }
  #apartment-select option,
  #apartment-select-cal option {
    font-size: 1.4rem;
  }
  .add-apartment-form input[type="text"],
  .add-apartment-form button,
  .add-checklist-item-form input[type="text"],
  .add-checklist-item-form button {
    width: auto;
  }
}