/* 統計画面用スタイル */
.stats-screen {
    text-align: left;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.stats-header h2 {
    color: #333;
    font-size: 1.8em;
}

/* タブナビゲーション */
.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    white-space: nowrap;
    min-width: 120px;
}

.tab-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.tab-btn.active {
    background: white;
    color: #2196f3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 検索バー */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.search-bar input {
    flex: 1;
    min-width: 200px;
}

.search-bar input:focus,
.search-bar select:focus {
    outline: none;
    border-color: #2196f3;
}

/* タブコンテンツ */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 統計サマリー */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.summary-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.summary-value {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* 単語リスト */
.word-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.word-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.word-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.word-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.word-text {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 4px;
}

.word-meta {
    font-size: 0.9em;
    color: #666;
}

.word-actions {
    display: flex;
    gap: 8px;
}

.word-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.review-btn {
    background: #ff9800;
    color: white;
}

.review-btn:hover {
    background: #f57c00;
}

.remove-btn {
    background: #f44336;
    color: white;
}

.remove-btn:hover {
    background: #d32f2f;
}

/* モンスター表示 */
.monster-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.monster-emoji-small {
    font-size: 1.5em;
}

.hp-display {
    display: flex;
    gap: 2px;
}

.hp-heart-small {
    font-size: 0.8em;
    color: #e53e3e;
}

.hp-heart-small.empty {
    color: #ccc;
}

/* プログレス表示 */
.overall-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.progress-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#4caf50 0deg, #4caf50 0deg, #e0e0e0 0deg);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.progress-circle::before {
    content: '';
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    position: absolute;
}

.progress-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    z-index: 1;
}

.category-progress {
    display: grid;
    gap: 15px;
}

.category-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-name {
    font-weight: bold;
    color: #333;
}

.category-stats {
    font-size: 0.9em;
    color: #666;
}

.category-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.category-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    transition: width 0.5s ease;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .stats-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-header h2 {
        font-size: 1.5em;
        text-align: center;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-btn {
        min-width: auto;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input {
        min-width: auto;
    }
    
    .stats-summary {
        grid-template-columns: 1fr;
    }
    
    .word-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .word-actions {
        justify-content: center;
    }
    
    .progress-circle {
        width: 120px;
        height: 120px;
    }
    
    .progress-circle::before {
        width: 90px;
        height: 90px;
    }
    
    .progress-value {
        font-size: 1.2em;
    }
}