/**
 * Path: Public/assets/css/base.css
 * 說明: 全站共用基本樣式（穩重灰綠系，非 bootstrap 風格）
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 背景 & 文字顏色 */
html,
body {
  margin: 0;
  padding: 0;
  background: #e5e7eb; /* 淺灰底，減少刺眼感 */
  color: #111827;
}

/* 確保所有文字元素字體一致（包含按鈕、輸入框） */
body,
button,
input,
select,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
}

a {
  color: #15803d;        /* 深綠 */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 主要按鈕：柔和綠、略方角 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit; /* ★ 讓按鈕字體和其他一樣 */
  cursor: pointer;

  background: #4ca771 !important;  /* 柔和主綠 */
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14);
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}

.btn-primary:hover {
  background: #429565 !important;  /* 稍微加深一點 */
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.28);
  transform: translateY(-1px);
}

.btn-primary:active {
  background: #397f56 !important;  /* 再深一階 */
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

/* 讓按鈕可以拉滿寬度用 */
.btn-block {
  width: 100%;
}

/* 共用表單樣式 */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.form-label {
  font-size: 13px;
  color: #4b5563;
}

.form-group input {
  padding: 9px 11px;
  border-radius: 6px;
  border: 1px solid #d4d4d8;
  font-size: 14px;
  background: #f9fafb;
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-group input:focus {
  outline: none;
  border-color: #15803d;
  box-shadow: 0 0 0 1px rgba(21, 128, 61, 0.2);
}
