/* Moderator page specific styles */

body {
    padding: 8px;
    min-height: 100vh;
}

@media (min-width: 480px) {
    body {
        padding: 15px;
    }
}

@media (min-width: 768px) {
    body {
        padding: 20px;
    }
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    animation: slideIn 0.5s ease-out;
}

@media (min-width: 480px) {
    .container {
        padding: 15px;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 20px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
        padding: 40px;
    }
}

h1 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    h1 {
        margin-bottom: 35px;
        font-size: 36px;
        letter-spacing: 2px;
    }
}

@media (min-width: 1200px) {
    h1 {
        font-size: 48px;
    }
}

/* Jeopardy Board */
.jeopardy-board {
    margin-bottom: 35px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.4),
        inset 0 -3px 15px rgba(0,0,0,0.3);
    border: 3px solid #4ECDC4;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.jeopardy-grid {
    display: grid;
    grid-template-columns: repeat(14, minmax(80px, 1fr));
    gap: 8px;
    min-width: max-content;
}

.topic-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    font-weight: 800;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255,255,255,0.3);
    white-space: nowrap;
}

.question-cell {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    padding: 15px 8px;
    border-radius: 8px;
    text-align: center;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
    border: 2px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.question-cell::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.question-cell:hover::before {
    width: 300px;
    height: 300px;
}

.question-cell:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.6);
}

.question-cell:active {
    transform: translateY(-1px) scale(1.01);
}

