body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 100%;
    max-width: 550px;
}

h1 {
    color: #333;
    font-weight: 600;
    margin-bottom: 30px;
}

.deck-selection {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.deck-selection h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #4A5568;
    font-size: 1.25em;
    font-weight: 500;
}

select, input[type="text"] {
    padding: 10px 12px;
    margin: 5px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    min-width: 120px;
    font-size: 0.95em;
    font-family: 'Poppins', sans-serif;
    color: #2D3748;
    background-color: #f7fafc;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

select:focus, input[type="text"]:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2);
}

input[type="text"][disabled] {
    background-color: #e2e8f0;
    color: #718096;
    cursor: not-allowed;
}

button#reset-button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: transform 0.1s ease-out, background-color 0.2s ease-in-out;
    margin-top: 10px;
}

button#reset-button:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    transform: translateY(-1px);
}

#lineup-display {
    margin-top: 30px;
    text-align: left;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9fafb;
}

#lineup-display h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
}

#lineup-display p {
    margin: 8px 0;
    color: #4A5568;
    font-size: 0.95em;
}

.color-circle {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid rgba(0,0,0,0.2);
    vertical-align: middle;
}

select option {
    padding: 4px 2px;
}

select option:disabled {
    color: #cccccc;
    background-color: #f0f0f0;
}

/* Win Rate Table Styles */
#winrate-table-container {
    margin-top: 40px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 95%;
    max-width: 1200px;
    overflow-x: auto;
    box-sizing: border-box;
}

#winrate-table-container h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

#winrate-table-container p {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 15px;
}

#matchup-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8em; /* Smaller font for the table to fit more data */
}

#matchup-table th, #matchup-table td {
    border: 1px solid #e0e0e0;
    padding: 6px 8px;
    text-align: center;
    min-width: 70px; /* Minimum width for cells */
}

#matchup-table th {
    background-color: #f7fafc;
    font-weight: 500;
    color: #4A5568;
}

#matchup-table tbody th {
    text-align: left;
    background-color: #f9fafb;
}

#matchup-table tbody tr:nth-child(even) {
    background-color: #fdfdfe;
}

#matchup-table tbody tr:hover td {
    background-color: #f0f4f8;
}

/* Win rate specific cell styling */
.winrate-high {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green text */
}

.winrate-even {
    background-color: #fff3cd; /* Light yellow */
    color: #856404; /* Dark yellow/brown text */
}

.winrate-low {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red text */
}

/* Opponent Lineup & Ban Suggestions Styling */
#opponent-lineup-container,
#ban-suggestion-container {
    margin-top: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 100%;
    max-width: 550px; /* Match main container width */
    margin-left: auto; /* Center these containers */
    margin-right: auto;
}

#opponent-lineup-container h2,
#ban-suggestion-container h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
}

#opponent-lineup-container .deck-selection h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #4A5568;
    font-size: 1.1em; /* Slightly smaller than main deck h2 */
    font-weight: 500;
}

#calculate-bans-button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #34D399 0%, #059669 100%); /* Green gradient */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: transform 0.1s ease-out, background-color 0.2s ease-in-out;
    margin-bottom: 20px;
}

#calculate-bans-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
}

.suggestion-box {
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #f9fafb;
    font-size: 0.95em;
}

.suggestion-box span {
    font-weight: 600;
    color: #764ba2; /* Theme color for emphasis */
}

/* Counter Lineup Generator Styling */
#counter-lineup-generator-container {
    margin-top: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 100%;
    max-width: 550px; /* Match main container width */
    margin-left: auto; /* Center these containers */
    margin-right: auto;
}

#counter-lineup-generator-container h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

#counter-lineup-generator-container p {
    color: #4A5568;
    margin-bottom: 20px;
    font-size: 0.9em;
}

#counter-lineup-generator-container .deck-selection h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #4A5568;
    font-size: 1.1em;
    font-weight: 500;
}

#generate-counter-button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%); /* Blue gradient */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: transform 0.1s ease-out, background-color 0.2s ease-in-out;
    margin-top: 10px; /* Space above button */
    margin-bottom: 20px;
}

#generate-counter-button:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    transform: translateY(-1px);
}

#suggested-counter-lineup-display div {
    margin: 5px 0;
    font-size: 0.9em;
}

#suggested-counter-lineup-display span {
    font-weight: 600;
    color: #4A5568;
}

#counter-lineup-score span {
    color: #3B82F6; /* Blue to match button */
} 