/**
 * Match Night Live Styles
 * Updated with Material UI and Tailwind design principles
 *
 * @package    Club_Manager_Pro
 * @subpackage Club_Manager_Pro/modules/match-night-live/css
 * @since      2.0.2.0
 * @updated    2.0.5.1
 */

/* Container and general styling */
.match-night-live-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 1rem;
    background-color: #f8fafc;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Mobile-first responsive container */
@media (min-width: 640px) {
    .match-night-live-container {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .match-night-live-container {
        padding: 2rem;
        /* Remove problematic grid layout for desktop */
        display: block;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Better desktop layout for key sections */
    .mnl-scoreboard-section {
        margin-bottom: 2rem;
    }
    
    .mnl-commentary-section {
        margin-bottom: 2rem;
    }
    
    .mnl-tabs-section {
        margin-bottom: 2rem;
    }
}

/* Material UI Card-based sections */
.mnl-section {
    margin-bottom: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mnl-section:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.mnl-section h2 {
    margin: 0;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    color: #1e293b;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.mnl-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

/* Mobile responsive section headers */
@media (max-width: 640px) {
    .mnl-section h2 {
        padding: 1rem 1rem 0.75rem 1rem;
        font-size: 1.125rem;
    }
}

/* Live User Counter Widget */
.mnl-live-users-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.mnl-live-users-widget {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    color: white;
    gap: 1rem;
}

.mnl-live-users-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.mnl-live-users-content {
    flex: 1;
}

.mnl-live-users-count {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mnl-live-users-count span {
    font-size: 1.5rem;
    font-weight: 700;
}

.mnl-live-users-peak {
    font-size: 0.875rem;
    opacity: 0.8;
}

.mnl-connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.mnl-status-connected {
    color: #10b981;
    animation: pulse 2s infinite;
}

.mnl-status-disconnected {
    color: #ef4444;
}

.mnl-status-connecting {
    color: #f59e0b;
    animation: blink 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Time Conversion Toggle */
.mnl-time-conversion-toggle {
    display: flex;
    align-items: center;
    margin: 0 1rem;
    padding: 0.75rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mnl-time-conversion-toggle:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.mnl-checkbox-label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    color: #374151;
}

.mnl-checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    width: 1rem;
    height: 1rem;
    accent-color: #2563eb;
}

.mnl-checkbox-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.mnl-help-text {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 0.25rem;
}

/* Period row layout adjustments */
.mnl-period-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.mnl-period-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mnl-update-button {
    margin-left: auto;
}

@media (max-width: 768px) {
    .mnl-period-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .mnl-time-conversion-toggle {
        margin: 0;
    }
    
    .mnl-update-button {
        margin-left: 0;
    }
}

/* Notices */
.mnl-notice {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: mnl-fadeIn 0.3s ease-in-out;
}

@keyframes mnl-fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mnl-notice::before {
    content: '';
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.mnl-success {
    background-color: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.mnl-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310b981'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'%3E%3C/path%3E%3C/svg%3E");
}

.mnl-error {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #b91c1c;
}

.mnl-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ef4444'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'%3E%3C/path%3E%3C/svg%3E");
}

/* Scoreboard Section - Mobile First Responsive */
.mnl-scoreboard-section {
    padding: 1.5rem;
}

.mnl-scoreboard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    max-width: 100%;
    overflow: hidden;
}

.mnl-scoreboard-row:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

/* Desktop enhanced layout */
@media (min-width: 768px) {
    .mnl-scoreboard-row {
        max-width: 900px;
        margin: 0 auto;
        padding: 2rem;
        gap: 1.5rem;
        justify-content: center;
    }
}

/* Mobile stacked layout */
@media (max-width: 640px) {
    .mnl-scoreboard-row {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1rem;
    }
    
    .mnl-score-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mnl-scoreboard-section {
        padding: 1rem;
    }
}

.mnl-team-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem;
    flex: 1;
}

.mnl-team-container:hover {
    transform: translateY(-2px);
}

/* Score container in the middle */
.mnl-score-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.mnl-team-name {
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    min-height: 1.5rem;
    color: #111827;
    letter-spacing: 0.025em;
}

.mnl-team-badge {
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.mnl-team-badge:hover {
    transform: scale(1.05);
}

.mnl-badge-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.mnl-badge-img {
    max-width: 5rem;
    max-height: 5rem;
    width: auto;
    height: auto;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.mnl-badge-img:hover {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.mnl-score-input {
    width: 5rem;
    height: 5rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    border: 3px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1e293b;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.mnl-score-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: scale(1.05);
    background: #ffffff;
}

.mnl-score-input:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* Mobile touch-friendly score inputs */
@media (max-width: 640px) {
    .mnl-score-input {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
        min-height: 44px; /* Apple's recommended touch target */
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

.mnl-score-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.mnl-score-value:hover {
    transform: scale(1.05);
}

.mnl-versus {
    font-size: 1.5rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mnl-versus:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: rotate(180deg);
}

@media (max-width: 640px) {
    .mnl-versus {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}

.mnl-period-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mnl-period-row:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Mobile responsive period row */
@media (max-width: 640px) {
    .mnl-period-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .mnl-period-selector,
    .mnl-time-conversion-toggle,
    .mnl-update-button {
        width: 100%;
    }
}

.mnl-period-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mnl-period-selector label {
    margin-right: 0.5rem;
    font-weight: 600;
    color: #4b5563;
    font-size: 1rem;
    letter-spacing: 0.025em;
}

#mnl_match_period {
    padding: 0.625rem 0.875rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background-color: #fff;
    min-width: 200px;
    font-size: 0.875rem;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

#mnl_match_period:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

#mnl_match_period:hover {
    border-color: #9ca3af;
}

.mnl-update-button .button {
    padding: 0.625rem 1.25rem;
    height: auto;
    font-size: 0.875rem;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.mnl-update-button .button:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 6px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.mnl-update-button .button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.mnl-update-button .button:active {
    background-color: #1e40af;
    transform: translateY(0);
}

/* Tabs Section */
.mnl-tabs-section {
    margin-top: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    overflow: hidden;
}

.mnl-tabs-nav {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
    overflow-x: auto;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.5rem;
}

.mnl-tabs-nav::-webkit-scrollbar {
    height: 4px;
}

.mnl-tabs-nav::-webkit-scrollbar-track {
    background-color: #f1f5f9;
    border-radius: 2px;
}

.mnl-tabs-nav::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 2px;
}

.mnl-tabs-nav::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

.mnl-tab {
    padding: 1rem 1.5rem;
    margin: 0.25rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 8px;
    scroll-snap-align: start;
    min-height: 44px; /* Touch-friendly */
    display: flex;
    align-items: center;
}

/* Mobile responsive tabs */
@media (max-width: 640px) {
    .mnl-tabs-nav {
        flex-direction: column;
        overflow-x: visible;
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .mnl-tab {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        margin: 0;
    }
}

.mnl-tab:hover {
    color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    transform: translateY(-1px);
}

.mnl-tab-active {
    color: #1e40af;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.mnl-tab-active:hover {
    transform: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Remove the old ::after pseudo-element styling */
.mnl-tab::after {
    display: none;
}

.mnl-tab-content {
    padding: 1.5rem 1.25rem;
    animation: mnl-fadeIn 0.3s ease-in-out;
}

@keyframes mnl-tabFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Form Styling - Mobile First */
.mnl-tab-content {
    padding: 1.5rem;
}

@media (max-width: 640px) {
    .mnl-tab-content {
        padding: 1rem;
    }
}

.mnl-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .mnl-form-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* Give time fields more space in grid layouts */
    .mnl-form-row:has(#mnl_goal_time) {
        grid-template-columns: 2fr 2fr 1.5fr;
    }
    
    .mnl-form-row:has(#mnl_penalty_time) {
        grid-template-columns: 2fr 1.5fr 2fr 1.5fr;
    }
}

@media (min-width: 1024px) {
    .mnl-form-row {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* Maintain custom grid for time fields on larger screens */
    .mnl-form-row:has(#mnl_goal_time) {
        grid-template-columns: 2fr 2fr 1.8fr;
    }
    
    .mnl-form-row:has(#mnl_penalty_time) {
        grid-template-columns: 2fr 1.8fr 2fr 1.5fr;
    }
}

.mnl-form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.mnl-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    letter-spacing: 0.025em;
}

.mnl-form-group select,
.mnl-form-group input[type="text"],
.mnl-form-group input[type="number"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px; /* Prevents zoom on iOS */
    color: #1f2937;
    appearance: none;
    min-height: 44px; /* Touch-friendly */
}

.mnl-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.mnl-form-group select:focus,
.mnl-form-group input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), 0 4px 6px rgba(0,0,0,0.1);
    background: #ffffff;
    transform: translateY(-1px);
}

.mnl-form-group select:hover,
.mnl-form-group input:hover {
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Floating label effect */
.mnl-floating-label {
    position: relative;
}

.mnl-floating-label label {
    position: absolute;
    left: 0.875rem;
    top: 0.625rem;
    font-size: 0.9375rem;
    color: #6b7280;
    pointer-events: none;
    transform-origin: left top;
    transition: all 0.2s ease;
    z-index: 1;
    padding: 0 0.25rem;
    margin: 0;
}

.mnl-floating-label input:focus ~ label,
.mnl-floating-label input:not(:placeholder-shown) ~ label,
.mnl-floating-label select:focus ~ label,
.mnl-floating-label select:not([value=""]):valid ~ label {
    transform: translateY(-1.25rem) scale(0.85);
    background-color: #fff;
    color: #3b82f6;
    font-weight: 600;
}

.mnl-form-submit {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .mnl-form-submit {
        flex-direction: column;
        align-items: stretch;
    }
}

.mnl-form-submit button,
.mnl-form-submit .button {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    min-height: 44px; /* Touch-friendly */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mnl-form-submit button:hover,
.mnl-form-submit .button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
}

.mnl-form-submit button:focus,
.mnl-form-submit .button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), 0 8px 25px rgba(59, 130, 246, 0.35);
}

.mnl-form-submit button:active,
.mnl-form-submit .button:active {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25);
}

/* Secondary button styling */
.mnl-form-submit .button-secondary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mnl-form-submit .button-secondary:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* Data Tables */
.mnl-goals-list,
.mnl-data-list {
    margin-top: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.mnl-goals-list:hover,
.mnl-data-list:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.mnl-goals-list h4,
.mnl-data-list h4 {
    padding: 1rem 1.25rem;
    margin: 0;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    position: relative;
    display: flex;
    align-items: center;
}

.mnl-goals-list h4::before,
.mnl-data-list h4::before {
    content: '';
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #3b82f6;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.mnl-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.mnl-data-table thead {
    background-color: #f9fafb;
}

.mnl-data-table th,
.mnl-data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s ease;
}

.mnl-data-table th {
    color: #4b5563;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.mnl-data-table th::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
}

.mnl-data-table td {
    color: #1f2937;
    font-size: 0.875rem;
}

.mnl-data-table tbody tr {
    transition: all 0.2s ease-in-out;
}

.mnl-data-table tbody tr:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mnl-data-table .mnl-odd-row {
    background-color: #f9fafb;
}

.mnl-actions-column {
    white-space: nowrap;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.mnl-actions-column .button-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    height: auto;
    line-height: 1.5;
    border-radius: 0.25rem;
    border: none;
    background-color: #e5e7eb;
    color: #4b5563;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.mnl-actions-column .button-small:hover {
    background-color: #d1d5db;
    transform: translateY(-1px);
}

.mnl-actions-column .button-small:first-child {
    background-color: #93c5fd;
    color: #1e3a8a;
}

.mnl-actions-column .button-small:first-child:hover {
    background-color: #60a5fa;
}

.mnl-actions-column .button-small:last-child {
    background-color: #fecaca;
    color: #991b1b;
}

.mnl-actions-column .button-small:last-child:hover {
    background-color: #fca5a5;
}

.mnl-tab-pane {
    display: none;
    animation: mnl-fadeIn 0.3s ease-in-out;
}

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

/* Team Rosters */
.mnl-team-rosters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.mnl-team-rosters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.mnl-team-roster {
    flex: 1;
    min-width: 300px;
    padding: 1.25rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.mnl-team-roster:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-color: #d1d5db;
}

.mnl-team-roster h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.mnl-team-roster h4::before {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #3b82f6;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.mnl-roster-players {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
}

.mnl-roster-players::-webkit-scrollbar {
    width: 6px;
}

.mnl-roster-players::-webkit-scrollbar-track {
    background-color: #f3f4f6;
    border-radius: 3px;
}

.mnl-roster-players::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 3px;
}

.mnl-roster-players::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}

.mnl-player-checkbox {
    margin-bottom: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
}

.mnl-player-checkbox:hover {
    background-color: #f3f4f6;
    transform: translateX(2px);
}

.mnl-player-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 0.25rem;
    border: 1.5px solid #9ca3af;
    position: relative;
    cursor: pointer;
    appearance: none;
    background-color: #fff;
    transition: all 0.2s ease;
}

.mnl-player-checkbox input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.mnl-player-checkbox input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.mnl-player-checkbox input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.mnl-player-checkbox label {
    cursor: pointer;
    font-size: 0.9375rem;
    color: #374151;
}

/* Commentary Section */
.mnl-commentary-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.mnl-commentary-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.mnl-commentary-section h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.mnl-commentary-section h3::before {
    content: '';
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #3b82f6;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.mnl-commentary-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 2px;
    background-color: #3b82f6;
}

.mnl-commentary-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    margin-bottom: 1.25rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: #374151;
    transition: all 0.2s ease;
    resize: vertical;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.mnl-commentary-form textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), inset 0 1px 2px rgba(0,0,0,0.05);
}

