:root {
    --primary-color: #2e7d32;
    --primary-light: #60ad5e;
    --primary-dark: #005005;
    --secondary-color: #f5f5f5;
    --text-color: #333333;
    --border-color: #dddddd;
    --white: #ffffff;
    --danger: #d32f2f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f4f0;
    color: var(--text-color);
    line-height: 1.6;
}

/* --- 基礎佈局組件 --- */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 登入頁專用佈局 */
.split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

header h1 { margin: 0; font-size: 1.8rem; }

/* 卡片與容器 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-header {
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-size: 1.4rem;
}

/* 表單與輸入框 */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: #555; }

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* 按鈕樣式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background-color: var(--primary-dark); color: white; }
.btn-primary:hover { background-color: var(--primary-color); }
.btn-danger { background-color: var(--danger); color: white; }

/* 表格樣式 */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
table th, table td { padding: 1rem; border: 1px solid var(--border-color); text-align: left; }
table th { background-color: var(--primary-light); color: white; font-weight: bold; }
table tr:nth-child(even) { background-color: #fafafa; }
table tr:hover { background-color: #f1f8e9; }

/* 警示框 */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.alert-danger { background-color: #ffebee; color: var(--danger); border: 1px solid #ffccbc; }
.alert-success { background-color: #e8f5e9; color: var(--primary-dark); border: 1px solid #c8e6c9; }

/* 響應式優化 */
@media (max-width: 768px) {
    .split-layout { flex-direction: column; }
    .container { margin: 1rem auto; }
}

/* --- (保持) 內部頁面用新佈局導覽列 (site-header) 樣式 --- */
/*
  由於 dashboard 等頁面現在使用 navbar.php 中的內嵌樣式，
  style.css 這裡只需要提供基礎的 .card, .container, .btn 等通用樣式即可。
*/