/* ==========================================================================
   快乐农场 - 数据面板与任务系统 (panels.css)
   ========================================================================== */

/* ==========================================================================
   1. 选项卡导航 (Tab Navigation)
   ========================================================================== */

/* 选项卡容器与按钮基础样式 */
.stats-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 15px;
}

.stats-tab-btn, .quest-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

/* 选项卡激活状态 */
.stats-tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: bold;
}

.quest-tab-btn.active {
    color: #ff9800;
    border-bottom-color: #ff9800;
    font-weight: bold;
}

/* ==========================================================================
   2. 统计数据面板 (Statistics UI)
   ========================================================================== */

/* 统计卡片与内部行 */
.stats-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.stats-row .val {
    font-weight: bold;
    font-family: monospace;
    font-size: 1.1em;
}

/* 统计数值特殊颜色高亮 */
.stats-row .val.success { color: #28a745; }
.stats-row .val.error { color: #dc3545; }
.stats-row .val.highlight { color: #6f42c1; }

/* 统计表格样式 */
.stats-table-wrapper {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.stats-table th {
    background-color: #f1f1f1;
    text-align: left;
    padding: 8px 12px;
    color: #555;
}

.stats-table td {
    padding: 8px 12px;
    border-top: 1px solid #eee;
}

.stats-table tr:hover td {
    background-color: #f9f9f9;
}

/* ==========================================================================
   3. 任务系统面板 (Quest Cards UI)
   ========================================================================== */

/* 独立任务卡片容器 */
.quest-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 任务头部与底部布局 */
.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.05em;
}

.quest-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.quest-reward {
    color: #d35400;
    font-weight: bold;
}

/* 任务进度条动画与样式 */
.quest-progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 5px 0;
}

.quest-progress-fill {
    height: 100%;
    background-color: #28a745;
    width: 0%;
    transition: width 0.3s;
}

/* 任务操作按钮状态机 */
.quest-btn {
    padding: 5px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-accept { background-color: #007bff; color: white; }
.btn-claim { background-color: #ffc107; color: #333; animation: pulse 1s infinite; }
.btn-completed { background-color: #ccc; color: #fff; cursor: default; }
.btn-locked { background-color: #eee; color: #999; cursor: not-allowed; }

/* ==========================================================================
   4. 操作日志面板 (Activity Logs)
   ========================================================================== */

/* 日志条目基础排版 */
.log-entry {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
}

.log-time {
    color: #999;
    font-family: monospace;
    margin-right: 8px;
}