* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f2;
  color: #222;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: #1f1f1f;
  color: white;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
}

.intro-card p {
  color: #555;
  margin-top: 0;
}

.page-menu {
  position: sticky;
  top: 56px;
  z-index: 10;
}

.page-menu h2 {
  margin-bottom: 12px;
}

.scroll-target {
  scroll-margin-top: 16px;
}

a.floating-home {
  position: sticky;
  top: 8px;
  margin-top: 14px;
  left: 13px;
  z-index: 30;
  display: inline-block;
  padding: 9px 12px;
  border-radius: 4px;
  background: white;
  color: #222;
  border: 1px solid lightgray;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,.16);
  transition: .25s;
}

a.floating-home:hover {
    transform: scale(1.1);
}

@media (max-width: 720px) {
  .chips {
    justify-content: center;
  }
  .container {
    margin-top: 85px;
  }
  .page-menu {
    position: sticky;
    top: 106px;
    margin-top: 58px;
  }
}


.topbar h1 {
  margin: 0 0 4px;
}

.topbar p {
  margin: 0;
  color: #d8d8d8;
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.container {
  width: min(1000px, calc(100% - 32px));
  margin: 18px auto;
}

.container-y {
  transform: translateY(-48px);
}

.card,
.alert {
  background: white;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.alert {
  border-color: #e6d6a7;
  background: #fffef4;
  color: #af914b;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h2,
h3 {
  margin-top: 0;
}

.button {
  border: 0;
  border-radius: 10px;
  padding: 11px 15px;
  background: #222;
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
}

.button:hover {
  opacity: .88;
}

.button.secondary {
  background: white;
  color: #222;
}

.small-button {
  padding: 8px 12px;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.soft-form-grid {
  grid-template-columns: 1fr auto;
}

.inline-form {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid #cfcfcf;
  font-size: 15px;
  background: white;
  color: #222;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid #ccc;
  background: #fafafa;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  color: #222;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  text-transform: capitalize;
}

.chip:hover {
  background: #eeeeee;
}

.chip-form {
  display: inline;
}

.delete-type {
  color: #b00020;
  font-weight: 900;
  margin-left: 6px;
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.brand {
  background: #efefef;
  border-radius: 10px;
  padding: 10px 12px;
}

.cocktail-list {
  display: grid;
  gap: 12px;
}

.cocktail {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px;
  background: white;
}

.cocktail h3 {
  margin: 0 0 8px;
}

.cocktail p {
  margin: 0 0 7px;
  color: #555;
}

.cocktail.available {
  border-color: #9bcc9b;
}

.cocktail.unavailable {
  opacity: .85;
}

.status-ok {
  color: #176b17 !important;
  font-weight: 700;
}

.status-ko {
  color: #9b1c1c !important;
  font-weight: 700;
}

.table {
  display: grid;
  gap: 8px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.row strong {
  text-transform: capitalize;
}

.delete {
  background: #b00020;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 700;
}

.empty {
  text-align: center;
  color: #666;
  padding: 32px;
}

.help {
  color: #666;
  margin-bottom: 16px;
}

code {
  background: #eee;
  border-radius: 5px;
  padding: 2px 5px;
}

.section-spaced {
  margin-top: 18px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
}

footer.container {
  margin-top: 0;
  padding-bottom: 24px;
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions,
  .nav-actions .button {
    width: 100%;
  }

  .nav-actions .button {
    text-align: center;
  }

  .form-grid,
  .soft-form-grid,
  .row {
    grid-template-columns: 1fr;
  }

  .inline-form {
    flex-direction: column;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }
}
