/* style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.container {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h1,
h2 {
    text-align: center;
    color: #444;
    margin-top: 0;
}

h2 {
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: bold;
    margin-bottom: -10px;
}

input[type="text"] {
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: #5cb85c;
    outline: none;
}

button {
    background-color: #5cb85c;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 3px solid #4cae4c;
}

button:hover {
    background-color: #4cae4c;
}

.message {
    text-align: center;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
}

.message.success {
    background-color: #dff0d8;
    color: #3c763d;
}

.message.error {
    background-color: #f2dede;
    color: #a94442;
}

.player-list ul {
    list-style-type: none;
    padding: 0;
}

.player-list li {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-align: center;
}

.navigation {
    margin-top: 30px;
    text-align: center;
}

.button-link {
    display: inline-block;
    background-color: #6c757d;
    /* A neutral gray color */
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 3px solid #5a6268;
}

.button-link:hover {
    background-color: #5a6268;
}

/* Add this to the end of style.css */

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em;
}

.results-table th,
.results-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.results-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.results-table .player-name {
    text-align: left;
    font-weight: bold;
}

.pick-correct {
    background-color: #dff0d8;
    /* Light green */
    color: #3c763d;
    font-weight: bold;
}

.pick-incorrect {
    background-color: #f2dede;
    /* Light red */
    color: #a94442;
    opacity: 0.7;
}

.pick-pow {
    font-weight: bold;
    position: relative;
}

.pick-pow::after {
    content: ' ★';
    /* Star for POW */
    color: #e67e22;
}

/* Add this to the end of style.css */
.highlight-winner {
    background-color: #dff0d8;
    /* Light green from our results table */
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
}

.control-panel-section {
    margin-bottom: 30px;
}

.control-panel-section h2 {
    font-size: 1.4em;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.control-buttons {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.control-buttons li {
    margin-bottom: 15px;
}

.control-buttons a {
    display: block;
    background-color: #5cb85c;
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.2s, transform 0.1s;
    border-bottom: 3px solid #4cae4c;
}

.control-buttons a:hover {
    background-color: #4cae4c;
    transform: translateY(-2px);
}

.control-buttons p {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* Add this to the end of your style.css */

.analysis-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.team-column {
    flex: 1;
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.team-column h3 {
    margin-top: 0;
    text-align: center;
}

.history-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.history-row input {
    flex: 2;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.diff-box {
    flex: 1;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    min-width: 50px;
    background-color: #e9ecef;
    color: #495057;
}

.diff-win {
    background-color: #d4edda;
    color: #155724;
}

.diff-loss {
    background-color: #f8d7da;
    color: #721c24;
}

.summary-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    font-weight: bold;
    align-items: center;
}

.summary-row .label {
    flex: 2;
    text-align: right;
}

.summary-row .value {
    flex: 1;
    text-align: center;
}

/* Add this to the end of your style.css */
.total-score-col {
    font-weight: bold;
    background-color: #e9ecef;
}

/* Add to the end of style.css */

.prediction-box {
    background: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    border: 3px solid transparent;
}

.prediction-correct {
    border-color: #28a745;
    /* Green */
}

.prediction-incorrect {
    border-color: #dc3545;
    /* Red */
}

.summary-box {
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}