/* achievements_style.css */
body.achievements-page {
    background-color: #f4f7f6;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.page-header h1 { margin: 0; font-size: 1.5em; color: #333; }

.achievements-container { padding: 20px; }

.tasks-section, .achievements-section { margin-bottom: 30px; }
.tasks-section h2, .achievements-section h2 {
    color: #2c3e50;
    border-bottom: 3px solid #1abc9c;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.task-item, .achievement-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.task-item.completed, .achievement-item.completed {
    background-color: #e8f5e9; /* 完成後變淡綠色 */
}

.task-info, .achievement-info { flex-grow: 1; }
.task-info h3, .achievement-info h3 { margin: 0 0 5px 0; color: #34495e; }
.task-info p, .achievement-info p { margin: 0; color: #7f8c8d; font-size: 0.9em; }

.task-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 8px;
    margin-top: 8px;
    overflow: hidden;
}
.task-progress-fill {
    height: 100%;
    width: 0%; /* 由 JS 控制 */
    background-color: #2ecc71;
    border-radius: 8px;
    transition: width 0.3s;
}

.claim-btn {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.claim-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}