/* style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 40px 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

h2 {
    color: #2c3e50;
    text-align: center;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
    margin-top: 0;
}

h3 {
    color: #2c3e50;
    margin-top: 30px;
}

.nav-links {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.nav-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 10px;
}

.nav-links a:hover {
    text-decoration: underline;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
    color: #555;
}

input[type="text"], 
input[type="password"], 
input[type="datetime-local"], 
input[type="number"], 
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: #3498db;
    outline: none;
}

button {
    display: block;
    width: 100%;
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 12px;
    margin-top: 25px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

button:hover {
    background-color: #2980b9;
}

/* 訊息提示樣式 */
.msg-success {
    color: #27ae60;
    background: #eafaf1;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 15px;
    border: 1px solid #a3e4d7;
}

.msg-error {
    color: #c0392b;
    background: #fdedec;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 15px;
    border: 1px solid #f5b7b1;
}

/* 表格樣式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #3498db;
    color: white;
    font-weight: normal;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}