/* Host Interface Styles */

/* Ping Indicator */
.live-quiz-host-wrapper .ping-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    z-index: 100;
}

.live-quiz-host-wrapper .ping-indicator .ping-value {
    font-weight: 600;
}

@media (max-width: 768px) {
    .live-quiz-host-wrapper .ping-indicator {
        top: 8px;
        right: 8px;
        font-size: 12px;
    }
}

.live-quiz-host-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
    position: relative;
}

.live-quiz-host-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.live-quiz-host-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.host-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    color: white;
}

.host-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.host-header .question-count {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Host Screens */
.host-screen {
    display: none;
}

.host-screen.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lobby Screen */
.lobby-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1024px) {
    .lobby-layout {
        grid-template-columns: 1fr;
    }
}

/* Settings Panel */
.lobby-settings-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.lobby-settings-panel h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section h4 {
    font-size: 15px;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover, .checkbox-option:hover {
    border-color: #667eea;
    background: #f5f7fa;
}

.radio-option input, .checkbox-option input {
    margin-right: 10px;
}

.quiz-search-container {
    position: relative;
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.quiz-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quiz-results-list {
    padding: 5px;
}

.quiz-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: background 0.2s;
}

.quiz-result-item:hover {
    background: #f5f7fa;
}

.quiz-result-item.selected {
    background: #e0e7ff;
}

.btn-select-quiz {
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 4px;
    cursor: pointer;
}

.btn-select-quiz:hover {
    background: #667eea;
    color: white;
}

.selected-quizzes-list {
    min-height: 50px;
}

.no-selection {
    color: #999;
    font-size: 13px;
    font-style: italic;
    margin: 0;
}

.selected-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #e0e7ff;
    border-radius: 6px;
    font-size: 13px;
}

.btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

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

.random-count-input {
    margin-top: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
}

.range-input {
    margin-top: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
}

.range-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.range-input-group:last-child {
    margin-bottom: 0;
}

.range-input-group label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    min-width: 70px;
}

.number-input {
    width: 100px;
    padding: 6px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

.hint {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
    margin-top: 8px;
    display: block;
}

.settings-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #e0f2fe;
    border-radius: 8px;
    font-size: 13px;
    color: #0369a1;
    margin-top: 20px;
}

.settings-info .info-icon {
    font-size: 16px;
}

.settings-info .info-text {
    flex: 1;
}

.btn-block {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: #667eea;
    color: white;
}

