:root {
  /* Colors */
  --color-primary-green: #00c950;
  --color-text-green: #008236;
  --color-subtitle: #4a5565;
  --color-button-text: #364153;
  --color-footer-text: #6a7282;
  --color-border: #e5e7eb;
  --color-bg-start: #f0fdf4;
  --color-bg-end: #ffffff;
  --color-text-dark: #0a0a0a;
  --color-alert-red: #ef4444;
  --color-warning-yellow: #f59e0b;
  --color-expired-bg: #fef2f2;
  --color-expiring-soon-bg: #fffbeb;

  /* Shadows */
  --shadow-card: 0px 10px 15px 0px rgba(0, 0, 0, 0.1), 0px 4px 6px 0px rgba(0, 0, 0, 0.1);
  --shadow-button: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.1);
  --shadow-inventory: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1);

  /* Fonts */
  --font-arimo: "Arimo", "Arial", sans-serif;
  --font-noto: "Arimo", "Noto Sans JP", "Inter", sans-serif;
}
/* app/assets/stylesheets/items.css */

.items-page-header {
  margin-top: 32px;
  margin-bottom: 24px;
}

.items-page-title {
  font-family: var(--font-arimo);
  font-size: 30px;
  line-height: 36px;
  color: var(--color-text-green);
  margin: 0;
}

.items-page-subtitle {
  font-family: var(--font-arimo);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-subtitle);
  margin-top: 8px;
}

.category-manager-container {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-button);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-selector-wrapper {
  width: 100%;
}

.category-selector {
  width: 100%;
  height: 40px;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 16px;
  color: var(--color-text-dark);
  background: white;
  box-sizing: border-box;
  font-family: var(--font-noto);
}

.category-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.btn-add-category {
  background: var(--color-primary-green);
  border-radius: 10px;
  height: 40px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 16px;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: var(--font-arimo);
}

.btn-add-category:hover {
  opacity: 0.9;
}

.btn-delete-category {
  background: #fb2c36;
  border-radius: 10px;
  height: 40px;
  width: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-delete-category:hover {
  opacity: 0.9;
}

.add-item-container {
  margin-bottom: 24px;
}

.btn-add-item {
  background: var(--color-primary-green);
  border-radius: 10px;
  box-shadow: var(--shadow-button);
  width: 170px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: opacity 0.2s;
  font-family: var(--font-noto);
}

.btn-add-item:hover {
  opacity: 0.9;
}

.inventory-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Space between items */
  width: 100%;
}

.empty-inventory-container {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-inventory);
  min-height: 176px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-inventory-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 144px;
  text-align: center;
}

.empty-inventory-text {
  font-family: var(--font-arimo);
  font-size: 16px;
  color: var(--color-footer-text);
  margin-top: 16px;
}

/* Item Card Styles */
.item-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.1), 0px 1px 2px 0px rgba(0,0,0,0.1); /* Standard card shadow */
  padding: 16px 16px 16px 20px; /* Based on Figma pl-[19.691px] pr-[15.994px] pt-[15.994px] */
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 4px solid transparent; /* Placeholder for potential border highlight */
  transition: box-shadow 0.2s;
}

.item-card:hover {
  box-shadow: var(--shadow-card);
}

.item-card.is-expired {
  border-left-color: var(--color-alert-red);
  background-color: var(--color-expired-bg);
}

.item-card.is-expiring-soon {
  border-left-color: var(--color-warning-yellow);
  background-color: var(--color-expiring-soon-bg);
}

.item-name {
  font-family: var(--font-noto); /* Inter:Medium */
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-dark);
  margin: 0;
  text-decoration: none;
}

.item-name a {
  color: inherit;
  text-decoration: none;
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-noto);
  font-size: 14px;
  color: var(--color-subtitle);
}

.item-meta-row.text-expired {
  color: var(--color-alert-red);
  font-weight: 500;
}

.item-meta-row.text-expiring-soon {
  color: var(--color-warning-yellow);
  font-weight: 500;
}

.item-meta-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-quantity-container {
  background-color: #f9fafb;
  border-radius: 10px;
  height: 56px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item-quantity-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-noto);
  font-weight: 700; /* Inter:Bold */
  font-size: 18px;
  color: var(--color-button-text);
}

