:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --background-light: #ecf0f1;
    --text-color: #2c3e50;
}

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

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

.container {
    margin: 0 auto;
    padding: 20px;
}

.header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.main-content {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid var(--background-light);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid var(--background-light);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.form-content {
    display: none;
}

.form-content.active {
    display: block;
    margin-bottom: 20px;
}

input[type="text"], textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

input[type="text"]:focus, textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 5px rgba(52,152,219,0.3);
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: none;
}


.btn:hover {
    opacity: 0.9;
}

.table-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}


.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box input[type="text"],
.search-box button {
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 4px;
    line-height: 36px;
    margin-bottom: 0;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--background-light);
}

.table thead tr th:nth-child(1) {
    width: 40%;
}

.table thead tr th:nth-child(2) {
    width: 30%;
}

.table thead tr th:nth-child(3) {
    width: 30%;
    text-align: center;
}

.table tbody td:nth-child(3) {
    text-align: center;
}

.table td:nth-child(3) .btn {
    padding: 6px 10px;
    font-size: 12px;
    margin: 0 2px;
}

.table th {
    background-color: var(--primary-color);
    color: white;
}

.table tr:hover {
    background-color: rgba(52,152,219,0.05);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination a, .pagination span {
    margin: 0 5px;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
}

.pagination .current {
    background-color: var(--accent-color);
    color: white;
}        

.view-container {
    background-color: var(--background-light);
    padding: 15px;
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.icon {
    cursor: pointer;
    color: var(--accent-color); /* 使用統一的主題色 */
    margin-right: 10px; /* 圖標之間的間距 */
    font-size: 16px; /* 圖標大小 */
    transition: color 0.3s ease; /* 添加過渡效果 */
}

.icon:hover {
    color: var(--secondary-color); /* 懸停時變成次主題色 */
}

.header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between; /* 將內容推到兩邊 */
    align-items: center; /* 垂直置中 */
    max-width: 1200px; /* 限制內容寬度 */
    margin: 0 auto;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.navbar {
    text-align: right;
}

.nav-menu {
    list-style-type: none;
    display: flex;
    gap: 20px; /* 選單項目之間的間距 */
    margin: 0;
    padding: 0;
}

.nav-item {
    display: inline;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: var(--accent-color);
}

.nav-link.active {
    background-color: var(--accent-color);
}


.info-section {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-text {
    margin-bottom: 15px;
    white-space: pre-wrap; /* 保留換行 */
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
}

.download-button-container {
    text-align: right; /* 按鈕靠右對齊 */
}