.btn-secondary:hover {
    background: #5568d3;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Lobby Info Panel */
.lobby-info-panel {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.lobby-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.pin-display {
    margin-bottom: 40px;
}

.pin-display h2 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 20px;
}

.pin-code {
    font-size: 72px;
    font-weight: 900;
    color: #667eea;
    letter-spacing: 12px;
    font-family: 'Courier New', monospace;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.pin-instruction {
    color: #666;
    font-size: 16px;
    margin-top: 10px;
}

.waiting-status {
    margin: 40px 0;
}

.waiting-status .spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.waiting-status h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.player-count {
    font-size: 20px;
    color: #667eea;
    font-weight: 600;
}

.player-count span {
    font-size: 32px;
    font-weight: 900;
}

/* Players List */
.players-list-container {
    margin: 40px 0;
    text-align: left;
}

.players-list-container h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.players-list {
    max-height: 300px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.players-list .no-players {
    color: #999;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* Players Grid Layout */
.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    padding: 10px;
}

.player-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.player-item .player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.player-item .player-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-align: center;
    word-break: break-word;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-item .player-name .name-text {
    font-weight: 600;
}

.player-item .player-name .username-text {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

/* New shared player-waiting-item styles (same as player.css) */
.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    padding: 10px;
}

.player-waiting-item {
    background: white;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

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

.player-waiting-item.current-user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    border: 2px solid #667eea;
}

.player-waiting-item.current-user .player-waiting-avatar {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.player-waiting-item.current-user .player-waiting-name {
    color: white;
}

.player-waiting-item.current-user .player-waiting-name .name-text {
    color: white;
    font-weight: 600;
}

.player-waiting-item.current-user .player-waiting-name .username-text {
    color: rgba(255, 255, 255, 0.9);
}

.player-waiting-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 8px;
}

.player-waiting-name {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.player-waiting-name .name-text {
    font-weight: 500;
}

.player-waiting-name .username-text {
    font-size: 11px;
    color: #666;
    font-weight: 400;
}

/* Clickable players (for host) */
.player-waiting-item.clickable {
    cursor: pointer;
}

.player-waiting-item.clickable:hover {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.player-waiting-item.clickable.current-user:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.95;
}

.player-waiting-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 18px;
    color: #999;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
}

.player-waiting-item.clickable:hover .player-waiting-indicator {
    opacity: 1;
}

.player-waiting-item.current-user .player-waiting-indicator {
    color: white;
}

/* Player Action Modal */
.player-action-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-action-modal.active {
    opacity: 1;
}

.player-action-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.player-action-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.player-action-modal.active .modal-content {
    transform: scale(1);
}

.player-action-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-action-modal .modal-close:hover {
    background: #e9ecef;
    color: #333;
    transform: rotate(90deg);
}

.player-action-modal .modal-player-info {
    text-align: center;
    margin-bottom: 30px;
}

.player-action-modal .modal-player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 32px;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.player-action-modal .modal-player-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.player-action-modal .modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-action-modal .modal-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.player-action-modal .modal-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.player-action-modal .modal-action-btn .action-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.player-action-modal .modal-action-btn .action-text {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.player-action-modal .modal-action-btn .action-desc {
    font-size: 13px;
    color: #6c757d;
    display: block;
}

.player-action-modal .modal-action-btn.btn-kick {
    border-color: #dc3545;
}

.player-action-modal .modal-action-btn.btn-kick:hover {
    background: #fff5f5;
    border-color: #dc3545;
}

.player-action-modal .modal-action-btn.btn-kick .action-text {
    color: #dc3545;
}

.player-action-modal .modal-action-btn.btn-ban-session {
    border-color: #fd7e14;
}

.player-action-modal .modal-action-btn.btn-ban-session:hover {
    background: #fff9f5;
    border-color: #fd7e14;
}

.player-action-modal .modal-action-btn.btn-ban-session .action-text {
    color: #fd7e14;
}

.player-action-modal .modal-action-btn.btn-ban-permanent {
    border-color: #6c757d;
}

.player-action-modal .modal-action-btn.btn-ban-permanent:hover {
    background: #f8f9fa;
    border-color: #6c757d;
}

.player-action-modal .modal-action-btn.btn-ban-permanent .action-text {
    color: #6c757d;
}

/* Question Control Screen */
.question-control-card,
.results-card,
.final-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.question-header {
    margin-bottom: 30px;
}

.question-content {
    margin-bottom: 30px;
}

/* Question text - shared style with player */
.question-text {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #2c3e50;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .question-text {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

.question-number {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.timer-container {
    margin-top: 20px;
}

.timer-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #ffc107, #dc3545);
    transition: width 0.1s linear;
}

.timer-text {
    text-align: center;
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.answer-count-display {
    text-align: center;
    margin-top: 8px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.answer-count-text {
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Choices Preview */
/* Shared choices container styles (same for both host and player) */
.choices-preview,
.choices-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 30px 0;
}

/* Shared choice button styles (same as player.css) */
.choice-button {
    background: #f8f9fa;
    border: 3px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
    margin-bottom: 15px;
    display: block;
}

.choice-button:hover:not(:disabled) {
    background: #e8f4f8;
    color: #2c3e50;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.choice-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.choice-button.selected {
    background: #3498db;
    color: #ffffff;
    border-color: #2980b9;
}

.choice-button.correct {
    background: #2ecc71;
    color: #ffffff;
    border-color: #27ae60;
}

.choice-button.incorrect {
    background: #e74c3c;
    color: #ffffff;
    border-color: #c0392b;
}

.choice-button.correct-answer {
    background: #d5f4e6;
    color: #27ae60;
    border-color: #2ecc71;
    border-width: 4px;
    font-weight: 700;
}

/* Legacy class for backward compatibility */
.choice-preview-item {
    padding: 20px;
    border-radius: 12px;
    border: 3px solid #e0e0e0;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.choice-preview-item.correct {
    background: #d4edda;
    border-color: #28a745;
}

/* Answered Players Section */
.answered-players-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.answered-players-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.answered-players-section .answer-count-display {
    text-align: center;
    margin: 15px 0 20px 0;
    padding: 10px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.answered-players-section .answer-count-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

.answered-players-section .answer-count-text {
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.answered-players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    min-height: 50px;
}

.answered-player-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    animation: answerPulse 0.5s ease-out;
}

@keyframes answerPulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.answered-player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.answered-player-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: center;
    word-break: break-word;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.answered-player-name .name-text {
    font-weight: 600;
}

.answered-player-name .username-text {
    font-size: 10px;
    color: #666;
    font-weight: 400;
}

/* Highlight correct answers */
.answered-player-item.correct-answer {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    border: 2px solid #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transform: scale(1.05);
}

.answered-player-item.correct-answer .answered-player-avatar {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.5);
    transform: scale(1.1);
}

.answered-player-item.correct-answer .answered-player-name {
    color: #155724;
    font-weight: 700;
}

.answered-player-item.correct-answer .answered-player-name .name-text {
    color: #155724;
    font-weight: 700;
}

/* Dim incorrect answers */
.answered-player-item.incorrect-answer {
    opacity: 0.4;
    filter: grayscale(0.6);
    background: rgba(231, 76, 60, 0.05);
    border: 2px solid rgba(231, 76, 60, 0.3);
}

.answered-player-item.incorrect-answer .answered-player-avatar {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.answered-player-item.incorrect-answer .answered-player-name {
    color: #7f8c8d;
}

.answered-player-item.incorrect-answer .answered-player-name .name-text {
    color: #7f8c8d;
}

/* Answer Stats */
.answer-stats {
    margin: 30px 0;
}

.answer-stats h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.stats-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    min-width: 80px;
    font-weight: 600;
    color: #666;
}

.stat-progress {
    flex: 1;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.stat-fill.correct {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.stat-count {
    color: white;
    font-weight: 700;
    font-size: 14px;
}

/* Leaderboard Overlay (shared styles with player) */
.leaderboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hidden state (shared with player) */
.leaderboard-overlay-hidden {
    display: none !important;
}

.leaderboard-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.leaderboard-container h2 {
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 32px;
    color: #333;
}

.animated-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.animated-leaderboard .leaderboard-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.animated-leaderboard .leaderboard-item.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    transform: scale(1.05);
}

.animated-leaderboard .leaderboard-item.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
}

.animated-leaderboard .leaderboard-item.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e5a76c 100%);
}

.animated-leaderboard .rank {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    margin-right: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.animated-leaderboard .player-name {
    flex: 1;
    font-weight: 700;
    font-size: 20px;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.animated-leaderboard .player-name .name-text {
    font-weight: 700;
}

.animated-leaderboard .player-name .username-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.animated-leaderboard .score-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.animated-leaderboard .current-score {
    font-weight: 900;
    font-size: 28px;
    color: #667eea;
}

.animated-leaderboard .score-gain {
    font-weight: 700;
    font-size: 20px;
    color: #28a745;
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Old Leaderboard Styles */
.leaderboard {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leaderboard-item.top-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.leaderboard-item.top-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
}

.leaderboard-item.top-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e5a76c 100%);
}

.leaderboard-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    margin-right: 15px;
}

.leaderboard-name {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.leaderboard-name .name-text {
    font-weight: 600;
}

.leaderboard-name .username-text {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.leaderboard-score {
    font-weight: 900;
    font-size: 18px;
    color: #667eea;
}

/* Buttons */
.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-large {
    width: 100%;
    padding: 20px;
    font-size: 20px;
    margin-top: 20px;
}

/* Connection Status */
.connection-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28a745;
}

.status-icon.disconnected {
    background: #dc3545;
}

.status-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Host Notification */
.host-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.host-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.host-notification.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.host-notification.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.host-notification.warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Correct Answer Display */
.correct-answer-display {
    margin: 30px 0;
    padding: 20px;
    background: #d4edda;
    border-radius: 12px;
    border-left: 5px solid #28a745;
}

.correct-answer-display h3 {
    color: #155724;
    margin-bottom: 10px;
}

.correct-answer {
    font-size: 20px;
    font-weight: 700;
    color: #155724;
}

/* Final Actions */
.final-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.final-actions .btn {
    flex: 1;
}

/* Host Login Form */
.live-quiz-host-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.host-login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.host-login-card h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
    text-align: center;
}

.host-login-card .subtitle {
    color: #666;
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 14px;
}

.host-form .form-group {
    margin-bottom: 20px;
}

.host-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.host-form .room-code-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 8px;
    transition: all 0.3s ease;
}

.host-form .room-code-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.host-form .btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.host-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.host-form .btn:active {
    transform: translateY(0);
}

.host-form .error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

.host-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.host-info p {
    margin: 0;
    color: #666;
    font-size: 13px;
    text-align: center;
    line-height: 1.6;
}

/* Countdown Screen */
.countdown-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.countdown-number {
    font-size: 120px;
    font-weight: 700;
    color: #667eea;
    animation: countdown-pulse 1s ease-in-out;
}

.total-questions-display {
    font-size: 24px;
    color: #666;
    margin-top: 30px;
    font-weight: 500;
}

@keyframes countdown-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Final Question Announcement */
.final-announcement-title {
    font-size: 36px;
    color: #f39c12;
    margin-bottom: 20px;
    font-weight: 700;
    animation: announcement-shake 0.5s ease-in-out;
}

.final-announcement-text {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.final-announcement-points {
    font-size: 80px;
    font-weight: 700;
    color: #e74c3c;
    animation: points-bounce 0.8s ease-in-out infinite;
}

@keyframes announcement-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes points-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Top 10 Container */
.top10-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.top10-title {
    font-size: 42px;
    color: #f39c12;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

/* Top 3 Podium */
.top3-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 40px auto;
    min-height: 300px;
    max-width: 600px;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: podium-rise 0.8s ease-out;
}

.podium-place.first {
    order: 2;
    animation-delay: 0.2s;
}

.podium-place.second {
    order: 1;
    animation-delay: 0.4s;
}

.podium-place.third {
    order: 3;
    animation-delay: 0.6s;
}

@keyframes podium-rise {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.podium-medal {
    font-size: 60px;
    margin-bottom: 10px;
}

.podium-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.podium-score {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.podium-stand {
    width: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.podium-place.first .podium-stand {
    height: 200px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.podium-place.second .podium-stand {
    height: 150px;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.podium-place.third .podium-stand {
    height: 120px;
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
}

/* Top 10 List */
.top10-list {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.top10-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    animation: slide-in 0.5s ease-out;
}

.top10-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.top10-item.top-1 {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    font-weight: 700;
    font-size: 18px;
}

.top10-item.top-2 {
    background: linear-gradient(135deg, #e8e8e8 0%, #d5d5d5 100%);
    border: 2px solid #95a5a6;
    font-weight: 600;
    font-size: 17px;
}

.top10-item.top-3 {
    background: linear-gradient(135deg, #ffe0cc 0%, #ffd4b3 100%);
    border: 2px solid #cd7f32;
    font-weight: 600;
    font-size: 16px;
}

@keyframes slide-in {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.top10-rank {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    min-width: 50px;
    text-align: center;
}

.top10-item.top-1 .top10-rank {
    color: #f39c12;
}

.top10-item.top-2 .top10-rank {
    color: #95a5a6;
}

.top10-item.top-3 .top10-rank {
    color: #cd7f32;
}

.top10-name {
    flex: 1;
    font-size: 18px;
    color: #333;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.top10-score {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    min-width: 100px;
    text-align: right;
}

.top10-item.top-1 .top10-score,
.top10-item.top-2 .top10-score,
.top10-item.top-3 .top10-score {
    color: inherit;
}

/* Responsive */
@media (max-width: 768px) {
    .pin-code {
        font-size: 48px;
        letter-spacing: 8px;
    }
    
    .choices-preview {
        grid-template-columns: 1fr;
    }
    
    .final-actions {
        flex-direction: column;
    }
    
    .host-login-card {
        padding: 30px 20px;
    }
    
    .host-form .room-code-input {
        font-size: 20px;
        letter-spacing: 4px;
    }
    
    .countdown-number {
        font-size: 80px;
    }
    
    .top3-podium {
        flex-direction: column;
        align-items: center;
        min-height: auto;
    }
    
    .podium-place {
        order: 0 !important;
    }
}

/* ========================================
   SUMMARY MODAL STYLES
   ======================================== */

.summary-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.summary-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.summary-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.summary-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.summary-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.summary-modal-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex: 1;
}

.summary-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e0e7ff;
}

.summary-filter label {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.summary-sort-select {
    flex: 1;
    max-width: 300px;
    padding: 10px 15px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.summary-sort-select:hover {
    border-color: #667eea;
}

.summary-sort-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.summary-questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-question-item {
    background: #ffffff;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.summary-question-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.summary-question-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.summary-question-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.summary-question-text {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
}

.summary-question-answer {
    margin-bottom: 15px;
    padding: 12px;
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    border-radius: 6px;
}

.summary-correct-answer {
    font-size: 15px;
    color: #065f46;
    line-height: 1.5;
}

.summary-correct-answer strong {
    font-weight: 700;
}

.summary-choices {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-choice,
.summary-choice-correct {
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #e0e7ff;
    background: #ffffff;
    transition: all 0.2s ease;
}

.summary-choice:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-choice-correct {
    border-color: #10b981;
    background: #f0fdf4;
}

.summary-choice-correct:hover {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.summary-choice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.summary-choice-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
}

.summary-choice-correct .summary-choice-icon {
    background: #10b981;
    color: #ffffff;
}

.summary-choice-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.5;
}

.summary-choice-correct .summary-choice-text {
    color: #065f46;
    font-weight: 600;
}

.summary-choice-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-choice-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.summary-choice-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.summary-choice-fill.correct {
    background: linear-gradient(90deg, #10b981, #059669);
}

.summary-choice-fill.incorrect {
    background: linear-gradient(90deg, #94a3b8, #64748b);
}

.summary-choice-count {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    min-width: 100px;
    text-align: right;
}

.summary-choice-correct .summary-choice-count {
    color: #059669;
}

.summary-question-stats {
    margin-top: 15px;
}

.summary-stats-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.summary-stats-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.summary-stats-fill.low {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.summary-stats-fill.medium {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.summary-stats-fill.high {
    background: linear-gradient(90deg, #10b981, #059669);
}

.summary-stats-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.summary-correct-count {
    color: #64748b;
}

.summary-percentage {
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
}

.summary-percentage.low {
    background: #fee2e2;
    color: #dc2626;
}

.summary-percentage.medium {
    background: #fef3c7;
    color: #d97706;
}

.summary-percentage.high {
    background: #d1fae5;
    color: #059669;
}

.summary-loading,
.summary-empty,
.summary-error {
    text-align: center;
    padding: 60px 20px;
}

.summary-loading p,
.summary-empty p,
.summary-error p {
    font-size: 18px;
    color: #64748b;
    margin: 0;
}

.summary-error p {
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .summary-modal {
        padding: 10px;
    }
    
    .summary-modal-content {
        max-height: 95vh;
    }
    
    .summary-modal-header {
        padding: 20px;
    }
    
    .summary-modal-header h2 {
        font-size: 22px;
    }
    
    .summary-modal-body {
        padding: 20px;
    }
    
    .summary-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .summary-sort-select {
        max-width: none;
    }
    
    .summary-question-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-question-number {
        width: fit-content;
    }
    
    .summary-question-text {
        font-size: 16px;
    }
    
    .summary-choice-header {
        flex-wrap: wrap;
    }
    
    .summary-choice-stats {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .summary-choice-count {
        text-align: left;
        min-width: auto;
    }
}