.btn-change-stock {
  background-color: var(--color-primary-green);
  border-radius: 10px;
  height: 32px;
  padding: 0 12px; /* Adjustable width */
  min-width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-change-stock:hover {
  opacity: 0.9;
}

.item-expiration {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-subtitle);
}

/* Modal Overlay & Container */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.item-detail-modal {
  background: white;
  width: 343px;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0px 20px 25px 0px rgba(0,0,0,0.1), 0px 8px 10px 0px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Modal Header */
.modal-header {
  height: 77px;
  border-bottom: 0.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-noto);
  font-weight: 500;
  font-size: 20px;
  color: var(--color-text-dark);
  margin: 0;
}

.modal-close-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.modal-close-btn img {
  width: 100%;
  height: 100%;
}

/* Modal Scrollable Content */
.modal-scrollable-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Section Title */
.section-title {
  font-family: var(--font-noto);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title.text-green {
  color: #00a63e;
}

.section-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-icon img {
  width: 100%;
  height: 100%;
}

/* Info Section */
.info-section {
  display: flex;
  flex-direction: column;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.info-card {
  background-color: #f9fafb;
  border-radius: 10px;
  height: 64px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid transparent;
}

.info-card.is-expired {
  border-left-color: var(--color-alert-red);
  background-color: var(--color-expired-bg);
}

.info-card.is-expiring-soon {
  border-left-color: var(--color-warning-yellow);
  background-color: var(--color-expiring-soon-bg);
}

.info-card.is-expired .info-value {
  color: var(--color-alert-red);
  font-weight: 500;
}

.info-card.is-expiring-soon .info-value {
  color: var(--color-warning-yellow);
  font-weight: 500;
}

.info-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon img {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.info-label {
  font-family: var(--font-noto);
  font-size: 12px;
  color: var(--color-footer-text);
  line-height: 16px;
}

.info-value {
  font-family: var(--font-noto);
  font-size: 16px;
  color: var(--color-text-dark);
  line-height: 24px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-edit {
  background-color: var(--color-primary-green);
  border-radius: 10px;
  height: 40px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-family: var(--font-noto);
  font-weight: 500;
  transition: opacity 0.2s;
}

.form-delete {
  flex: 1;
  display: flex;
}

.btn-delete {
  background-color: #fb2c36;
  border-radius: 10px;
  height: 40px;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-family: var(--font-noto);
  font-weight: 500;
  transition: opacity 0.2s;
}

.btn-edit:hover, .btn-delete:hover {
  opacity: 0.9;
}

/* History Section */
.history-section {
  display: flex;
  flex-direction: column;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-card {
  background-color: #f9fafb;
  border-radius: 10px;
  min-height: 68px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}

.history-icon-wrapper {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.history-icon-wrapper img {
  width: 100%;
  height: 100%;
}

.history-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-amount {
  font-family: var(--font-noto);
  font-weight: 500;
  font-size: 16px;
}

.history-amount.text-green {
  color: #00a63e;
}

.history-amount.text-red {
  color: #e7000b;
}

.history-reason {
  font-family: var(--font-noto);
  font-size: 14px;
  color: var(--color-subtitle);
}

.history-date {
  font-family: var(--font-noto);
  font-size: 12px;
  color: var(--color-footer-text);
}

.empty-history-text {
  font-family: var(--font-noto);
  font-size: 14px;
  color: var(--color-subtitle);
  text-align: center;
  padding: 16px 0;
}

/* Form Modal Adjustments */
.item-form-modal {
  background: white;
  width: 343px;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0px 20px 25px 0px rgba(0,0,0,0.1), 0px 8px 10px 0px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.item-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-errors {
  background-color: #fee2e2;
  border-left: 4px solid var(--color-alert-red);
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.error-list {
  margin: 0;
  padding-left: 20px;
  color: #b91c1c;
  font-family: var(--font-noto);
  font-size: 14px;
  line-height: 20px;
}

.form-label-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
}

.form-label-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-label-icon img {
  width: 100%;
  height: 100%;
}

.form-label {
  font-family: var(--font-noto);
  font-weight: 500;
  font-size: 16px;
  color: #364153; /* text color from figma */
  margin: 0;
}

.form-input {
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  height: 40px;
  padding: 8px 16px;
  font-family: var(--font-noto);
  font-size: 16px;
  color: var(--color-text-dark);
  box-sizing: border-box;
  width: 100%;
  background: white;
}

.form-input::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

.form-select {
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M7%2010L12%2015L17%2010%22%20stroke%3D%22%23364153%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 24px;
}

.form-actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
}

.btn-submit-large {
  background-color: var(--color-primary-green);
  border-radius: 10px;
  height: 40px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-family: var(--font-noto);
  font-weight: 500;
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn-cancel-large {
  background-color: #d1d5dc;
  border-radius: 10px;
  height: 40px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #364153;
  text-decoration: none;
  font-size: 16px;
  font-family: var(--font-noto);
  font-weight: 500;
  transition: opacity 0.2s;
  text-align: center;
}

.cancel-text {
  line-height: 24px;
}

.btn-submit-large:hover, .btn-cancel-large:hover {
  opacity: 0.9;
}

/* Confirm Modal (HTML5 Dialog) */
.confirm-modal {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 10px;
  margin: auto;
}

.confirm-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.confirm-modal-content {
  background: white;
  width: 320px;
  border-radius: 10px;
  box-shadow: 0px 20px 25px 0px rgba(0,0,0,0.1), 0px 8px 10px 0px rgba(0,0,0,0.1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  text-align: center;
}

.confirm-title {
  font-family: var(--font-noto);
  font-weight: 500;
  font-size: 18px;
  color: #0a0a0a;
  margin: 0;
}

.confirm-message {
  font-family: var(--font-noto);
  font-size: 14px;
  color: var(--color-text-dark);
  line-height: 1.6;
  margin: 0;
}

.confirm-actions {
  padding-top: 8px;
}
/* app/assets/stylesheets/stock_adjustments.css */

.stock-adjustment-container {
  background-color: #f0fdf4;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.stock-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* Reduced gap to fit better */
  height: 28px;
  color: #4a5565;
  font-family: var(--font-noto);
  font-size: 14px;
}

.stock-status-value {
  font-family: var(--font-noto); /* Inter:Bold */
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: #4a5565;
}

.quantity-control-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.btn-quantity-control {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.btn-quantity-control:hover {
  opacity: 0.9;
}

.btn-decrease {
  background-color: #fb2c36;
}

.btn-increase {
  background-color: #00c950;
}

.quantity-display {
  flex-grow: 1; /* Allow it to take up space between buttons */
  max-width: 120px; /* But don't let it get too wide */
  height: 51px;
  background-color: white;
  border: 1.585px solid #d1d5dc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide default number input arrows */
.quantity-input {
  width: 100%;
  height: 100%;
  border: none;
  text-align: center;
  font-family: var(--font-noto); /* Inter:Bold */
  font-weight: 700;
  font-size: 24px;
  color: var(--color-text-dark);
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.reason-selector-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* Slightly tighter gap to fit 3 items comfortably */
  width: 100%;
}

/* Radio button styling hack: hide radio, style label */
.reason-radio {
  display: none;
}

.reason-label {
  height: 37px;
  flex: 1; /* Make labels equal width */
  min-width: 0; /* Allow shrinking below content size if needed */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-noto); /* Inter:Medium */
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: 0.5px solid #d1d5dc;
  background-color: white;
  color: var(--color-button-text);
  padding: 0 4px;
  transition: all 0.2s;
  white-space: nowrap; /* Prevent text wrapping */
}

.reason-label .icon-active {
  display: none;
}

.reason-label .icon-inactive {
  display: block;
}

/* Checked state */
.reason-radio:checked + .reason-label {
  background-color: #00c950;
  color: white;
  border-color: #00c950;
}

.reason-radio:checked + .reason-label .icon-active {
  display: block;
}

.reason-radio:checked + .reason-label .icon-inactive {
  display: none;
}

.action-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.btn-save {
  flex-grow: 1;
  background-color: #00c950;
  border-radius: 10px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  border: none;
  font-family: var(--font-noto);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-save:hover {
  opacity: 0.9;
}

.btn-cancel {
  width: 52px;
  height: 40px;
  background-color: #d1d5dc; /* Gray background from Figma */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.btn-cancel:hover {
  opacity: 0.9;
}

.error-message {
  color: #fb2c36;
  font-size: 14px;
  text-align: center;
  margin-bottom: 8px;
}
/* app/assets/stylesheets/categories.css */

.category-form-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.category-static-selector {
  width: 100%;
  height: 40px;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 16px;
  color: var(--color-text-dark);
  background: white;
  box-sizing: border-box;
  font-family: var(--font-noto);
  display: flex;
  align-items: center;
  pointer-events: none; /* Make it look static/disabled */
}

.category-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.category-input-wrapper {
  flex: 1;
  height: 41px;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  background: white;
  overflow: hidden;
  box-sizing: border-box;
}

.category-input {
  width: 100%;
  height: 100%;
  border: none;
  padding: 0 12px;
  font-family: var(--font-noto);
  font-size: 16px;
  color: var(--color-text-dark);
  background: transparent;
  outline: none;
  box-sizing: border-box;
}

.category-input::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

.btn-category-action {
  width: 52px;
  height: 41px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
  text-decoration: none !important;
}

.btn-category-action:hover {
  opacity: 0.9;
}

.btn-category-submit {
  background-color: var(--color-primary-green);
  /* Ensure it has same base style */
  flex-shrink: 0;
}

.btn-category-cancel {
  background-color: #d1d5dc;
}
.flash-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 350px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  padding-bottom: env(safe-area-inset-bottom);
}

.flash-message {
  padding: 14px 20px;
  border-radius: 50px;
  color: white;
  font-family: var(--font-noto);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  pointer-events: auto;
  
  /* Start hidden/offset for entry animation */
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease; /* For exit */
}

/* Exit state class */
.flash-message.fade-out {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  pointer-events: none;
}

/* Success / Notice */
.flash-notice {
  background-color: var(--color-primary-green);
}

/* Error / Alert */
.flash-alert {
  background-color: var(--color-alert-red);
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.static-page-container {
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-top: 16px;
}

.static-page-title {
  font-family: var(--font-outfit);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-green);
  margin-bottom: 24px;
  border-bottom: 2px solid var(--color-bg-light-green);
  padding-bottom: 8px;
}

.static-page-content h2 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--color-text-dark);
}

.static-page-content p, .static-page-content ul {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-subtitle);
  margin-bottom: 16px;
}

.static-page-content ul {
  padding-left: 20px;
}

.app-footer {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-separator {
  font-size: 10px;
  color: var(--color-footer-text);
  opacity: 0.5;
}

.footer-link {
  font-size: 12px;
  color: var(--color-footer-text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link.active {
  color: var(--color-text-green);
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
  color: var(--color-subtitle);
}

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--color-bg-light-green);
  color: var(--color-text-green);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.btn-secondary:hover {
  opacity: 0.8;
}
/*







 */

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(
      114.79deg,
      var(--color-bg-start) 0%,
      var(--color-bg-end) 100%
    );
  font-family: var(--font-noto);
  -webkit-font-smoothing: antialiased;
}

.main-content {
  padding: 31.99px 15.99px;
  max-width: 375px;
  margin: 0 auto;
}

.app-header {
  margin-bottom: 32px; /* Revert to 32px as per Figma gap likely */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-titles {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Matches Figma gap 7.997px */
}

.app-title {
  font-family: var(--font-arimo);
  font-size: 30px;
  line-height: 36px;
  color: var(--color-text-green);
  margin: 0;
  font-weight: 400;
}

.app-title-link {
  text-decoration: none;
  color: inherit;
}

.app-subtitle {
  font-family: var(--font-arimo);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-subtitle);
  margin: 0;
  font-weight: 400;
}

.user-profile {
  /* Position top right relative to content */
  margin-left: 16px; /* Spacing from text */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.user-avatar {
  border-radius: 50%;
  display: block; /* Removes inline gap */
}

.user-logout {
  font-size: 12px;
  color: var(--color-footer-text);
  text-decoration: none;
  white-space: nowrap;
}

.user-logout:hover {
  text-decoration: underline;
  color: var(--color-subtitle);
}
