/* NFL Playoffs Bracket Pool - Main Styles */
:root {
    --primary-red: #c41e3a;
    --secondary-red: #8b1538;
    --dark-red: #5d0e24;
    --primary-grey: #2c2c2c;
    --light-grey: #4a4a4a;
    --lighter-grey: #6a6a6a;
    --border-grey: #cccccc;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
}

#nfl-bracket-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0f0f0 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.bracket-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-red);
}

.bracket-header h2 {
    color: var(--primary-grey);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.scoring-info {
    background: linear-gradient(45deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.scoring-info p {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Participant Form Styles */
.participant-form {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid var(--border-grey);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.participant-form.form-completed {
    background: #e8f5e8;
    border-color: var(--success-green);
    opacity: 0.8;
}

.participant-form.form-completed input {
    background: #f0f0f0;
    color: #666;
    cursor: not-allowed;
}

.participant-form.form-completed button[type="submit"] {
    background: var(--success-green) !important;
    cursor: not-allowed !important;
}

.participant-form h3 {
    color: var(--primary-grey);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-row input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid var(--border-grey);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-row input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
    background: var(--white);
}

.form-row button,
.submit-btn,
.reset-btn {
    background: linear-gradient(45deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    pointer-events: all;
    z-index: 100;
    position: relative;
}

.form-row button:hover,
.submit-btn:hover {
    background: linear-gradient(45deg, var(--secondary-red), var(--dark-red));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.reset-btn {
    background: linear-gradient(45deg, var(--light-grey), var(--lighter-grey));
    margin-left: 15px;
}

.submit-btn:disabled {
    background: linear-gradient(45deg, var(--light-grey), var(--lighter-grey)) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.submit-btn:not(:disabled),
.submit-btn.ready {
    cursor: pointer !important;
    background: linear-gradient(45deg, var(--primary-red), var(--secondary-red)) !important;
}

.submit-btn.disabled {
    cursor: not-allowed !important;
}

/* Force override any disabled styling */
#submit-bracket:not(:disabled) {
    cursor: pointer !important;
}

#submit-bracket.ready {
    cursor: pointer !important;
    pointer-events: all !important;
}

/* Bracket Layout */
.bracket-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 15px;
    align-items: start;
    margin: 30px auto;
    min-height: 800px;
    max-width: 1450px;
    width: 100%;
    justify-self: center;
}

.conference-side {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid var(--border-grey);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.nfc-side {
    border-left: 4px solid var(--primary-red);
}

.afc-side {
    border-right: 4px solid var(--primary-red);
}

.conference-title {
    text-align: center;
    color: var(--primary-red);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
}

.round {
    margin-bottom: 35px;
}

.round h4 {
    color: var(--primary-grey);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.matchup {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 18px 15px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 400px;
}

.matchup:hover {
    background: var(--white);
    border-color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.1);
    transform: translateY(-2px);
}

.team {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-width: 180px;
    min-height: 50px;
}

.team:hover {
    background: rgba(196, 30, 58, 0.05);
    transform: scale(1.02);
}

.team.selected {
    background: linear-gradient(45deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    transform: scale(1.05);
}

.team img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--white);
    padding: 3px;
    transition: all 0.3s ease;
}

.team.selected img {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.team span {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.vs {
    margin: 0 15px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-red);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.placeholder {
    color: var(--lighter-grey);
    font-style: italic;
    font-size: 0.9rem;
    padding: 10px;
    text-align: center;
    border: 2px dashed var(--border-grey);
    border-radius: 6px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.team.filled .placeholder {
    display: none;
}

/* Super Bowl Center */
.super-bowl-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    border: 3px solid var(--primary-red);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.2);
    position: relative;
    min-height: 300px;
    width: 100%;
    max-width: 550px;
    min-width: 510px;
    margin: 0 auto;
}

.super-bowl-center::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-red), var(--secondary-red), var(--primary-red));
    border-radius: 18px;
    z-index: -1;
    animation: gradient-rotate 3s ease-in-out infinite alternate;
}

@keyframes gradient-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(2deg); }
}

.super-bowl-logo {
    margin-bottom: 25px;
}

.super-bowl-logo img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.super-bowl-matchup {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 15px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid var(--border-grey);
    width: 100%;
    min-width: 480px;
    max-width: none;
}

.super-bowl-matchup .team {
    flex: 1;
    min-height: 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    gap: 12px;
    min-width: 180px;
}

.super-bowl-matchup .team img {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: contain;
    background: var(--white);
    padding: 2px;
}

.super-bowl-matchup .team span {
    font-size: 0.95rem;
    line-height: 1.3;
    word-break: break-word;
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.super-bowl-matchup .placeholder {
    min-height: 35px;
    font-size: 0.9rem;
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid var(--border-grey);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .bracket-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .afc-side {
        order: 2;
        direction: ltr;
        border-right: none;
        border-left: 4px solid var(--primary-red);
    }
    
    .super-bowl-center {
        order: 3;
    }
    
    .conference-side {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-row input {
        min-width: 100%;
    }
    
    .matchup {
        flex-direction: column;
        gap: 10px;
    }
    
    .team img {
        width: 35px;
        height: 35px;
    }
    
    .team span {
        font-size: 0.85rem;
    }
    
    .vs {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    
    .super-bowl-logo img {
        max-width: 150px;
    }
}

/* Loading and Message Styles */
.nfl-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(45deg, var(--bg-light), var(--white));
    border: 2px solid var(--border-grey);
    border-radius: 12px;
    color: var(--primary-grey);
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.loading {
    text-align: center;
    padding: 20px;
    color: var(--primary-red);
    font-size: 1.1rem;
}

.success-message {
    background: linear-gradient(45deg, var(--success-green), #20c997);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.error-message {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Standings and Picks Display */
#standings-container {
    max-width: 98%;
    width: 98%;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    font-size: 11px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #c41e3a;
    overflow: hidden;
}

.standings-header {
    background: linear-gradient(135deg, #c41e3a, #8b1538);
    color: white;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 3px solid #8b1538;
}

.standings-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.standings-table-container {
    overflow-x: auto;
    background: white;
    -webkit-overflow-scrolling: touch;
}

.standings-table-wrapper {
    min-width: 100%;
}

.standings-table {
    width: 100%;
    min-width: 1600px;
    border-collapse: collapse;
    font-size: 11px;
    font-family: Arial, sans-serif;
}

/* Standings Table Headers */
.standings-table th {
    background: #2c2c2c;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 8px 6px;
    border: 1px solid #d1d5db;
    font-size: 9px;
    line-height: 1.2;
    vertical-align: middle;
}

.standings-table .participant-header {
    background: #2c2c2c !important;
    color: white;
    text-align: left;
    padding: 8px 10px;
    width: 140px;
    font-size: 13px;
    position: sticky;
    left: 0;
    z-index: 10;
    font-weight: bold;
}

.standings-table .sb-total-header,
.standings-table .points-total-header {
    background: #2c2c2c !important;
    color: white;
    width: 60px;
    font-size: 11px;
    font-weight: bold;
}

.standings-table .game-header {
    width: 70px;
    text-align: center;
    font-size: 9px;
    line-height: 1.2;
    padding: 6px 4px;
    background: #2c2c2c !important;
    color: white;
}

.standings-table .game-header.sb {
    width: 80px;
    font-weight: bold;
    background: #2c2c2c !important;
    color: white;
}

/* Points Row */
.standings-table .points-row th {
    background: #2c2c2c !important;
    color: white;
    font-weight: bold;
    padding: 4px 4px;
    font-size: 8px;
}

.standings-table .points-cell {
    background: #2c2c2c !important;
    color: white;
}

/* Table Body */
.standings-table .participant-row {
    border-bottom: 1px solid #e5e7eb;
}

.standings-table .participant-row:nth-child(even) {
    background-color: #f9fafb;
}

.standings-table .participant-row:hover {
    background-color: #fef2f2;
}

/* Prize Winner Highlighting */
.standings-table .participant-row.first-place-winner .participant-cell {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: black;
    font-weight: bold;
    border: 2px solid #FFD700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.standings-table .participant-row.second-place-winner .participant-cell {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: black;
    font-weight: bold;
    border: 2px solid #C0C0C0;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.standings-table .participant-row.third-place-winner .participant-cell {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    color: black;
    font-weight: bold;
    border: 2px solid #CD7F32;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.standings-table .participant-cell {
    background: white;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    text-align: left;
    font-weight: bold;
    color: #1f2937;
    width: 140px;
    font-size: 14px;
    position: sticky;
    left: 0;
    z-index: 5;
    border-right: 2px solid #c41e3a;
}

.standings-table .participant-name {
    line-height: 1.2;
    word-wrap: break-word;
    max-width: 130px;
}

.standings-table .pick-cell {
    padding: 3px;
    border: 1px solid #d1d5db;
    text-align: center;
    width: 70px;
    height: 45px;
    vertical-align: middle;
    background: white;
}

.standings-table .pick-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.standings-table .pick-logo-wrapper.correct-pick {
    background: #dcfce7;
    border: 2px solid #16a34a;
    box-shadow: inset 0 1px 2px rgba(34, 197, 94, 0.1);
}

.standings-table .pick-logo-wrapper.incorrect-pick {
    background: #fef2f2;
    border: 2px solid #dc2626;
    box-shadow: inset 0 1px 2px rgba(220, 38, 38, 0.1);
}

.standings-table .team-logo {
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
    border-radius: 2px;
}

.standings-table .no-pick {
    color: #9ca3af;
    font-size: 12px;
    font-weight: bold;
}

.standings-table .total-points-cell {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    text-align: center;
    font-weight: bold;
    font-size: 13px;
    color: #1f2937;
    width: 60px;
    vertical-align: middle;
    padding: 4px;
}

.standings-table .total-points-cell.points-total {
    background: linear-gradient(135deg, #c41e3a, #8b1538);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

/* Standings Footer */
.standings-footer {
    background: #f9fafb;
    padding: 15px 20px;
    border-top: 2px solid #e5e7eb;
}

.standings-footer .pool-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.standings-footer .participant-count {
    font-size: 12px;
    font-weight: bold;
    color: #374151;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
}

.standings-footer .cashpot-breakdown {
    text-align: center;
}

.standings-footer .cashpot-breakdown h3 {
    color: black;
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.standings-footer .prize-structure {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.standings-footer .prize {
    color: black;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(196, 30, 58, 0.3);
    white-space: nowrap;
}

.standings-footer .prize.first-place {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.4);
}

.standings-footer .prize.second-place {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    box-shadow: 0 2px 4px rgba(192, 192, 192, 0.4);
}

.standings-footer .prize.third-place {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    box-shadow: 0 2px 4px rgba(205, 127, 50, 0.4);
}

.standings-footer .prize sup {
    font-size: 0.7em;
    font-weight: normal;
}

/* Picks Matrix Styles - NFL PDF Style */
#all-picks-matrix {
    max-width: 100%;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    font-size: 11px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #c41e3a;
    overflow: hidden;
}

.matrix-header {
    background: linear-gradient(135deg, #c41e3a, #8b1538);
    color: white;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 3px solid #8b1538;
}

.matrix-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.picks-matrix-container {
    overflow-x: auto;
    background: white;
    -webkit-overflow-scrolling: touch;
}

.matrix-table-wrapper {
    min-width: 100%;
}

.picks-matrix-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: collapse;
    font-size: 10px;
    font-family: Arial, sans-serif;
}

/* Table Headers */
.picks-matrix-table th {
    background: #2c2c2c;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 6px 4px;
    border: 1px solid #666;
    font-size: 9px;
    line-height: 1.1;
    vertical-align: middle;
}

.participant-header {
    background: #2c2c2c !important;
    text-align: left;
    padding: 6px 8px;
    width: 120px;
    font-size: 12px;
    position: sticky;
    left: 0;
    z-index: 10;
}

.sb-total-header {
    background: #2c2c2c !important;
    width: 50px;
    font-size: 10px;
}

.game-header {
    width: 60px;
    text-align: center;
    font-size: 8px;
    line-height: 1;
    padding: 4px 2px;
}

.game-header.nfc-wc,
.game-header.nfc-div,
.game-header.nfc-conf {
    background: #2c2c2c !important;
}

.game-header.afc-wc,
.game-header.afc-div,
.game-header.afc-conf {
    background: #2c2c2c !important;
}

.game-header.sb {
    background: #2c2c2c !important;
    width: 70px;
    font-weight: bold;
}

/* Points Row */
.points-row th {
    background: #4b5563 !important;
    color: white;
    font-weight: bold;
    padding: 3px 4px;
    font-size: 8px;
}

.points-cell.points-2 {
    background: #2c2c2c !important;
}

.points-cell.points-3 {
    background: #2c2c2c !important;
}

.points-cell.points-5 {
    background: #2c2c2c !important;
}

.points-cell.points-8 {
    background: #2c2c2c !important;
}

/* Table Body */
.participant-row {
    border-bottom: 1px solid #e5e7eb;
}

.participant-row:nth-child(even) {
    background-color: #f9fafb;
}

.participant-row:hover {
    background-color: #fef2f2;
}

.participant-cell {
    background: white;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    text-align: left;
    font-weight: bold;
    color: #1f2937;
    width: 120px;
    font-size: 14px;
    position: sticky;
    left: 0;
    z-index: 5;
    border-right: 2px solid #c41e3a;
}

.participant-name {
    line-height: 1.2;
    word-wrap: break-word;
    max-width: 110px;
}

.pick-cell {
    padding: 2px;
    border: 1px solid #d1d5db;
    text-align: center;
    width: 60px;
    height: 40px;
    vertical-align: middle;
    background: white;
}

.pick-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 36px;
    border-radius: 3px;
    transition: all 0.2s ease;
}


.team-logo {
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    border-radius: 2px;
}

.no-pick {
    color: #9ca3af;
    font-size: 12px;
    font-weight: bold;
}

.total-points-cell {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    color: #1f2937;
    width: 50px;
    vertical-align: middle;
}

/* Matrix Footer */
.matrix-footer {
    background: #f9fafb;
    padding: 15px 20px;
    border-top: 2px solid #e5e7eb;
}

.pool-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.participant-count {
    font-size: 12px;
    font-weight: bold;
    color: #374151;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
}

.cashpot-breakdown {
    text-align: center;
}

.cashpot-breakdown h3 {
    color: black;
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prize-structure {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.prize {
    color: black;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(196, 30, 58, 0.3);
    white-space: nowrap;
}

.prize.first-place {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.4);
}

.prize.second-place {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    box-shadow: 0 2px 4px rgba(192, 192, 192, 0.4);
}

.prize.third-place {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    box-shadow: 0 2px 4px rgba(205, 127, 50, 0.4);
}

.prize sup {
    font-size: 0.7em;
    font-weight: normal;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .picks-matrix-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .pool-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    #all-picks-matrix {
        margin: 10px;
        border-radius: 6px;
    }
    
    .matrix-header {
        padding: 10px 15px;
    }
    
    .matrix-header h2 {
        font-size: 16px;
    }
    
    .picks-matrix-table {
        font-size: 9px;
        min-width: 1200px;
    }
    
    .picks-matrix-table th {
        font-size: 8px;
        padding: 4px 2px;
    }
    
    .game-header {
        font-size: 7px;
        padding: 3px 1px;
        width: 50px;
    }
    
    .participant-header {
        width: 100px;
        font-size: 9px;
    }
    
    .participant-cell {
        width: 100px;
        padding: 4px 6px;
        font-size: 8px;
    }
    
    .pick-cell {
        width: 50px;
        height: 36px;
        padding: 1px;
    }
    
    .pick-logo-wrapper {
        height: 32px;
    }
    
    .team-logo {
        max-width: 20px;
        max-height: 20px;
    }
    
    .total-points-cell {
        font-size: 10px;
    }
    
    .prize-structure {
        flex-direction: column;
        gap: 6px;
    }
    
    .matrix-footer {
        padding: 12px 15px;
    }
}

/* Animation Classes */
.bracket-layout.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.submit-btn.ready {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(196, 30, 58, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3); }
}