body {
    font-variant: small-caps;
  letter-spacing: 1px;
  font-family: 'Segoe UI', 'Inter', 'Roboto', sans-serif;
  max-width: 600px;
  margin: auto;
  padding: 20px;
  background-color: #f2f7fc;
}

h1, h2 {
  color: #3658a7;
}

input, button {
  margin: 8px 0;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
}

button {
  background-color: #3690f2;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #2b76cc;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  background: white;
  padding: 12px;
  border: 1px solid #d0e3f7;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(54, 162, 235, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#total-calories {
  font-weight: bold;
  font-size: 18px;
  margin-top: 20px;
}

#login-btn {
  margin-bottom: 10px;
}

#remaining-calories {
  font-weight: bold;
  font-size: 18px;
  color: #3658a7;
  margin-top: 5px;
}

#meal-list button {
  margin-left: 10px;
  background-color: #ffc107;
  color: #000;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
}


#meal-list button {
  margin-left: 8px;
  padding: 5px 8px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}

#meal-list button:hover {
  opacity: 0.8;
}

button:contains("🗑️") {
  background-color: #ff6666;
  color: white;
}

button:contains("✎") {
  background-color: #ffc107;
  color: black;
}


.google-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: #3c4043;
  font-family: Roboto, sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  white-space: nowrap;

  /* 🔥 Force fit-content width */
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}


.google-signin-btn img {
  height: 18px;
  width: 18px;
  display: inline-block;
  vertical-align: middle;
}


.google-signin-btn:hover {
  background-color: #f7f8f8;
}

.user-status {
  color: #666;
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 20px;
}

#auth-buttons {
  position: relative;
}

.settings-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  margin-left: 10px;
  border-radius: 999px;
  background-color: #3658a7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 30, 56, 0.45);
  padding: 20px;
  z-index: 1000;
}

.settings-panel {
  max-width: 900px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(16, 30, 56, 0.2);
}

.settings-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logs-meta,
.logs-error {
  font-size: 14px;
  color: #4f5d75;
}

.logs-error {
  color: #b42318;
}

.logs-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.settings-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-actions button {
  width: auto;
  min-width: 180px;
}

.log-entry {
  background: #f8fbff;
  border: 1px solid #d6e4f5;
  border-radius: 12px;
  padding: 14px;
}

.log-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.log-entry-status {
  font-weight: 700;
  color: #3658a7;
}

.log-entry pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  margin: 8px 0 0;
  font-family: Consolas, monospace;
  font-size: 13px;
}

.request-debug {
  margin-top: 16px;
  background: #fffaf0;
  border: 1px solid #f0d9a7;
  border-radius: 12px;
  padding: 14px;
}

.request-debug pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  margin: 0;
  font-family: Consolas, monospace;
  font-size: 13px;
}

@media (max-width: 640px) {
  .settings-panel {
    padding: 16px;
  }

  .settings-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-actions button {
    width: 100%;
  }
}

#logout-btn {
  margin-top: 10px;
  background-color: #f5f5f5;
  font-weight: 500;
  
}

.ai-text {
  
  letter-spacing: 1px;
  font-family: 'Segoe UI', 'Inter', 'Roboto', sans-serif;
}

.auto-add-label {
  display: inline-flex;
  align-items: center;
  gap: 0px;
  margin-top: 5px;
  
  
  cursor: pointer;
}

.card {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card h2 {
  margin-top: 0;
  font-size: 1.5em;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-btn {
  font-size: 0.9em;
  padding: 4px 10px;
  background-color: #ddd;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  max-width: 120px;
  width: fit-content;
}

.toggle-btn:hover {
  background-color: #ccc;
}

.card-content {
  margin-top: 10px;
}


#clear-form-btn {
  
  background-color: #eee;
  color: #444;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  
}

#clear-form-btn:hover {
  background-color: #ddd;
}

.edit-name-input,
.edit-cal-input {
  width: 100px;
  font-size: 1rem;
  margin-right: 5px;
}

.meal-name,
.meal-calories {
  margin-bottom: 2px;
}

.meal-actions {
  margin-top: 4px;
}