.question-cell.used {
    background: linear-gradient(135deg, #555, #777);
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.question-cell.used:hover {
    transform: none;
}

.question-cell.selected {
    background: linear-gradient(135deg, #FFA07A 0%, #FF7F50 100%);
    animation: glow 1.5s ease-in-out infinite;
}

/* Mobile Topic Selector (hidden on desktop) */
.mobile-selector {
    display: none;
    margin-bottom: 20px;
}

.topic-select, .level-select {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: 3px solid #4ECDC4;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    background: white;
    color: #333;
}

.mobile-level-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 15px;
}

@media (min-width: 400px) {
    .mobile-level-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
}

.mobile-level-btn {
    padding: 12px 6px;
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (min-width: 400px) {
    .mobile-level-btn {
        padding: 15px 10px;
        font-size: 16px;
        border-radius: 10px;
    }
}

.mobile-level-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.5);
}

.mobile-level-btn.used {
    background: linear-gradient(135deg, #555, #777);
    opacity: 0.4;
    cursor: not-allowed;
}

/* Responsive: Mobile layout */
@media (max-width: 1024px) {
    .jeopardy-board {
        display: none;
    }
    
    .mobile-selector {
        display: block;
        background: linear-gradient(145deg, #1a1a2e, #16213e);
        padding: 15px;
        border-radius: 15px;
        border: 2px solid #4ECDC4;
        margin-bottom: 20px;
    }
    
    .mobile-selector h3 {
        color: white;
        margin-bottom: 12px;
        font-size: 16px;
        text-align: center;
    }
    
    .topic-select {
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
    }
}

/* Tablet: Smaller grid */
@media (min-width: 1025px) and (max-width: 1400px) {
    .jeopardy-grid {
        grid-template-columns: repeat(14, minmax(70px, 1fr));
        gap: 6px;
    }
    
    .topic-header {
        padding: 10px 6px;
        font-size: 11px;
    }
    
    .question-cell {
        padding: 12px 6px;
        font-size: 14px;
    }
}

/* Large desktop */
@media (min-width: 1600px) {
    .jeopardy-grid {
        grid-template-columns: repeat(14, 1fr);
        gap: 12px;
    }
    
    .topic-header {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .question-cell {
        padding: 20px 10px;
        font-size: 22px;
    }
}

/* Controls */
.controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .controls {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        margin-bottom: 35px;
    }
    
    .controls .control-group {
        grid-column: 1 / -1;
    }
}

.reveal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 480px) {
    .reveal-buttons {
        flex-direction: row;
        gap: 12px;
    }
}

.reveal-buttons button {
    flex: 1;
}

button {
    width: 100%;
    margin-bottom: 12px;
}

/* Question Preview */
.question-preview {
    background: linear-gradient(145deg, #fff, #f0f0f0);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    border: 3px solid #4ECDC4;
    box-shadow: 
        0 10px 30px rgba(78, 205, 196, 0.3),
        inset 0 -3px 10px rgba(0,0,0,0.05);
}

.question-preview h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

.question-text-preview {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 
        inset 3px 3px 8px rgba(0,0,0,0.1),
        inset -3px -3px 8px rgba(255,255,255,0.9);
    border-left: 5px solid #4ECDC4;
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 600px) {
    .answers-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* Buzzer Config */
.buzzer-config {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin: 8px 0;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 10px;
    border-left: 4px solid #4ECDC4;
}

.buzzer-config input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin: 0 10px;
    transition: all 0.3s;
}

.buzzer-config input:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.buzzer-config button {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: auto;
    margin-bottom: 0;
}

.btn-save-name {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
    color: white;
}

.btn-save-name:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(86, 171, 47, 0.4);
}

.btn-remove-buzzer {
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
    color: white;
    margin-left: 5px;
}

.btn-remove-buzzer:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Status */
.status {
    padding: 20px;
    background: linear-gradient(135deg, #a8e063, #56ab2f);
    border: 3px solid #4a9428;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
    color: white;
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(86, 171, 47, 0.4);
    letter-spacing: 1px;
}

/* Question Type Selector */
.question-type-selector {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 
        8px 8px 20px rgba(0,0,0,0.1),
        -5px -5px 15px rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.5);
}

.question-type-selector h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.type-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 500px) {
    .type-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (min-width: 800px) {
    .type-buttons {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
}

.type-btn {
    padding: 12px 8px;
    background: linear-gradient(145deg, #fff, #f0f0f0);
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

@media (min-width: 480px) {
    .type-btn {
        padding: 15px 12px;
        font-size: 14px;
    }
}

.type-btn:hover {
    border-color: #4ECDC4;
    color: #4ECDC4;
    transform: translateY(-2px);
}

.type-btn.active {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    border-color: #3db8af;
    color: white;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

/* Question Section Panels */
.question-section-panel {
    margin-bottom: 20px;
}

/* Random Question Panel */
.random-question-panel {
    margin-top: 15px;
    text-align: center;
}

.btn-large {
    padding: 18px 30px !important;
    font-size: 16px !important;
}

@media (min-width: 480px) {
    .btn-large {
        padding: 20px 40px !important;
        font-size: 18px !important;
    }
}

/* Dynamic Question Controls */
.dynamic-question-controls {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    padding: 20px;
    border-radius: 20px;
    border: 3px solid #4ECDC4;
    text-align: center;
}

.dynamic-question-controls h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    text-transform: uppercase;
}

.level-selector,
.category-option-selector {
    margin-bottom: 20px;
}

.level-selector label,
.category-option-selector label {
    display: block;
    color: white;
    margin-bottom: 8px;
    margin-top: 12px;
    font-weight: 600;
}

.level-selector label:first-child,
.category-option-selector label:first-child {
    margin-top: 0;
}

.level-selector select,
.category-option-selector select {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 2px solid #4ECDC4;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: white;
}

.dynamic-question-controls .btn {
    margin-top: 20px;
}

/* Item Details (collapsible description) */
.item-details {
    background: linear-gradient(145deg, #f0f4f8, #e8ecf0);
    border: 2px solid #4ECDC4;
    border-radius: 12px;
    margin: 15px 0;
    overflow: hidden;
}

.item-details summary {
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 700;
    color: #333;
    background: linear-gradient(145deg, #e8f4f3, #d0e8e5);
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-details summary:hover {
    background: linear-gradient(145deg, #d0e8e5, #c0dcd9);
}

.item-details summary::-webkit-details-marker {
    display: none;
}

.item-details summary::before {
    content: '▶';
    font-size: 10px;
    transition: transform 0.2s;
}

.item-details[open] summary::before {
    transform: rotate(90deg);
}

.item-description-content {
    padding: 15px;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
    border-top: 1px solid #cde8e5;
    background: white;
}

.item-link {
    display: block;
    padding: 10px 15px;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s ease;
}

.item-link:hover {
    background: linear-gradient(135deg, #44A08D, #3d9080);
}

/* QR Code Button */
.qr-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-qr-code {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qr-code:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.6);
}

.btn-qr-code:active {
    transform: translateY(-1px) scale(1.05);
}

/* QR Code Modal */
.qr-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.qr-modal-content {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.3),
        8px 8px 20px rgba(0,0,0,0.1),
        -5px -5px 15px rgba(255,255,255,0.9);
    animation: modalSlideIn 0.3s ease-out;
    border: 2px solid rgba(255,255,255,0.5);
}

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

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
}

.qr-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

.qr-modal-close {
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.qr-modal-close:hover {
    color: #4ECDC4;
}

.qr-modal-body {
    padding: 25px;
    text-align: center;
}

.qr-modal-body p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.qr-code-display-modal {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border: 3px solid #4ECDC4;
    box-shadow:
        0 10px 30px rgba(78, 205, 196, 0.3),
        inset 0 -3px 10px rgba(0,0,0,0.05);
}

.qr-code-display-modal img {
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.qr-code-loading,
.qr-code-error {
    padding: 20px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.qr-code-error {
    color: #dc3545;
    font-weight: 600;
}

.qr-code-url-modal {
    margin-top: 20px;
}

.url-display {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #4ECDC4;
    border-radius: 10px;
    padding: 12px;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
}

.url-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #333;
    word-break: break-all;
    user-select: text;
}

.url-text:hover {
    color: #4ECDC4;
}

.btn-copy-url {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-copy-url:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.btn-copy-url:active {
    transform: translateY(0);
}

/* Buzzer Queue with Approve/Discard Buttons */
.buzzer-item {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #4ECDC4;
    border-radius: 12px;
    margin: 10px 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
}

.buzzer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

.buzzer-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.buzzer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.buzzer-info span:first-child {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.price-guess-info {
    font-size: 12px !important;
    color: #4ECDC4 !important;
    font-weight: 600 !important;
    margin-top: 5px !important;
}

.price-display {
    background: linear-gradient(145deg, #e8f4f3, #d0e8e5);
    border: 2px solid #4ECDC4;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 15px;
}

.price-label {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.price-value {
    font-size: 24px;
    font-weight: 900;
    color: #4ECDC4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.buzzer-timestamp {
    font-size: 12px;
    color: #666;
    font-family: 'Courier New', monospace;
}

.buzzer-actions {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.btn-approve-buzzer,
.btn-discard-buzzer {
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-approve-buzzer {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-approve-buzzer:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-discard-buzzer {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.btn-discard-buzzer:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-approve-buzzer:disabled,
.btn-discard-buzzer:disabled {
    cursor: not-allowed;
    transform: none;
}

/* Approved state styling */
.buzzer-item.approved {
    border-color: #28a745;
    background: linear-gradient(145deg, #d4edda, #c3e6cb);
}

.buzzer-item.approved .buzzer-info span:first-child {
    color: #155724;
}

/* Discarded state styling */
.buzzer-item.discarded {
    border-color: #dc3545;
    background: linear-gradient(145deg, #f8d7da, #f5c6cb);
    opacity: 0.8;
}

.buzzer-item.discarded .buzzer-info span:first-child {
    color: #721c24;
    text-decoration: line-through;
}

/* Responsive adjustments for buzzer queue */
@media (max-width: 768px) {
    .buzzer-item-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .buzzer-actions {
        justify-content: center;
        margin-left: 0;
    }
    
    .buzzer-info {
        text-align: center;
    }
    
    .btn-approve-buzzer,
    .btn-discard-buzzer {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Round Management Section */
.round-management-section {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow:
        8px 8px 20px rgba(0,0,0,0.1),
        -5px -5px 15px rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.5);
}

.round-info {
    text-align: center;
    margin-bottom: 20px;
}

.round-info h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

.round-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#currentRoundName {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.round-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.round-status-badge.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.round-status-badge.inactive {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: white;
}

.round-status-badge.completed {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.round-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.round-name-input {
    text-align: center;
}

#roundNameInput {
    width: 100%;
    max-width: 300px;
    padding: 12px 15px;
    border: 2px solid #4ECDC4;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    background: white;
}

.round-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.round-buttons .btn {
    flex: 1;
    min-width: 120px;
    max-width: 150px;
}

.scores-display {
    margin-bottom: 20px;
}

.scores-display h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.scores-list {
    background: white;
    border-radius: 10px;
    padding: 15px;
    border: 2px solid #4ECDC4;
    min-height: 60px;
}

.no-scores {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 10px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 5px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border-left: 4px solid #4ECDC4;
}

.score-player {
    font-weight: 600;
    color: #333;
}

.score-points {
    font-weight: 700;
    color: #28a745;
    font-size: 16px;
}

.round-statistics h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.round-settings {
    margin-bottom: 20px;
}

.round-settings h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 600px) {
    .settings-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #4ECDC4;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.2);
}

.setting-item label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.setting-item input[type="number"] {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.3s;
}

.setting-item input[type="number"]:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 8px rgba(78, 205, 196, 0.3);
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4ECDC4;
    cursor: pointer;
}

.checkbox-label {
    font-size: 14px;
    color: #666;
    margin-left: 8px;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .qr-button-container {
        top: 15px;
        right: 15px;
    }
    
    .btn-qr-code {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .qr-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .qr-modal-header {
        padding: 15px 20px;
    }
    
    .qr-modal-body {
        padding: 20px;
    }
    
    .qr-code-display-modal img {
        max-width: 200px;
    }
    
    .url-text {
        font-size: 11px;
    }
    
    .round-buttons {
        flex-direction: column;
    }
    
    .round-buttons .btn {
        max-width: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Tab Interface */
.tab-container {
    padding-bottom: 80px; /* Space for fixed tab navigation */
}

.tab-content {
    overflow-y: auto;
    padding: 0 10px 20px 10px;
    -webkit-overflow-scrolling: touch;
}

.tab-pane {
    display: none;
}

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

.tab-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-top: 2px solid rgba(78, 205, 196, 0.3);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.tab-button {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    margin: 0 4px;
}

.tab-button:hover {
    background: rgba(78, 205, 196, 0.1);
    color: #4ECDC4;
}

.tab-button.active {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.tab-button span:first-child {
    font-size: 16px;
}

/* Desktop: Hide bottom tabs, show content normally */
@media (min-width: 768px) {
    .tab-container {
        height: auto;
        max-height: none;
    }

    .tab-content {
        overflow-y: visible;
        padding-bottom: 0;
    }

    .tab-navigation {
        display: none;
    }

    .tab-pane {
        display: block !important;
        padding: 0;
    }
}