.mnl-commentary-form .mnl-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background-color: #3b82f6;
    border: 1px solid #3b82f6;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mnl-commentary-form .mnl-form-submit:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.mnl-commentary-form .mnl-form-submit:active {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(1px);
}

.mnl-comments-list {
    margin-top: 2rem;
}

.mnl-comment {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    position: relative;
    border-left: 3px solid #3b82f6;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mnl-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    background-color: #f3f4f6;
}

.mnl-comment-time {
    font-size: 0.75rem;
    color: #6b7280;
    position: absolute;
    top: 0.625rem;
    left: 1.25rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.mnl-comment-time::before {
    content: '🕒';
    font-size: 0.875rem;
    margin-right: 0.375rem;
}

.mnl-comment-content {
    margin-top: 1.5rem;
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.mnl-no-comments {
    text-align: center;
    padding: 1.5rem;
    color: #6b7280;
    font-style: italic;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px dashed #e5e7eb;
    margin: 1.5rem 0;
}

/* Commentary Section Enhancements - Card Style */
.mnl-commentary-section {
    /* Ensure consistent card styling with other sections */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mnl-commentary-section:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.mnl-commentary-section h2 {
    margin: 0;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    color: #1e293b;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.mnl-commentary-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.mnl-commentary-form {
    padding: 1.5rem;
    margin-bottom: 0;
}

.mnl-commentary-input-container {
    margin-bottom: 1rem;
}

.mnl-commentary-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px; /* Prevents zoom on iOS */
    color: #1f2937;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.mnl-commentary-textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), 0 4px 6px rgba(0,0,0,0.1);
    background: #ffffff;
    transform: translateY(-1px);
}

.mnl-commentary-textarea:hover {
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mnl-commentary-submit {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .mnl-commentary-section h2 {
        padding: 1rem 1rem 0.75rem 1rem;
        font-size: 1.125rem;
    }
    
    .mnl-commentary-form {
        padding: 1rem;
    }
    
    .mnl-commentary-submit {
        justify-content: stretch;
    }
    
    .mnl-commentary-submit .button {
        width: 100%;
    }
}

/* Commentary Feed Section - Separate styling */
.mnl-commentary-feed-section {
    margin-top: 3rem;
    border-top: 3px solid #e2e8f0;
}

.mnl-commentary-feed-section h2 {
    color: #64748b;
    font-size: 1.125rem;
}

.mnl-commentary-display {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.mnl-comment-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: #ffffff;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.mnl-comment-time {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    flex-shrink: 0;
    width: 3rem;
}

.mnl-comment-text {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.mnl-no-comments {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 2rem;
}

/* Penalties Table Styling - Match Goals Table */
.mnl-penalties-list {
    margin-top: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.mnl-penalties-list:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.mnl-penalties-list h4 {
    padding: 1rem 1.25rem;
    margin: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    position: relative;
    display: flex;
    align-items: center;
}

.mnl-penalties-list h4::before {
    content: '';
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #ef4444;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.mnl-penalties-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.mnl-penalties-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.mnl-penalties-table th {
    padding: 0.875rem 1rem;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.mnl-penalties-table td {
    padding: 0.875rem 1rem;
    color: #1f2937;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.mnl-penalties-table tbody tr {
    transition: all 0.2s ease-in-out;
}

.mnl-penalties-table tbody tr:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mnl-penalties-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

/* Enhanced Action Buttons for Penalties */
.mnl-penalties-table .mnl-edit-link,
.mnl-penalties-table .mnl-delete-link {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin: 0 0.125rem;
}

.mnl-penalties-table .mnl-edit-link {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.mnl-penalties-table .mnl-edit-link:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25);
}

.mnl-penalties-table .mnl-delete-link {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.mnl-penalties-table .mnl-delete-link:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.25);
}

/* Mobile responsive penalties table */
@media (max-width: 768px) {
    /* Add horizontal scroll container for tables */
    .mnl-penalties-list,
    .mnl-goals-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mnl-penalties-table,
    .mnl-data-table {
        min-width: 600px; /* Ensure table doesn't compress too much */
        font-size: 0.75rem;
    }
    
    .mnl-penalties-table th,
    .mnl-penalties-table td,
    .mnl-data-table th,
    .mnl-data-table td {
        padding: 0.5rem 0.375rem;
        white-space: nowrap;
    }
    
    /* Critical: Ensure actions column is always visible on mobile */
    .mnl-penalties-table td:last-child,
    .mnl-data-table td:last-child {
        min-width: 120px;
        position: sticky;
        right: 0;
        background: #ffffff;
        box-shadow: -2px 0 4px rgba(0,0,0,0.1);
        z-index: 1;
    }
    
    .mnl-penalties-table .mnl-edit-link,
    .mnl-penalties-table .mnl-delete-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.625rem;
        min-height: 36px; /* Touch-friendly */
        margin: 0.125rem;
        display: inline-block;
        width: auto;
        min-width: 45px;
    }
    
    /* Goals table action buttons mobile fix */
    .mnl-data-table .button-small {
        padding: 0.375rem 0.5rem;
        font-size: 0.625rem;
        min-height: 36px;
        min-width: 45px;
        margin: 0.125rem;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .mnl-penalties-table,
    .mnl-data-table {
        min-width: 500px; /* Slightly smaller for very small screens */
    }
    
    .mnl-penalties-table .mnl-edit-link,
    .mnl-penalties-table .mnl-delete-link,
    .mnl-data-table .button-small {
        font-size: 0.625rem;
        padding: 0.25rem 0.375rem;
        min-width: 40px;
        min-height: 32px;
    }
    
    .mnl-penalties-table td:last-child,
    .mnl-data-table td:last-child {
        min-width: 100px; /* Slightly smaller actions column */
    }
}

/* Mobile table scroll indicators */
@media (max-width: 768px) {
    .mnl-penalties-list::after,
    .mnl-goals-list::after {
        content: '← Scroll to see all columns →';
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: #6b7280;
        padding: 0.5rem;
        background: #f9fafb;
        border-top: 1px solid #e5e7eb;
        font-style: italic;
    }
}

/* Enhanced Form Styling - Mobile First */
.mnl-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.mnl-form-group {
    flex: 1;
    min-width: 250px;
}

/* Ensure time input fields are wide enough on desktop for MM:SS format */
@media (min-width: 768px) {
    /* Make the form group containing time inputs wider */
    .mnl-form-group:has(#mnl_goal_time),
    .mnl-form-group:has(#mnl_penalty_time),
    .mnl-form-group:has(input[name*="time"]) {
        min-width: 180px !important;
        flex: 1.5 !important;
    }
    
    /* Ensure the inputs themselves are sized properly */
    .mnl-form-group input[type="text"][name*="time"],
    #mnl_goal_time,
    #mnl_penalty_time {
        min-width: 140px !important;
        width: 140px !important;
        font-size: 1rem !important;
        letter-spacing: 0.05em;
    }
}

.mnl-form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.mnl-form-group select,
.mnl-form-group input[type="text"],
.mnl-form-group input[type="number"] {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #1f2937;
    font-size: 0.9375rem;
    transition: all 0.15s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.mnl-form-group select:focus,
.mnl-form-group input[type="text"]:focus,
.mnl-form-group input[type="number"]:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), inset 0 1px 2px rgba(0,0,0,0.05);
    background-color: #fff;
}

.mnl-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5rem 1.5rem;
    padding-right: 2.5rem;
}

.mnl-form-submit {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background-color: #3b82f6;
    border: 1px solid #3b82f6;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mnl-form-submit:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.mnl-form-submit:active {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(1px);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px), screen and (max-width: 640px) {
    .mnl-container {
        padding: 1rem;
    }
    
    .mnl-scoreboard {
        padding: 1rem;
    }
    
    .mnl-team-container,
    html body .mnl-team-container,
    html body div .mnl-team-container,
    div.mnl-team-container,
    .mnl-frontend .mnl-team-container {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 120px !important;
        max-width: 150px !important;
        text-align: center !important;
        display: block !important;
        float: none !important;
    }
    
    .mnl-scoreboard-row,
    html body .mnl-scoreboard-row,
    html body div .mnl-scoreboard-row,
    div.mnl-scoreboard-row,
    .mnl-frontend .mnl-scoreboard-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }
    
    .mnl-team-container {
        margin: 0 0.5rem;
        flex-shrink: 0;
    }
    
    .mnl-tab-button {
        padding: 0.625rem;
        font-size: 0.875rem;
        flex: 1 0 auto;
        min-width: unset;
    }
    
    .mnl-tabs {
        flex-wrap: wrap;
    }
    
    .mnl-form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .mnl-team-rosters {
        flex-direction: column;
    }

    .mnl-data-table th,
    .mnl-data-table td {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }

    .mnl-actions-column .button-small {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
}

/* ============================================
   GAME SHEET VIEW STYLES (Phase 1+)
   ============================================ */

/* View Switcher */
.mnl-view-switcher {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mnl-view-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #f1f5f9;
    color: #475569;
    border: 2px solid transparent;
}

.mnl-view-btn:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-1px);
}

.mnl-view-btn.mnl-view-active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Mobile responsive view switcher */
@media (max-width: 640px) {
    .mnl-view-switcher {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mnl-view-btn {
        padding: 1rem;
        font-size: 0.875rem;
    }
}

/* Game Sheet Section Container */
.mnl-gamesheet-section {
    padding: 1.5rem;
}

.mnl-gamesheet-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3b82f6;
}

.mnl-gamesheet-info p {
    margin: 0;
    color: #1e40af;
    font-size: 0.95rem;
}

/* Placeholder Sections (Phases 3-5) */
.mnl-gamesheet-placeholder {
    margin-bottom: 2rem;
}

.mnl-gamesheet-placeholder h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mnl-gamesheet-placeholder p {
    margin: 0;
    color: #6b7280;
    font-style: italic;
}

/* Mobile responsive game sheet */
@media (max-width: 640px) {
    .mnl-gamesheet-section {
        padding: 1rem;
    }
    
    .mnl-gamesheet-info {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   TEAM SELECTION UI (Phase 2)
   ============================================ */

/* Goals Section */
.mnl-gamesheet-goals-section {
    margin-bottom: 2rem;
}

.mnl-gamesheet-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 0.5rem;
}

/* Team Selector */
.mnl-team-selector {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mnl-team-selector-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1rem;
}

.mnl-team-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mnl-team-option {
    position: relative;
    cursor: pointer;
    display: block;
}

/* Hide default radio button */
.mnl-team-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Team badge wrapper */
.mnl-team-badge-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    min-height: 80px;
}

.mnl-team-option:hover .mnl-team-badge-wrapper {
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Selected state */
.mnl-team-option input[type="radio"]:checked + .mnl-team-badge-wrapper {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: scale(1.02);
}

.mnl-team-option input[type="radio"]:checked + .mnl-team-badge-wrapper .mnl-team-name {
    color: #ffffff;
    font-weight: 700;
}

/* Team badge image */
.mnl-team-badge-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.mnl-team-option input[type="radio"]:checked + .mnl-team-badge-wrapper .mnl-team-badge-img {
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.5));
}

