/* 历史记录页面样式表 - 黑色主题 */

/* 页面标题区域 */
.page-banner {
    background: linear-gradient(135deg, #4b2b82, #2a0845);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-banner p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 历史记录筛选区域 */
.history-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.history-filters h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #bb86fc;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #444;
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #2c2c2c;
}

.btn-outline.active {
    background-color: #bb86fc;
    border-color: #bb86fc;
    color: #121212;
}

/* 历史记录图表 */
.history-chart {
    height: 300px;
    margin-bottom: 2rem;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    padding: 1rem;
}

/* 历史记录表格 */
.history-table-container {
    margin-bottom: 2rem;
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.history-table th,
.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.history-table th {
    background-color: #2c2c2c;
    font-weight: 600;
    color: #e0e0e0;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover {
    background-color: #2a2a2a;
}

.no-records {
    text-align: center;
    color: #9e9e9e;
    font-style: italic;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

.btn-danger {
    background-color: #cf6679;
    color: #121212;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #df7a8c;
}

/* 无记录提示 */
.no-records-message {
    display: none;
    text-align: center;
    padding: 3rem;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.no-records-message p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #9e9e9e;
}

/* 清除历史记录按钮 */
.clear-history {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .history-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .history-table th,
    .history-table td {
        padding: 0.75rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* 五行属性颜色 */
.element-metal {
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    font-weight: bold;
}

.element-wood {
    color: #4CAF50;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
    font-weight: bold;
}

.element-water {
    color: #03A9F4;
    text-shadow: 0 0 5px rgba(3, 169, 244, 0.3);
    font-weight: bold;
}

.element-fire {
    color: #F44336;
    text-shadow: 0 0 5px rgba(244, 67, 54, 0.3);
    font-weight: bold;
}

.element-earth {
    color: #795548;
    text-shadow: 0 0 5px rgba(121, 85, 72, 0.3);
    font-weight: bold;
}

.element-emoji-small {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 3px;
}

.element-name-small {
    vertical-align: middle;
    font-weight: 600;
} 