/* Host Dashboard Styles */

#hostDashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: white;
}

#hostDashboard h1 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.host-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-warning {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.stat-card h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.stat-card span {
    font-size: 2rem;
    font-weight: bold;
    color: #4ecdc4;
}

.stat-card input {
    width: 100px;
    padding: 0.5rem;
    margin: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    font-size: 1.1rem;
}

.stat-card button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 0.5rem;
}

#questionSelection {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

#questionSelection h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#questionList {
    max-height: 400px;
    overflow-y: auto;
}

.question-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.question-item input[type="checkbox"] {
    margin-right: 1rem;
    transform: scale(1.2);
}

.question-item label {
    cursor: pointer;
    flex: 1;
}

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

/* Active Game Panel Styles */
.current-question-display {
    background: rgba(52, 152, 219, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.question-category {
    background: rgba(241, 196, 15, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    color: #ffd700;
}

.question-answer-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.question-answer {
    background: rgba(46, 204, 113, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    color: #2ecc71;
    font-size: 1.1rem;
}

/* Clue Display Panel */
.clue-display-panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.timer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.timer-display {
    font-size: 3rem;
    font-weight: bold;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    padding: 1rem 2rem;
    border-radius: 10px;
    min-width: 100px;
    text-align: center;
}

.clue-number {
    font-size: 1.2rem;
    color: #4ecdc4;
    font-weight: 600;
}

.clue-text-section {
    margin-bottom: 1.5rem;
}

.clue-text-section h4 {
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.clue-text {
    background: rgba(52, 152, 219, 0.2);
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    color: white;
    line-height: 1.6;
    min-height: 60px;
}

.all-clues-section h4 {
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.clues-list {
    padding-left: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.clues-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Control Actions */
.control-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-success {
    background: linear-gradient(45deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-success:hover,
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    margin-right: 0.5rem;
}

/* Player Activity Feed */
.player-activity-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.player-activity-section h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.activity-feed {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 5px;
}

.activity-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border-left: 3px solid #4ecdc4;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.activity-item.correct {
    border-left-color: #2ecc71;
}

.activity-item.incorrect {
    border-left-color: #e74c3c;
}

.no-activity {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-style: italic;
}

/* Live Stats Grid */
.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.live-stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Mini Leaderboard */
.mini-leaderboard-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.mini-leaderboard-section h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.mini-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border-left: 3px solid #4ecdc4;
}

.leaderboard-item.rank-1 {
    border-left-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.leaderboard-item.rank-2 {
    border-left-color: #c0c0c0;
}

.leaderboard-item.rank-3 {
    border-left-color: #cd7f32;
}

.leaderboard-rank {
    font-weight: bold;
    color: #ffd700;
    margin-right: 1rem;
}

.leaderboard-team {
    flex: 1;
    color: white;
}

.leaderboard-score {
    font-weight: bold;
    color: #4ecdc4;
}

/* Responsive Design */
@media (max-width: 768px) {
    #hostDashboard {
        padding: 1rem;
    }

    .host-controls {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary,
    .btn-warning,
    .btn-success,
    .btn-danger {
        width: 100%;
        max-width: 300px;
    }

    .game-stats {
        grid-template-columns: 1fr;
    }

    .control-actions {
        flex-direction: column;
    }

    .timer-display {
        font-size: 2rem;
        padding: 0.75rem 1.5rem;
    }

    .live-stats-grid {
        grid-template-columns: 1fr;
    }
}