* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    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;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    margin-bottom: 20px;
    font-size: 2.5em;
}

nav {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.nav-btn {
    padding: 10px 20px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
}

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

.view {
    display: none;
    padding: 30px;
}

.view.active {
    display: block;
}

.section {
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.section h2 {
    margin-bottom: 20px;
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.admin-gate {
    max-width: 400px;
    margin: 0 auto;
}

.admin-login-error {
    color: #dc3545;
    margin-bottom: 12px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    margin-bottom: 20px;
}

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

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.btn-warning:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.list-container {
    display: grid;
    gap: 15px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.card h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.card p {
    margin: 5px 0;
    color: #666;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table th {
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: left;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

table tr:hover {
    background: #f8f9fa;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.score-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 5px;
}

.score-input-group label {
    flex: 1;
    font-weight: normal;
}

.score-input-group input {
    width: 80px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.group-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 10px;
}

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: bold;
}

.tab-content {
    display: none;
}

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

.grouping-row {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.grouping-row h4 {
    margin-bottom: 10px;
    color: #667eea;
}

.grouping-player {
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.grouping-player:focus {
    outline: none;
    border-color: #667eea;
}

/* Game card selection */
.game-card {
    transition: all 0.3s;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.game-card.selected {
    border: 3px solid #667eea;
    background: #f0f4ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 0;
        margin: 0;
        max-width: 100%;
    }
    
    header {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    nav {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    .view {
        padding: 15px;
    }
    
    .section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .section h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        margin-bottom: 15px;
        min-height: 44px;
    }

    .score-entry-player-nav .btn.score-entry-nav-btn {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        margin-bottom: 0;
        padding: 10px 4px;
    }

    .score-entry-player-nav .score-entry-player-select {
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
    }

    #admin-scores-section .score-entry-player-nav .btn.score-entry-nav-btn,
    #admin-scores-section .score-entry-player-nav .score-entry-player-select,
    #player-scores-view .score-entry-player-nav .btn.score-entry-nav-btn,
    #player-scores-view .score-entry-player-nav .score-entry-player-select {
        flex: 0 0 calc((100% - 12px) / 3);
        width: calc((100% - 12px) / 3);
        max-width: calc((100% - 12px) / 3);
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 0;
        padding: 12px 8px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 16px;
        min-height: 44px;
    }
    
    .score-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .score-input-group label {
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .score-input-group input {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        min-height: 44px;
    }
    
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table th,
    table td {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .card {
        padding: 15px;
    }
    
    .card h3 {
        font-size: 1.2em;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 10px;
        padding: 20px;
        max-height: 95vh;
        border-radius: 0;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 32px;
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .grouping-row > div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .grouping-player {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        min-height: 44px;
    }
    
    select {
        font-size: 16px;
        padding: 12px;
        min-height: 44px;
    }
    
    button, a, input[type="button"], input[type="submit"] {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    
    .section {
        padding: 12px;
    }
    
    .section h2 {
        font-size: 1.2em;
    }
    
    table th,
    table td {
        padding: 8px 6px;
        font-size: 13px;
    }
    
    .modal-content {
        padding: 15px;
    }
}

/* Ensure Player View results remain readable on mobile devices */
@media (max-width: 768px) {
    #game-results table {
        background: #fff !important;
        color: #111 !important;
    }

    #game-results table td {
        background: #fff;
        color: #111 !important;
    }

    #game-results table th {
        background: #667eea;
        color: #fff !important;
    }

    #game-results .temp-comp-table thead th.temp-comp-label-col {
        background: #fff !important;
        color: #000 !important;
    }

    #game-results .temp-comp-table td.temp-comp-name {
        color: #111 !important;
    }

    #game-results .temp-comp-total {
        color: #111 !important;
    }
}

/* Holes form styling */
.holes-form-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}

.holes-form-grid > div:first-child,
.holes-form-grid > div:nth-child(2),
.holes-form-grid > div:nth-child(3) {
    font-weight: bold;
}

@media (max-width: 768px) {
    .holes-form-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .holes-form-grid > div:nth-child(3n+1) {
        grid-column: 1;
    }
    
    .holes-form-grid > div:nth-child(3n+2) {
        grid-column: 2;
    }
    
    .holes-form-grid > div:nth-child(3n+3) {
        grid-column: 3;
    }
}

/* Score entry table styling */
.score-entry-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.score-entry-table table {
    border-collapse: collapse;
    width: 100%;
    min-width: 800px;
}

.score-entry-table th,
.score-entry-table td {
    border: 1px solid #ddd;
}

.score-entry-table th {
    background: #667eea;
    color: white;
    font-weight: bold;
}

.score-entry-table .sticky-column {
    position: sticky;
    left: 0;
    background: white;
    z-index: 10;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

.hole-score-input:focus,
.hole-points-input:focus,
.points-total-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 3px rgba(102, 126, 234, 0.3);
}

.score-entry-grid thead th,
.score-entry-grid .score-entry-header-label,
.score-entry-grid .score-entry-header-hole {
    color: #000 !important;
    background: #fff !important;
}

.score-entry-grid {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.score-entry-grid .score-entry-sticky-col {
    position: sticky;
    left: 0;
    background: white;
    z-index: 10;
    padding: 8px;
    font-weight: bold;
}

.score-entry-grid .score-entry-points-label {
    font-style: italic;
    background: #f8f9fa;
}

.score-entry-grid td,
.score-entry-grid th {
    border: 1px solid #ddd;
    padding: 2px 4px;
    text-align: center;
}

.score-entry-grid .score-entry-header-label,
.score-entry-grid .score-entry-sticky-col {
    text-align: left;
}

.score-entry-grid .score-entry-total-col {
    border-left: 2px solid #667eea;
}

.score-entry-grid .hole-score-input,
.score-entry-grid .hole-points-input,
.score-entry-grid .points-total-input {
    width: 100%;
    padding: 4px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.score-entry-grid .hole-points-input {
    background: #f0f4ff;
    color: #333;
    font-weight: 600;
    cursor: default;
    min-width: 2em;
}

.score-entry-grid .points-total-input {
    width: 80px;
    border: 2px solid #667eea;
    font-weight: bold;
}

/* Mobile: one player at a time, holes listed vertically */
.score-entry-mobile {
    margin-bottom: 20px;
}

.score-entry-player-nav {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Keep admin and player-view mobile navs visually identical */
#admin-scores-section .score-entry-player-nav,
#player-scores-view .score-entry-player-nav {
    width: 100%;
    max-width: 100%;
}

/* Equal thirds: prev | select | next (override global .btn width on mobile) */
.score-entry-player-nav .score-entry-nav-btn,
.score-entry-player-nav .score-entry-player-select {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    margin-bottom: 0;
    box-sizing: border-box;
}

#admin-scores-section .score-entry-player-nav .score-entry-nav-btn,
#admin-scores-section .score-entry-player-nav .score-entry-player-select,
#player-scores-view .score-entry-player-nav .score-entry-nav-btn,
#player-scores-view .score-entry-player-nav .score-entry-player-select {
    flex: 0 0 calc((100% - 12px) / 3);
    width: calc((100% - 12px) / 3);
    max-width: calc((100% - 12px) / 3);
}

.score-entry-nav-btn {
    padding: 10px 4px;
    font-size: 1.4em;
    line-height: 1;
    min-height: 44px;
}

.score-entry-player-select {
    padding: 10px 6px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-overflow: ellipsis;
}

.score-entry-player-meta {
    text-align: center;
    color: #666;
    margin: 0 0 12px 0;
    font-size: 0.9em;
}

.score-entry-player-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f0f4ff;
    border-radius: 8px;
    margin-bottom: 12px;
}

.score-entry-player-hcap {
    display: block;
    color: #666;
    font-size: 0.9em;
    font-weight: normal;
}

.score-entry-player-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.95em;
}

.score-entry-total-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
}

.score-entry-total-label .points-total-input {
    width: 64px;
    padding: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: 2px solid #667eea;
    border-radius: 5px;
}

.score-entry-nine-label {
    font-weight: bold;
    color: #667eea;
    padding: 10px 0 6px;
    border-bottom: 2px solid #667eea;
    margin-top: 4px;
}

.score-entry-hole-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.score-entry-hole-label {
    flex: 1 1 auto;
    min-width: 0;
}

.score-entry-hole-num {
    display: block;
    font-weight: bold;
}

.score-entry-hole-meta {
    display: block;
    font-size: 0.85em;
    color: #666;
}

.score-entry-hole-inputs {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.score-entry-field-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.75em;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
}

.score-entry-mobile .hole-score-input,
.score-entry-mobile .hole-points-input {
    width: 52px;
    padding: 10px 4px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.score-entry-mobile .hole-points-input {
    background: #f0f4ff;
    color: #333;
    font-weight: 600;
    cursor: default;
}

/* Player Games tab: sidebar + main */
.player-games-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.player-games-sidebar {
    flex: 0 0 260px;
    max-width: 280px;
    margin-bottom: 0;
}

.player-games-main {
    flex: 1;
    min-width: 0;
}

.player-games-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-games-list .player-game-card {
    padding: 12px;
    margin: 0;
}

.player-games-list .player-game-card-title {
    font-size: 1em;
    margin-bottom: 4px;
}

.player-games-list .player-game-card-meta {
    font-size: 0.85em;
    color: #666;
    margin: 0;
}

.player-games-list .player-game-card-locked {
    font-size: 0.8em;
    color: #ff9800;
    font-weight: bold;
    margin: 4px 0 0 0;
}

.player-games-list .game-card.selected {
    border: 2px solid #667eea;
    background: #f0f4ff;
}

.game-results-placeholder {
    color: #666;
    font-style: italic;
    margin: 0;
}

@media (max-width: 768px) {
    .player-games-layout {
        flex-direction: column;
    }

    .player-games-sidebar {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
    }
}

/* Temp Comp (daily team competition) */
.temp-comp-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 2px solid #667eea;
}

.temp-comp-section h4 {
    margin-bottom: 8px;
    color: #667eea;
}

.temp-comp-format {
    margin-bottom: 16px;
    color: #555;
    font-size: 0.95rem;
}

.temp-comp-empty {
    color: #888;
    font-style: italic;
}

.temp-comp-team {
    margin-bottom: 24px;
}

.temp-comp-team h5 {
    margin-bottom: 8px;
    color: #333;
}

.temp-comp-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.temp-comp-table {
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.85rem;
    width: max-content;
    min-width: 100%;
}

.temp-comp-col-first {
    width: 7rem;
}

.temp-comp-col-hole {
    width: 1.85rem;
}

.temp-comp-col-total {
    width: 2.35rem;
}

.temp-comp-table th,
.temp-comp-table td {
    padding: 4px 2px;
    text-align: center;
    border: 1px solid #ddd;
    box-sizing: border-box;
    overflow: hidden;
}

.temp-comp-table thead th:not(.temp-comp-label-col):not(.temp-comp-total-col) {
    background: #667eea;
    color: #fff;
    font-weight: 600;
}

.temp-comp-table th.temp-comp-label-col,
.temp-comp-table td.temp-comp-name {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 1;
    box-sizing: border-box;
}

.temp-comp-table thead th.temp-comp-label-col {
    z-index: 2;
    text-align: right !important;
    background: #fff !important;
    color: #000 !important;
    font-weight: 700;
    white-space: nowrap;
    padding-left: 6px !important;
    padding-right: 8px !important;
}

.temp-comp-table td.temp-comp-name {
    background: #fff;
    font-size: 0.8rem;
    line-height: 1.25;
    vertical-align: middle;
    padding: 4px 6px !important;
}

.temp-comp-hole-val {
    width: 1.85rem;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    line-height: 1.3;
    padding: 4px 1px !important;
}

.temp-comp-total-col,
.temp-comp-tot-hdr {
    vertical-align: middle;
    width: 2.35rem;
}

.temp-comp-table thead th.temp-comp-total-col {
    background: #667eea;
    color: #fff;
}

.temp-comp-player-row:nth-child(even) {
    background: #f8f9fa;
}

.temp-comp-team-row {
    background: #e8ecff;
}

.temp-comp-team-row td {
    border-top: 2px solid #667eea;
}

.temp-comp-total {
    font-weight: 600;
    background: #f0f4ff;
}

.temp-comp-player-row:nth-child(even) td.temp-comp-name {
    background: #f8f9fa;
}

.temp-comp-team-row td.temp-comp-name {
    background: #e8ecff;
}

@media (max-width: 768px) {
    .temp-comp-table {
        font-size: 0.75rem;
    }

    .temp-comp-col-first {
        width: 5.75rem;
    }

    .temp-comp-col-hole {
        width: 1.65rem;
    }

    .temp-comp-col-total {
        width: 2.1rem;
    }

    .temp-comp-table th,
    .temp-comp-table td {
        padding: 3px 1px;
    }

    .temp-comp-table td.temp-comp-name {
        font-size: 0.7rem;
        padding: 3px 4px !important;
    }

    .temp-comp-hole-val {
        width: 1.65rem;
        padding: 3px 0 !important;
    }
}

.form-hint {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

#scoring_format {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.daily-team-players-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.daily-team-players-grid .daily-team-player {
    width: 100%;
    min-width: 0;
    padding: 8px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .daily-team-players-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.score-entry-view-only .hole-score-input,
.score-entry-view-only .points-total-input {
    cursor: default;
    background: #f8f9fa;
}

#player-scores-view {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 2px solid #667eea;
}

#player-scores-view h2 {
    margin-bottom: 16px;
    color: #667eea;
}

.admin-games-section h2 {
    margin-bottom: 16px;
    color: #667eea;
}

.admin-games-create {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.admin-scores-section {
    margin: 24px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.admin-scores-section h3 {
    margin: 0 0 16px 0;
    color: #667eea;
}

.admin-scores-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.admin-scores-game-info {
    font-weight: 600;
    color: #667eea;
    margin: 0 0 12px 0;
}

#admin-submit-scores-btn[hidden] {
    display: none;
}

#submit-scores-btn[hidden] {
    display: none;
}

.backup-create-form {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    max-width: 480px;
}

.backup-create-form .form-group {
    margin-bottom: 12px;
}

.backup-create-form input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.backups-list {
    margin-top: 16px;
}

.backups-table {
    width: 100%;
    border-collapse: collapse;
}

.backups-table th,
.backups-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.backups-table th {
    background: #667eea;
    color: #fff;
}

.backups-actions {
    white-space: nowrap;
}

.backups-actions .btn {
    margin-right: 8px;
    margin-bottom: 0;
}

.backups-actions .btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.backups-empty,
.backups-error {
    color: #666;
    font-style: italic;
}

.backups-error {
    color: #dc3545;
    font-style: normal;
}
