.speaking-stats-container {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 350px;
    max-height: 500px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    color: white;
    z-index: 1000;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.speaking-stats-header {
    padding: 15px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px 10px 0 0;
}

.speaking-stats-header h4 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.speaking-stats-header .btn {
    background: #007bff;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.speaking-stats-header .btn-secondary {
    background: #6c757d;
}

.speaking-stats-header .btn:hover {
    opacity: 0.8;
}

.speaking-stats-header .btn:hover {
    background: #0056b3;
}

.speaking-stats-content {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.speaking-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin-bottom: 5px;
}

.speaking-stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.speaking-stat-item.speaking {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
    border-radius: 5px;
    padding: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.speaking-stat-name {
    font-weight: bold;
    flex: 1;
    font-size: 14px;
}

.speaking-stat-details {
    display: flex;
    gap: 10px;
    font-size: 12px;
    flex-wrap: wrap;
}

.speaking-time {
    color: #4CAF50;
    font-weight: bold;
    background: rgba(76, 175, 80, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
}

.speaking-percentage {
    color: #FFC107;
    background: rgba(255, 193, 7, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
}

.speaking-sessions {
    color: #2196F3;
    background: rgba(33, 150, 243, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
}

.speaking-stats-toggle {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    right: auto !important;
    z-index: 1001 !important;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: none !important; /* 통계 버튼 숨김 처리 */
    align-items: center;
    justify-content: center;
}

.speaking-stats-toggle:hover {
    background: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.speaking-stats-toggle:active {
    transform: scale(0.95);
}

/* 스크롤바 스타일링 */
.speaking-stats-content::-webkit-scrollbar {
    width: 6px;
}

.speaking-stats-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.speaking-stats-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.speaking-stats-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .speaking-stats-container {
        width: 300px;
        left: 10px;
        top: 10px;
    }
    
    .speaking-stats-toggle {
        display: none !important; /* 통계 버튼 숨김 처리 */
        width: 45px;
        height: 45px;
        font-size: 18px;
        left: 10px !important;
        top: 10px !important;
        right: auto !important;
    }
    
    .speaking-stat-details {
        flex-direction: column;
        gap: 5px;
    }
} 