/* ===== Kritzel-Duell Admin Dashboard ===== */

/* Runden-Info */
.round-info {
    text-align: center;
    padding: 1rem;
}

.round-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.admin-word {
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.admin-word strong {
    color: var(--color-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.turn-player-info {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.turn-timer-display {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.turn-timer-display.timer-warning {
    color: var(--color-warning);
}

.turn-timer-display.timer-danger {
    color: var(--color-danger);
    animation: timer-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes timer-pulse {
    0% { opacity: 1; }
    100% { opacity: 0.5; }
}

.guessers-count {
    font-size: 0.95rem;
    color: var(--color-success);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Mini-Canvas */
.mini-canvas-container {
    text-align: center;
}

.mini-canvas-container canvas {
    background: #ffffff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    max-width: 100%;
    height: auto;
}

/* Guess-Log */
.guess-log {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 300px;
    overflow-y: auto;
}

.guess-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.guess-entry.correct {
    border-left: 3px solid var(--color-success);
    background: rgba(46, 204, 113, 0.08);
}

.guess-entry.close {
    border-left: 3px solid var(--color-warning);
}

.guess-player {
    font-weight: 600;
    min-width: 80px;
}

.guess-text {
    flex: 1;
}

.btn-accept-guess {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--color-success);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-success);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-accept-guess:hover {
    background: rgba(46, 204, 113, 0.15);
}

.accepted-badge {
    font-size: 0.75rem;
    color: var(--color-success);
    font-weight: 500;
    font-style: italic;
}

.btn-reject-guess {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-danger);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-reject-guess:hover {
    background: rgba(255, 71, 87, 0.15);
}

/* Spieler-Liste */
.player-rank {
    font-weight: 700;
    color: var(--text-muted);
    min-width: 2rem;
}

.player-score {
    font-weight: 700;
    color: var(--color-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.player-score-adjust {
    display: inline-flex;
    gap: 0.2rem;
    margin-left: 0.3rem;
}

.btn-life-adjust {
    width: 22px;
    height: 22px;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-danger);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-life-adjust:hover {
    background: rgba(255, 71, 87, 0.15);
}

.btn-life-adjust.btn-life-add {
    border-color: var(--color-success);
    color: var(--color-success);
}

.btn-life-adjust.btn-life-add:hover {
    background: rgba(46, 204, 113, 0.15);
}

/* Einstellungen */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.setting-row .form-label {
    min-width: 160px;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

.setting-input {
    width: 120px;
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
}

/* Begriffe (Word-Tags) */
.word-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-height: 250px;
    overflow-y: auto;
}

.word-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    background: rgba(123, 47, 247, 0.12);
    border: 1px solid rgba(123, 47, 247, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.word-tag.used {
    opacity: 0.4;
    text-decoration: line-through;
}

/* Runden-History */
.round-history {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 300px;
    overflow-y: auto;
}

.history-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.history-entry.has-drawing {
    align-items: flex-start;
}

.history-entry-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.history-mini-canvas {
    background: #ffffff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    transition: opacity var(--transition-fast);
}

.history-mini-canvas:hover {
    opacity: 0.8;
}

.history-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.history-modal {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 12px);
    padding: 1rem;
    max-width: 90vw;
    max-height: 90vh;
}

.history-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.history-large-canvas {
    background: #ffffff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    max-width: 100%;
    height: auto;
}

.history-round {
    font-weight: 700;
    color: var(--text-muted);
    min-width: 60px;
}

.history-drawer {
    font-weight: 600;
    flex: 1;
}

.history-word {
    color: var(--color-primary);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.history-guessers {
    font-size: 0.8rem;
    color: var(--color-success);
    font-weight: 600;
}
