/* Record Score Modal Styles - Dark-themed with high contrast */
/* Using higher specificity to override glassmorphism effects from new-dark.css */
.modal.score-modal .modal-content,
.score-modal.modal .modal-content {
    background-color: #030508 !important; /* Very dark background - darker than other elements */
    background: #030508 !important; /* Alternative property for broader support */
    color: #f3f4f6 !important; /* Bright text for contrast */
    border: none !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.modal.score-modal .modal-header,
.modal.score-modal .modal-footer,
.score-modal.modal .modal-header,
.score-modal.modal .modal-footer {
    border: none !important; /* Remove divider lines */
    background-color: rgba(17, 24, 39, 0.6) !important; /* Lighter header background to match other card headers */
    background: rgba(17, 24, 39, 0.6) !important; /* Alternative property */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 1rem 1.5rem !important;
}

.score-modal .modal-header .modal-title {
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.score-modal .modal-header .modal-title i {
    color: #fd7e14; /* Orange trophy icon */
}

.score-modal .modal-body {
    padding: 1.5rem;
}

.score-section {
    padding: 1.25rem;
    background-color: #1f2937; /* Dark grey background */
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-section {
    padding: 1.25rem;
    background-color: #1f2937; /* Matches score section */
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.score-grid {
    display: grid;
    gap: 0.75rem;
}

.score-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
    border: none; /* No separators */
}

.score-row.header {
    font-weight: 500;
    color: #9fa6b2;
    padding-bottom: 0.5rem;
    border: none; /* No separators */
}

.score-cell {
    padding: 0.25rem;
}

.player-names {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e5e7eb; /* Bright text */
}

.score-input, .stat-input {
    width: 100%;
    text-align: center;
    background-color: #0a0e17; /* Very dark input background */
    border: 1px solid #374151; /* Subtle border */
    color: #f3f4f6; /* Bright text */
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.score-input:focus, .stat-input:focus {
    background-color: #111827; /* Slightly lighter when focused */
    border-color: #1a5928; /* Dark green highlight - consistent with theme */
    box-shadow: 0 0 0 2px rgba(26, 89, 40, 0.25);
    outline: none;
}

.player-row {
    display: grid;
    grid-template-columns: 70% 15% 15%;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0;
    border: none !important; /* No separator */
    border-bottom: 0 !important; /* Explicitly remove bottom border */
    margin-bottom: 0.25rem;
    opacity: 1; /* Full opacity for content */
}

.player-row.header {
    font-weight: 500;
    color: #9fa6b2;
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    border: none !important; /* No separator in header */
    border-bottom: 0 !important; /* Explicitly remove bottom border */
}

.player-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e5e7eb; /* Bright text */
}

.stats-section h6 {
    color: #9fa6b2;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Styled buttons */
.score-modal .btn-primary {
    background-color: #1a5928; /* Dark green primary button - consistent with theme */
    border: none;
    color: white;
    transition: color 0.2s ease;
}

.score-modal .btn-primary:hover {
    background-color: #1a5928; /* Keep the same background */
    color: #ffffff; /* Brighten text slightly */
}

.score-modal .btn-secondary {
    background-color: #374151; /* Dark grey secondary button */
    border: none;
    color: #f3f4f6;
    transition: color 0.2s ease;
}

.score-modal .btn-secondary:hover {
    background-color: #374151; /* Keep the same background */
    color: #ffffff; /* Brighten text slightly */
}

/* Record Score button in match list */
.record-score-btn {
    border-color: #374151;
    color: #f3f4f6;
    transition: color 0.2s ease-in-out;
}

.record-score-btn:hover {
    color: #fd7e14; /* Orange text on hover */
    background-color: transparent; /* No background change */
}

.record-score-btn i {
    color: #fd7e14; /* Orange trophy icon */
}

/* Completely hide all borders in player stats section */
.stats-section * {
    border: none !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .score-row {
        grid-template-columns: 2fr 0.9fr 0.9fr 0.9fr;
    }
    
    .player-row {
        grid-template-columns: 60% 20% 20%;
    }
    
    .score-input, .stat-input {
        padding: 0.4rem;
        font-size: 0.95rem;
    }
    
    .player-names, .player-name {
        font-size: 0.8rem;
    }
}

/* Prevent zooming on iOS */
input[type="number"] {
    font-size: 16px !important;
}
