/* General body styling */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
}

/* Header styling */
.header {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header h1 {
    margin: 0;
    font-size: 26px;
}

.slot-buttons {
    display: flex;
}

.slot-buttons button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.slot-buttons button:hover {
    background-color: #0b7dda;
}

/* Flex container */
.container {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 60px); /* Full viewport height minus header height */
    flex-wrap: wrap;
}

/* Panel styling */
.panel {
    flex: 1; /* Equal space for all panels */
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
    margin: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Panel header */
.section-header {
    margin-bottom: 10px;
}

/* Input field styles */
input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

textarea {
    resize: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Label styles */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Button styles */
.btn-primary, .btn-secondary {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #4CAF50;
}

.btn-secondary {
    background-color: #2196F3;
}

.btn-primary:hover, .btn-secondary:hover {
    background-color: #45a049;
}

/* Margin between player inputs */
.input-field {
    margin-bottom: 10px;
}

/* Responsive layout: change direction to column on smaller screens */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }
}

/* Add styles for the round-robin table */
.round-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

.round-table th {
    background-color: #4CAF50;
    color: white;
}


.round-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/*

!* Styling for tables of the second leg *!
.round-table.first-leg {
    border: 2px solid #e6ffe6;
    background-color: #f9fff9;
}

.round-table.first-leg tr:nth-child(even) {
    background-color: #f3fff3;
}*/

.round-table.second-leg {
    border: 2px solid #ffe6e6;
    background-color: #fff9f9;
}

.round-table.second-leg tr:nth-child(even) {
    background-color: #fff3f3;
}


.score-input {
    width: 60px;
    text-align: center;
}

h3 {
    margin-top: 20px;
    font-size: 1.2em;
}

.hidden {
    display: none;
}

/* Style for the checkbox container */
.checkbox-container {
    margin-top: 15px; /* Add space above the checkboxes */
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between checkboxes */
}

/* Style for individual checkbox labels */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}

.checkbox-label input[type="checkbox"] {
    display: none; /* Hide the default checkbox */
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #45a049;
    background-color: #fff;
    margin-right: 10px;
    display: inline-block;
    position: relative;
}

.checkbox-custom:after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #45a049;
    border-radius: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom:after {
    opacity: 1;
}

.checkbox-text {
    display: inline-block;
}

.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
    border-color: #0056b3;
}

.rotate-text {
    transform: rotate(-90deg);
    white-space: nowrap;
    height: 100px;
    vertical-align: middle;
}

.rotate {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}

.round-section {
    margin-bottom: 50px;
}

.btn-delete {
    background-color: #f87171;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.btn-delete:hover {
    background-color: #f55757;
}

.header {
    position: relative;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.standings-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/*.standings-table tr:nth-child(even) {*/
/*    background-color: #f9f9f9;*/
/*}*/

/* Add some hover effects to clickable rows */
.clickable-row {
    cursor: pointer;
    background-color: #f9f9f9;
}

.clickable-row:hover {
    background-color: #e0e0e0;
}

/* Add some padding and margin to the summary panel */
#summary-panel {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #f4f4f4;
}

#summary-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

#summary-content p {
    margin: 10px 0;
}

/* Add styles for the tables */
.player-match-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-radius: 3px;
    overflow: hidden;
}

/* Define border and padding for the table cells */
.player-match-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.player-match-table.second-leg {
    background-color: #fff9f9;
}

.highlighted {
    background-color: #e0e0e0;
}