/* Team name */
.mnl-team-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    transition: all 0.2s ease;
    text-align: center;
}

/* Focus state for accessibility */
.mnl-team-option input[type="radio"]:focus + .mnl-team-badge-wrapper {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* Mobile responsive team selector */
@media (max-width: 640px) {
    .mnl-team-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .mnl-team-badge-wrapper {
        padding: 1rem;
        min-height: 70px;
    }
    
    .mnl-team-badge-img {
        width: 40px;
        height: 40px;
    }
    
    .mnl-team-name {
        font-size: 0.9rem;
    }
    
    .mnl-team-selector {
        padding: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .mnl-team-badge-wrapper {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.875rem;
    }
    
    .mnl-team-name {
        font-size: 0.85rem;
    }
}

/* ============================================
   GOALS ENTRY FORM (Phase 3)
   ============================================ */

/* Goals Entry Section */
.mnl-goals-entry {
    margin-top: 1.5rem;
}

.mnl-goals-header {
    margin-bottom: 1rem;
}

.mnl-goals-instructions {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.875rem 1.125rem;
    border-radius: 0.5rem;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    font-size: 0.9rem;
    margin: 0;
}

/* Goals Container */
.mnl-goals-container {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Individual Goal Row */
.mnl-goal-row {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.mnl-goal-row:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mnl-goal-row:last-child {
    margin-bottom: 0;
}

/* Goal Row Fields */
.mnl-goal-row-fields {
    display: grid;
    grid-template-columns: 100px 80px 80px 80px 60px;
    gap: 0.75rem;
    align-items: end;
}

.mnl-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.mnl-field-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin: 0;
}

/* Input Styling */
.mnl-input {
    padding: 0.625rem 0.75rem;
    border: 2px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.2s ease;
    min-height: 44px; /* Touch-friendly */
}

.mnl-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mnl-input:hover {
    border-color: #94a3b8;
}

/* Time Input */
.mnl-time-input {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-align: center;
}

/* Player Number Input */
.mnl-player-input {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Player Validation States (Phase 6) */
.mnl-player-input.mnl-validating {
    border-color: #fbbf24;
    background: #fef3c7;
}

.mnl-player-input.mnl-player-valid {
    border-color: #10b981;
    background: #d1fae5;
}

.mnl-player-input.mnl-player-invalid {
    border-color: #ef4444;
    background: #fee2e2;
}

.mnl-player-error {
    display: block;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #fee2e2;
    border-radius: 0.25rem;
}

/* Action Group (Save + Remove buttons) */
.mnl-action-group {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.mnl-btn-remove {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #fca5a5;
    border-radius: 0.375rem;
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mnl-btn-remove:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    border-color: #dc2626;
    transform: scale(1.05);
}

.mnl-btn-remove:active {
    transform: scale(0.95);
}

/* Add Button Container */
.mnl-add-row-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.mnl-btn-add {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 2px solid #059669;
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.mnl-btn-add:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.mnl-btn-add:active {
    transform: translateY(0);
}

.mnl-btn-icon {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

/* Mobile Responsive - Tablet */
@media (max-width: 768px) {
    .mnl-goal-row-fields {
        grid-template-columns: 90px 70px 70px 70px 50px;
        gap: 0.5rem;
    }
    
    .mnl-input {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .mnl-player-input {
        font-size: 1rem;
    }
    
    .mnl-field-group label {
        font-size: 0.7rem;
    }
}

/* Mobile Responsive - Phone */
@media (max-width: 640px) {
    .mnl-goal-row-fields {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .mnl-field-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .mnl-field-group label {
        flex-shrink: 0;
        width: 60px;
        font-size: 0.8rem;
    }
    
    .mnl-input {
        flex: 1;
    }
    
    .mnl-remove-group {
        justify-content: center;
    }
    
    .mnl-btn-remove {
        width: 100%;
        height: 48px;
    }
    
    .mnl-goals-container {
        padding: 0.75rem;
    }
    
    .mnl-goal-row {
        padding: 0.875rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .mnl-btn-add {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .mnl-goals-instructions {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   PENALTIES SECTION (Phase 4)
   ============================================ */

/* Penalties Section */
.mnl-gamesheet-penalties-section {
    margin-bottom: 2rem;
}

.mnl-penalties-instructions {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.875rem 1.125rem;
    border-radius: 0.5rem;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
}

/* Penalty Team Sections */
.mnl-penalty-team-section {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border: 2px solid #fecaca;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mnl-penalty-team-section.mnl-penalty-home {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.mnl-penalty-team-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.mnl-penalty-team-badge {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Penalties Container */
.mnl-penalties-container {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Individual Penalty Row */
.mnl-penalty-row {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.mnl-penalty-row:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mnl-penalty-row:last-child {
    margin-bottom: 0;
}

/* Penalty Row Fields */
.mnl-penalty-row-fields {
    display: grid;
    grid-template-columns: 100px 80px 120px 60px;
    gap: 0.75rem;
    align-items: end;
}

/* Penalty Minutes Select */
.mnl-penalty-minutes {
    font-weight: 600;
    cursor: pointer;
}

.mnl-penalty-minutes:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Mobile Responsive - Tablet */
@media (max-width: 768px) {
    .mnl-penalty-row-fields {
        grid-template-columns: 90px 70px 110px 50px;
        gap: 0.5rem;
    }
    
    .mnl-penalty-team-section {
        padding: 1rem;
    }
}

/* Mobile Responsive - Phone */
@media (max-width: 640px) {
    .mnl-penalty-row-fields {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .mnl-penalty-team-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .mnl-penalty-team-title {
        font-size: 1rem;
    }
    
    .mnl-penalty-team-badge {
        width: 28px;
        height: 28px;
    }
    
    .mnl-penalties-container {
        padding: 0.75rem;
    }
    
    .mnl-penalty-row {
        padding: 0.875rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .mnl-penalties-instructions {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   NETMINDER SECTION (Phase 5)
   ============================================ */

/* Netminder Section */
.mnl-gamesheet-netminder-section {
    margin-bottom: 2rem;
}

.mnl-netminder-instructions {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 0.875rem 1.125rem;
    border-radius: 0.5rem;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
}

/* Netminder Box */
.mnl-netminder-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 2px solid #86efac;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mnl-netminder-box-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Netminder Fields Grid */
.mnl-netminder-fields {
    display: grid;
    grid-template-columns: 100px 100px 100px 100px 120px;
    gap: 1rem;
    align-items: end;
}

.mnl-field-player .mnl-player-input {
    font-size: 1.25rem;
    text-align: center;
}

/* Save Percentage Display */
.mnl-sv-percent {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #475569;
    transition: all 0.3s ease;
}

/* Save Percentage Colors */
.mnl-sv-percent.mnl-sv-good {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #34d399;
    color: #065f46;
}

.mnl-sv-percent.mnl-sv-average {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
    color: #92400e;
}

.mnl-sv-percent.mnl-sv-poor {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #f87171;
    color: #991b1b;
}

/* Backup Netminder Toggle */
.mnl-backup-netminder-toggle {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 2px dashed #cbd5e1;
}

.mnl-backup-netminder-toggle .mnl-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
}

.mnl-backup-netminder-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.mnl-backup-netminder-toggle span {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
}

/* Backup Netminder Box */
.mnl-backup-netminder {
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
    border-color: #fbbf24;
}

/* Netminder Stat Input */
.mnl-netminder-stat {
    font-weight: 600;
    text-align: center;
}

/* Mobile Responsive - Tablet */
@media (max-width: 768px) {
    .mnl-netminder-fields {
        grid-template-columns: 80px 80px 80px 80px 100px;
        gap: 0.5rem;
    }
    
    .mnl-netminder-box {
        padding: 1rem;
    }
}

/* Mobile Responsive - Phone */
@media (max-width: 640px) {
    .mnl-netminder-fields {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .mnl-field-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .mnl-field-group label {
        flex-shrink: 0;
        width: 70px;
        font-size: 0.8rem;
    }
    
    .mnl-input {
        flex: 1;
    }
    
    .mnl-sv-percent {
        flex: 1;
    }
    
    .mnl-netminder-box {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .mnl-netminder-box-title {
        font-size: 1rem;
    }
    
    .mnl-backup-netminder-toggle {
        padding: 0.75rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .mnl-netminder-instructions {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
    
    .mnl-field-player .mnl-player-input {
        font-size: 1.1rem;
    }
    
    .mnl-sv-percent {
        font-size: 1.1rem;
    }
}

/* ============================================
   SUBMIT BUTTON (Phase 7)
   ============================================ */

.mnl-gamesheet-submit {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 3px solid #22c55e;
    border-radius: 1rem;
    text-align: center;
}

.mnl-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.mnl-btn-submit:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.5);
}

.mnl-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.mnl-btn-submit .mnl-btn-icon {
    font-size: 1.5rem;
}

.mnl-submit-help {
    margin: 1rem 0 0 0;
    color: #166534;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Save Goal and Penalty Buttons */
.mnl-btn-save-goal,
.mnl-btn-update-goal,
.mnl-btn-save-penalty {
    height: 44px;
    padding: 0 1rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: 2px solid #16a34a;
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mnl-btn-save-goal:hover,
.mnl-btn-update-goal:hover,
.mnl-btn-save-penalty:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
}

.mnl-btn-save-goal:disabled,
.mnl-btn-update-goal:disabled,
.mnl-btn-save-penalty:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mnl-btn-update-goal {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
}

.mnl-btn-update-goal:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Row Saved Animation */
.mnl-row-saved {
    background: #d1fae5 !important;
    animation: savedPulse 0.5s ease;
}

@keyframes savedPulse {
    0%, 100% { background: #ffffff; }
    50% { background: #d1fae5; }
}

/* Notification Toast */
.mnl-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.mnl-notification-show {
    opacity: 1;
    transform: translateX(0);
}

.mnl-notification-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 4px solid #22c55e;
    color: #065f46;
}

.mnl-notification-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .mnl-gamesheet-submit {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .mnl-btn-submit {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .mnl-submit-help {
        font-size: 0.85rem;
    }
    
    .mnl-notification {
        right: 10px;
        left: 10px;
        font-size: 0.85rem;
    }
    
    .mnl-btn-save-goal,
    .mnl-btn-update-goal,
    .mnl-btn-save-penalty {
        font-size: 0.75rem;
        padding: 0 0.75rem;
    }
}

/* ============================================
   Player Attendance Section (Phase 11)
   ============================================ */

.mnl-gamesheet-attendance-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.mnl-attendance-instructions {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.mnl-attendance-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.mnl-attendance-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mnl-attendance-tab:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.mnl-attendance-tab-active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.mnl-tab-badge {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mnl-attendance-team-section {
    display: none;
}

.mnl-attendance-team-section.mnl-attendance-active {
    display: block;
}

.mnl-attendance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 1.5rem;
}

.mnl-attendance-player {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mnl-attendance-player:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mnl-attendance-player input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.mnl-attendance-player input:checked + .mnl-player-info {
    font-weight: 600;
}

.mnl-attendance-player input:checked + .mnl-player-info .mnl-player-number {
    color: #16a34a;
}

.mnl-player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mnl-player-number {
    font-weight: 700;
    font-size: 0.95rem;
    color: #374151;
}

.mnl-player-name {
    font-size: 0.85rem;
    color: #6b7280;
}

.mnl-btn-save-attendance {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: 2px solid #16a34a;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.mnl-btn-save-attendance:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mnl-btn-save-attendance:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mnl-no-roster {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mnl-attendance-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }
    
    .mnl-attendance-player {
        padding: 10px;
    }
    
    .mnl-attendance-tab {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
