/*
  style.css - how the page looks.
  Each block picks some controls and sets their properties,
  like Font, BackColor and Width in the VB6 Properties window.
*/

/* The whole page */
body {
  margin: 0;
  padding: 24px 16px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #2b2118;
  background: #f4ede3;
}

/* The logo and title, side by side */
.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 20px;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 50%; /* trims the white square corners to a circle */
}

h1 {
  margin: 0;
  font-size: 26px;
  color: #7a3e12;
}

/* Pushes the "Log out" button to the right end of the header */
.logout-form {
  margin-left: auto;
}

/* A lighter button style, for less important actions */
.secondary-button {
  color: #7a3e12;
  background: transparent;
  border: 1px solid #a4541c;
}
.secondary-button:hover {
  color: #ffffff;
}

/* ---- The login screen ---- */
.login-box {
  max-width: 340px;
  margin: 40px auto;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #ddd0bf;
  border-radius: 8px;
  text-align: center;
}

.login-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
}

.login-box h1 {
  margin: 12px 0 8px;
}

.login-box form {
  text-align: left;
}

.login-box label {
  margin-top: 14px;
}

.login-box button {
  width: 100%;
  margin-top: 20px;
}

/* Two columns side by side; they stack on a narrow screen */
.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  align-items: flex-start;
}

/* The two white boxes */
.panel {
  flex: 1 1 320px;
  background: #ffffff;
  border: 1px solid #ddd0bf;
  border-radius: 8px;
  padding: 20px;
}

/* Labels sit above their control */
label,
.list-label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
}

.panel > label,
.list-label {
  margin-top: 18px;
}
.panel > form > label,
.panel > label:first-child {
  margin-top: 0;
}

/* A text box and its button on one line */
.row {
  display: flex;
  gap: 8px;
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  font: inherit;
  border: 1px solid #b9a890;
  border-radius: 6px;
}

/* Command buttons */
button {
  padding: 8px 18px;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: #a4541c;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
button:hover {
  background: #7a3e12;
}

#saveButton {
  margin-top: 10px;
}

/* The list box of check boxes */
.checklist {
  height: 200px;
  overflow-y: auto;
  border: 1px solid #b9a890;
  border-radius: 6px;
  padding: 4px 0;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 10px;
  font-weight: normal;
  cursor: pointer;
}
.check-item:hover {
  background: #f4ede3;
}

.empty {
  margin: 8px 10px;
  color: #8a7a66;
}

/* The note under the Save button */
.message {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: #2f6b2f;
}
.message.error {
  color: #b00020;
}

/* The recipe card. It has no fixed height,
   so it grows or shrinks with the number of ingredients. */
.recipe-card {
  margin-top: 20px;
  padding: 16px 20px;
  background: #fffdf6;
  border: 1px solid #d9c9a8;
  border-top: 6px solid #a4541c;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(60, 40, 20, 0.15);
}

.recipe-card h2 {
  margin: 0;
  font-size: 22px;
  color: #7a3e12;
}

.card-count {
  margin: 2px 0 10px;
  color: #8a7a66;
  font-size: 14px;
}

/* Ruled lines, like an index card */
.recipe-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.recipe-card li {
  padding: 6px 0;
  border-bottom: 1px solid #c8d8e8;
}
.recipe-card li::before {
  content: "• ";
  color: #a4541c;
}

/* The "Email this card to" box at the bottom of the card */
.email-form {
  margin-top: 16px;
}
