body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* ensure padding is included in element's size calculations */
*, *::before, *::after {
    box-sizing: border-box;
}

#head {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    top: -20px;
    width: 100%;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

#head button {
    background-color: rgb(55, 55, 255);
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-top: 0;
    cursor: pointer;
    border-radius: 5px;
    margin-left: auto;
}

#navbar {
    background-color: #555;
    color: white;
    padding: 10px;
    text-align: center;
    position: fixed;
    top: 80px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#navbar button{
    background-color: #fff;
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    width: max(100px, 20%);
    transition: all 0.3s ease;
}

#navbar button:hover {
    background-color: #e8e8e8;
    transform: translateY(-2px);
}

#navbar button.active {
    background-color: #667eea;
    color: white;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

#content {
    background-color: white;
    padding: 20px;
    margin-top: 0;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
    overflow-y: scroll;
}

/* Table Styling */
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.results-table thead {
    background: #333;
    color: white;
}

.results-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.results-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.results-table tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: inset 0 0 10px rgba(102, 126, 234, 0.1);
}

.results-table tbody tr:last-child {
    border-bottom: none;
}

.results-table td {
    padding: 12px 12px;
    color: #333;
}

.results-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.results-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Input Field Styling */
.edit-input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: #333;
    transition: all 0.2s ease;
}

.edit-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    background-color: #f8f9ff;
}

.edit-input[type='number'] {
    text-align: center;
}

.edit-input[type='text'],
.edit-input[type='number'] {
    font-family: inherit;
}

/* Select-Dropdown Styling */
select.edit-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
    cursor: pointer;
}

/* Button Styling */
.delete-btn, .save-btn, .add-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.delete-btn {
    background-color: #ff6b6b;
    color: white;
}

.delete-btn:hover {
    background-color: #ee5a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.save-btn {
    background-color: #51cf66;
    color: white;
}

.save-btn:hover {
    background-color: #40c057;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(81, 207, 102, 0.3);
}

.add-btn {
    background-color: #667eea;
    color: white;
}

.add-btn:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Success and Error Messages */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Team Grouping Styles for Mannschaften Tab */
.team-group-row {
    background-color: #e8eaf6 !important;
    border-left: 4px solid #667eea;
}

.team-group-row:hover {
    background-color: #dde1f0 !important;
}

.team-separator {
    height: 12px;
    background: linear-gradient(to right, transparent 0%, #ccc 5%, #ccc 95%, transparent 100%);
    border: none !important;
}

.team-separator td {
    padding: 0;
    background: #f5f5f5;
    border: none !important;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}