﻿/* General reset and base styles */

input[type="number"] {
    -moz-appearance: textfield !important;
}

    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
        margin: 0;
    }

/* Hide the default blazor reconnect modal to handle offline PWA switching and sideloading the offline JS */ 
#components-reconnect-modal {
    display:none !important;
}

button.btn-login:disabled {
    opacity: 0.6;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

* {
    scrollbar-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.rank {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-weight: 500;
}

.user-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.points {
    font-weight: 500;
    color: var(--primary-dark-color);
}

/* Protocol */
.protocol-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 16px;
}

.protocol-item {
    padding: 12px;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.timestamp {
    font-size: 0.8rem;
    color: var(--text-secondary-color);
    margin-bottom: 4px;
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    overflow: hidden;
    margin-top: 11px;
    /*animation: fadeIn 0.05s ease;*/
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu.show {
    display: block;
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    margin: 6px 0;
}

/* Responsive styles */
@media (min-width: 768px) {
    /* Tablet and desktop styles */
    .container.menu-pinned {
        /*display: flex;*/
    }

        .container.menu-pinned .side-menu {
            /*position: relative;
            transform: translateX(0);
            top: 0;*/
        }

    main.menu-pinned {
        margin-left: 15.5rem;
        width: calc(100% - var(--side-menu-width));
    }
}

@media (max-width: 767px) {
    /* Mobile styles - moderat vergrößerte Header-Elemente */
    .header-center {
       /* position: absolute;
        left: 50%;
        transform: translateX(-50%);*/
    }

    /* Optimierte Spaltenbreiten für Mobilgeräte */
    .match-table th:nth-child(1), .match-table td:nth-child(1) {
        width: 7.5rem;
        min-width: 7.5rem;
        max-width: 7.5rem;
    }
    /* Datum - schmaler für Mobile */
    .match-table th:nth-child(2), .match-table td:nth-child(2) {
        width: 5rem;
        min-width: 5rem;
        max-width: 5rem;
    }
    /* Uhrzeit - schmaler für Mobile */
    .match-table th:nth-child(3), .match-table td:nth-child(3) {
        width: 3rem;
        min-width: 3rem;
        max-width: 3rem;
    }
    /* Logo Spielgegner 1 */
    .match-table th:nth-child(4), .match-table td:nth-child(4) {
        width: 12rem;
        min-width: 12rem;
        max-width: 12rem;
    }
    /* Spielgegner 1 Name - schmaler für Mobile */
    .match-table th:nth-child(5), .match-table td:nth-child(5) {
        width: 6rem;
        min-width: 6rem;
        max-width: 6rem;
    }
    /* Spielstand */
    .match-table th:nth-child(6), .match-table td:nth-child(6) {
        width: 3rem;
        min-width: 3rem;
        max-width: 3rem;
    }
    /* Logo Spielgegner 2 */
    .match-table th:nth-child(7), .match-table td:nth-child(7) {
        width: 12rem;
        min-width: 12rem;
        max-width: 12rem;
    }
    /* Spielgegner 2 Name - schmaler für Mobile */
    .match-table th:nth-child(8), .match-table td:nth-child(8) {
        width: 4.5rem;
        min-width: 4.5rem;
        max-width: 4.5rem;
    }
    /* Tipp */
    .match-table th:nth-child(9), .match-table td:nth-child(9) {
        width: 4rem;
        min-width: 4rem;
        max-width: 4rem;
    }
    /* Tipps */
    .match-table th:nth-child(10), .match-table td:nth-child(10) {
        width: 6rem;
        min-width: 6rem;
        max-width: 6rem;
    }
    /* Status */

    /* Überschreiben der Tabellenkopf-Erweiterung für Mobilgeräte - NICHT mehr bis zum Bildschirmrand */
    .match-table thead::after {
        display: none; /* Entfernt die Erweiterung komplett auf Mobilgeräten */
    }

    #btn_login {
        display: none; /* Hide login on small screens, show in drawer instead */
    }

    /* Im Tablet/Mobile-Modus ist jede Zeile klickbar für den Tipp-Dialog */
    .match-table tbody tr {
        cursor: pointer;
    }
}

/* For landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .container {
        height: calc(100% - var(--header-height) - var(--secondary-toolbar-height));
    }

    .side-menu {
        height: calc(100% - var(--header-height) - var(--secondary-toolbar-height));
    }

    .action-button span {
        display: none;
    }

    .action-button i {
        margin-right: 0;
    }
}

/* Responsive styles für kleine Bildschirme */
@media (max-width: 480px) {
    .action-button span {
        display: none;
    }

    .action-button i {
        margin-right: 0;
    }

    .header-right {
        width: 140px;
    }

    .header-center {
        position: static;
        transform: none;
    }

    /* Noch größere Schrift für das Drawer-Menü auf kleinen Geräten */
    .dropdown-item {
        padding: 16px;
        font-size: 1.15rem;
    }

        .dropdown-item i {
            font-size: 1.2rem;
        }
}

:root {
    /* Cadenabbia-Türkis als Hauptfarbe */
    --primary-color: #0aaf25;
    --primary-dark-color: #0aaf25;
    --secondary-color: #607D8B;
    --background-color: white;
    --surface-color: #FFFFFF;
    --text-color: #212121;
    --text-secondary-color: #757575;
    --error-color: #F44336;
    --success-color: #4CAF50;
    --border-radius: 4px;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --header-height: 60px;
    --secondary-toolbar-height: 56px;
    --side-menu-width: 250px;
    /* Neue Variable für die Menü-Hintergrundfarbe */
    --menu-background-color: #f5f7fa;
    /* Neue Variable für die Tabellenkopf-Hintergrundfarbe */
    --table-header-background: #f0f0f0;
}

/* Dark Mode Theme im iOS-Stil - weniger starker Kontrast */
[data-theme="dark"] {
    --primary-color: #0aaf25; /* iOS Blauton */
    --primary-dark-color: #0aaf25; /* iOS dunklerer Blauton */
    --secondary-color: #64D2FF;
    --background-color: #1C1C1E; /* iOS typischer Hintergrund */
    --surface-color: #2C2C2E; /* iOS Kartenoberfläche */
    --text-color: rgba(255, 255, 255, 0.87); /* iOS Primärtext mit leichter Transparenz */
    --text-secondary-color: rgba(255, 255, 255, 0.6); /* iOS Sekundärtext */
    --error-color: #FF453A; /* iOS Rot */
    --success-color: #30D158; /* iOS Grün */
    --shadow: 0 2px 8px r,app.gba(0, 0, 0, 0.3);
    --menu-background-color: #2C2C2E; /* iOS Kartenoberfläche */
    --table-header-background: #3A3A3C; /* iOS Listenkopf */
}

html, body {
    height: 100%;
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    overscroll-behavior: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Roboto Condensed", Roboto, Helvetica, Arial, sans-serif;
    background-color: white;
    color: var(--text-color);
    line-height: 1.6;
}

    body[data-theme='dark'] {
        background-color: #2C2C2E;
    }

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    background-color: var(--primary-color);
    color: white;
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    will-change: transform;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    min-width: max-content;
}

.header-left {
    width: 12rem;
}

.header-right {
    width: 180px;
    justify-content: flex-end;
}

.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    width: 0;
}

#lbl_appname {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}

/* Button styles mit größeren Touch-Bereichen */
button {
    background: none;
    border: none;
    color: white;
    padding: 10px; /* Vergrößerter Padding für besseren Touch-Bereich */
    cursor: pointer;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px; /* Minimale Breite für Touch-Ziele */
    min-height: 42px; /* Minimale Höhe für Touch-Ziele */
}

    button:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

/* Größere Icons in der Header-Leiste */
header button i {
    font-size: 1.3rem; /* Ausgewogene Icon-Größe */
}

#btn_login {
    margin-right: 12px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
}

/* Avatar and notification badge */
.avatar {
    position: relative;
    width: 36px; /* Ausgewogene Größe */
    height: 36px; /* Ausgewogene Größe */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--error-color);
    color: white;
    font-size: 0.75rem;
    border-radius: 50%;
    width: 18px; /* Ausgewogene Größe */
    height: 18px; /* Ausgewogene Größe */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Avatar mit echten Bildern */
.avatar img,
.user-avatar img,
.opponent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Secondary toolbar */
.secondary-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--secondary-toolbar-height);
    background-color: var(--surface-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 0 16px;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 900;
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: background-color 0.2s;
}

    .search-box:focus-within {
        background-color: rgba(0, 0, 0, 0.06);
    }

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary-color);
    font-size: 0.9rem;
}

#search-input {
    border: none;
    background: transparent;
    padding: 10px 10px 10px 36px;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-color);
}

.clear-search-button {
    background: transparent;
    border: none;
    color: var(--text-secondary-color);
    padding: 0 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

    .clear-search-button.visible {
        opacity: 1;
    }

/* Container layout */
.container {
    display: flex;
    margin-top: calc(var(--header-height) + var(--secondary-toolbar-height));
    height: calc(100% - var(--header-height) - var(--secondary-toolbar-height));
    position: relative;
    overflow: hidden;
}

/* Side menu styles */
.side-menu {
    width: var(--side-menu-width);
    background-color: var(--menu-background-color);
    height: 100%;
    position: fixed;
    left: 0;
    /*top: 3.6rem;*/
    box-shadow: var(--shadow);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 900;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

    .side-menu.open {
        transform: translateX(0);
    }

    .side-menu.pinned {
/*        transform: translateX(0);
        position: relative;
        top: 0;*/
    }

/* Dock button */
.dock-button {
    align-self: flex-end;
    margin: 10px;
    background-color: rgba(28, 169, 201, 0.05);
    color: var(--text-color);
    border: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .dock-button:hover {
        background-color: rgba(28, 169, 201, 0.15);
    }

    .dock-button i {
        transform: rotate(45deg);
        transition: transform 0.2s ease;
    }

    .dock-button.docked i {
        transform: rotate(0);
        color: var(--primary-color);
    }

.side-menu ul {
    list-style: none;
    padding: 0 0 16px 0;
    margin-top: 0;
    width: 100%;
}

.side-menu li {
    margin-bottom: 4px;
    width: 100%;
}

    .side-menu li.active a {
        background-color: rgba(28, 169, 201, 0.15);
        border-left: 3px solid var(--primary-color);
        font-weight: 500;
    }

.side-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
    width: 100%;
}

    .side-menu a:hover {
        background-color: rgba(28, 169, 201, 0.1);
    }

    .side-menu a i {
        margin-right: 16px;
        color: var(--primary-color);
        width: 24px;
        text-align: center;
    }

/* Main content area */
main {
    flex-grow: 1;
    padding: 0;
    margin-left: 0;
    transition: margin-left 0.3s ease;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

    main.menu-pinned {
        margin-left: 0;/*var(--side-menu-width);*/
        width: calc(100% - var(--side-menu-width));
    }

/* Page styles */
.page {
    display: none;
    padding: 0;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
    overflow: hidden;
    flex: 1;
}

    .page.active {
        display: flex;
        flex-direction: column;
    }

h2 {
    margin-bottom: 16px;
    color: var(--primary-dark-color);
    padding: 16px;
}

.dummy-content {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Verbesserte Tabellenspezifische Styles */
.match-table {
    width: auto; /* Statt fester Breite lassen wir die Tabelle den Inhalt bestimmen */
    min-width: 0;
    max-width: none;
    table-layout: fixed; /* Erzwingt feste Spaltenbreiten */
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    border-spacing: 0;
}

.match-table-container {
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    box-shadow: var(--shadow);
    border-radius: 0;
    background-color: var(--surface-color);
    -webkit-overflow-scrolling: touch;
    width: 100%;
    position: relative;
}

/* Desktop Tabellenbreiten */
.match-table th:nth-child(1), .match-table td:nth-child(1) {
    width: 8rem;
    min-width: 8rem;
    max-width: 8rem;
}
/* Datum */
.match-table th:nth-child(2), .match-table td:nth-child(2) {
    width: 6rem;
    min-width: 6rem;
    max-width: 6rem;
}
/* Uhrzeit */
.match-table th:nth-child(3), .match-table td:nth-child(3) {
    width: 3.5rem;
    min-width: 4.5rem;
    max-width: 3.5rem;
}
/* Logo Spielgegner 1 */
.match-table th:nth-child(4), .match-table td:nth-child(4) {
    width: 16rem;
    min-width: 16rem;
    max-width: 16rem;
}
/* Spielgegner 1 Name */
.match-table th:nth-child(5), .match-table td:nth-child(5) {
    width: 7rem;
    min-width: 7rem;
    max-width: 7rem;
}
/* Spielstand */
.match-table th:nth-child(6), .match-table td:nth-child(6) {
    width: 3.5rem;
    min-width: 3.5rem;
    max-width: 3.5rem;
}
/* Logo Spielgegner 2 */
.match-table th:nth-child(7), .match-table td:nth-child(7) {
    width: 16rem;
    min-width: 16rem;
    max-width: 16rem;
}
/* Spielgegner 2 Name */
.match-table th:nth-child(8), .match-table td:nth-child(8) {
    width: 5rem;
    min-width: 5rem;
    max-width: 5rem;
}
/* Tipp */
.match-table th:nth-child(9), .match-table td:nth-child(9) {
    width: 4.5rem;
    min-width: 4.5rem;
    max-width: 4.5rem;
}
/* Tipps */
.match-table th:nth-child(10), .match-table td:nth-child(10) {
    width: 7rem;
    min-width: 7rem;
    max-width: 7rem;
}
/* Status */

/* Logozellenbreite nicht vom Inhalt abhängig machen */
.match-table th.logo-header,
.match-table td.team-logo {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/* Dark Mode Toggle im Drawer Menü */
.toggle-switch {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 10px;
    margin-left: auto;
    transition: background-color 0.2s;
}

    .toggle-switch:before {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background-color: white;
        top: 2px;
        left: 2px;
        transition: transform 0.2s, background-color 0.2s;
    }

    .toggle-switch.active {
        background-color: var(--primary-color);
    }

        .toggle-switch.active:before {
            transform: translateX(20px);
        }

/* Vergrößerte Schrift im Drawer-Menü */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 14px 16px; /* Mehr vertikaler Padding */
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 1.1rem; /* Vergrößerte Schrift */
}

    /* Diese CSS-Regeln werden durch die neuen Styles oben ersetzt */
    .dropdown-item:hover {
        background-color: rgba(33, 150, 243, 0.08);
    }

    .dropdown-item i {
        width: 24px;
        margin-right: 12px;
        color: var(--primary-color);
        font-size: 1.1rem; /* Vergrößerte Icon-Schrift */
        text-align: center;
    }

/* Leere Spaltenköpfe für Logos */
.match-table th.logo-header {
    background-color: var(--table-header-background);
    border: none;
}

/* Klassen für spezifische Zelltypen */
.match-table .team-logo {
    text-align: center;
}

.match-table .team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.match-table .score {
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
}

.match-table .user-tip {
    text-align: center;
    font-weight: 500;
}

.match-table .tips-count {
    text-align: center;
    color: var(--text-secondary-color);
    font-size: 0.9rem;
}

.match-table .match-status {
    text-align: center;
}

/* Spaltenköpfe mit Hintergrund */
.match-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--table-header-background);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    /* Desktop: Tabellenkopf-Hintergrund bis zum rechten Rand */
    .match-table thead::after {
       display:none;
    }

    .match-table thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        border: none;
        border-bottom: none;
        background-color: var(--table-header-background);
    }

.match-table th {
    background-color: var(--table-header-background);
    color: var(--text-color);
    text-align: left;
    padding: 1rem 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
}

.match-table td {
    padding: 1.125rem 0.875rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-table tbody tr:hover {
    background-color: rgba(33, 150, 243, 0.05);
    cursor: pointer; /* Zeigt an, dass die Zeile klickbar ist */
}

/* Größere Teamlogos */
.match-table .team-logo i {
    font-size: 1.6rem; /* Von 1.2rem auf 1.6rem erhöht */
}

.status-planned,
.status-cancelled,
.status-postponed,
.status-finished {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-planned {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.status-cancelled {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
}

.status-postponed {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.status-finished {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
}

/* Context menu styles */
.context-menu {
    display: none;
    position: absolute;
    min-width: 180px;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    overflow: hidden;
}

.context-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

    .context-menu-item:hover {
        background-color: rgba(33, 150, 243, 0.08);
    }

    .context-menu-item i {
        width: 24px;
        margin-right: 12px;
        color: var(--primary-color);
        font-size: 1rem;
        text-align: center;
    }

/* Modal Dialog für Tipps */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--surface-color);
    width: 90%;
    max-width: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

    .modal-header h3 {
        color: var(--primary-dark-color);
        margin: 0;
        font-size: 1.2rem;
    }

.close-button {
    background: transparent;
    border: none;
    color: var(--text-secondary-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

.modal-body {
    padding: 20px;
}

.match-info {
    margin-bottom: 24px;
}

.match-teams {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 16px;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 120px;
}

.team-logo-large {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    margin-bottom: 8px;
}

    .team-logo-large i {
        font-size: 2rem;
        color: var(--primary-dark-color);
    }

.team-name-large {
    font-weight: 500;
    text-align: center;
}

.match-vs {
    font-weight: 600;
    color: var(--text-secondary-color);
    font-size: 1.2rem;
}

.match-details {
    display: flex;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary-color);
    font-size: 0.9rem;
}

.tip-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-score-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .tip-score-input input {
        width: 60px;
        height: 50px;
        text-align: center;
        font-size: 1.5rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: var(--surface-color);
        color: var(--text-color);
    }

.tip-score-separator {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px;
    /*border-top: 1px solid rgba(0, 0, 0, 0.1);*/
}

.primary-button, .secondary-button {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
}

    .primary-button:hover {
        background-color: var(--primary-dark-color);
    }

.secondary-button {
    background-color: #f0f0f0;
    color: var(--text-color);
}

    .secondary-button:hover {
        background-color: #e0e0e0;
    }

/* Dark Mode spezifische Anpassungen */
[data-theme="dark"] .search-box {
    background-color: rgba(255, 255, 255, 0.05);
}

    [data-theme="dark"] .search-box:focus-within {
        background-color: rgba(255, 255, 255, 0.1);
    }

[data-theme="dark"] .secondary-button {
    background-color: #3A3A3C; /* iOS dunklere Oberfläche */
    color: var(--text-color);
}

    [data-theme="dark"] .secondary-button:hover {
        background-color: #48484A; /* iOS leicht hellere Hover-Farbe */
    }

[data-theme="dark"] .team-logo-large {
    background-color: #3A3A3C; /* iOS dunklere Oberfläche */
}

[data-theme="dark"] .match-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtilere Trenner */
}

[data-theme="dark"] .match-table tbody tr:hover {
    background-color: rgba(10, 132, 255, 0.1); /* iOS Blauton mit schwacher Opazität */
}

/* Theme Panel wurde entfernt und durch den direkten Toggle im Drawer-Menü ersetzt */

/* Andere Seitenspezifische Styles */
/* Match Opponent */
.opponent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 16px;
}

.opponent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.opponent-info {
    display: flex;
    align-items: center;
}

.opponent-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.opponent-name {
    font-weight: 500;
}

.match-score {
    display: flex;
    align-items: center;
    font-weight: 500;
}

    .match-score span:nth-child(2) {
        margin: 0 8px;
        color: var(--text-secondary-color);
    }

/* Hall of Fame */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 16px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Admin Page Specific Styles */

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--background-color);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin-bottom: 1rem;*/
}

    .admin-header h2 {
        color: var(--primary-dark-color);
        margin: 0;
        font-size: 1.5rem;
    }

.admin-actions {
    display: flex;
    gap: 0.75rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

    .action-button i {
        margin-right: 0.5rem;
    }

    .action-button.primary {
        background-color: var(--primary-color);
        color: white;
    }

        .action-button.primary:hover {
            background-color: var(--primary-dark-color);
        }

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.chart-control-button {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    transition: all 0.2s;
}

    .chart-control-button.active {
        background-color: var(--primary-color);
        color: white;
    }

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    width: 100%;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.latest-activity .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

    .latest-activity .section-header h3 {
        margin: 0;
        color: var(--primary-dark-color);
    }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

    .admin-table thead {
        background-color: var(--table-header-background);
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .admin-table tr:hover {
        background-color: rgba(28, 169, 201, 0.05);
        cursor: pointer;
    }

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-planned {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.status-finished {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .charts-row {
        grid-template-columns: 1fr;
    }

    .chart-controls {
        flex-wrap: wrap;
    }

    .chart-control-button {
        flex-grow: 1;
    }
}

/* Dark mode specific adjustments */
[data-theme="dark"] .admin-table th,
[data-theme="dark"] .admin-table td {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .admin-table tr:hover {
    background-color: rgba(10, 132, 255, 0.1);
}

/* Comprehensive Admin Page Styles */

/* Stats Cards Row */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 1200px) {
    .stats-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

/* Stats Card */
.stats-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .stats-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

.stats-card-content {
    flex-grow: 1;
    margin-right: 1rem;
}

.stats-card-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-card-label {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
}

.stats-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(28, 169, 201, 0.1);
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Chart Container */
.chart-container {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

    .chart-header h3 {
        margin: 0;
        color: var(--primary-dark-color);
        font-size: 1.2rem;
    }

.chart-body {
    position: relative;
    height: 300px;
}

/* Activity List */
.activity-list {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

    .activity-item:last-child {
        border-bottom: none;
    }

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

    .activity-icon.user-icon {
        background-color: rgba(76, 175, 80, 0.1);
        color: #4CAF50;
    }

    .activity-icon.prediction-icon {
        background-color: rgba(33, 150, 243, 0.1);
        color: #2196F3;
    }

    .activity-icon.match-icon {
        background-color: rgba(255, 152, 0, 0.1);
        color: #FF9800;
    }

    .activity-icon.system-icon {
        background-color: rgba(156, 39, 176, 0.1);
        color: #9C27B0;
    }

.activity-content {
    flex-grow: 1;
}

.activity-title {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.activity-details {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-secondary-color);
}

.activity-actions {
    display: flex;
    align-items: center;
}

.icon-button {
    background: none;
    border: none;
    color: var(--text-secondary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

    .icon-button:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

/* Dark Mode Adjustments */
[data-theme="dark"] .stats-card {
    background-color: var(--surface-color);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .stats-card-value {
    color: var(--primary-color);
}

[data-theme="dark"] .stats-card-icon {
    background-color: rgba(10, 132, 255, 0.1);
}

[data-theme="dark"] .chart-container,
[data-theme="dark"] .activity-list {
    background-color: var(--surface-color);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .activity-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Text Adjustments */
@media (max-width: 768px) {
    .stats-card-value {
        font-size: 1.3rem;
    }

    .stats-card-label {
        font-size: 0.85rem;
    }

    .stats-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

/* Additional Utility Classes */
.text-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    transition: background-color 0.2s;
}

    .text-button:hover {
        background-color: rgba(28, 169, 201, 0.1);
    }

/* Campaign Table Specific Styles */
.campaign-table {
    width: 100%;
    border-collapse: collapse;
}

    .campaign-table th,
    .campaign-table td {
        padding: 0.75rem;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .campaign-table thead {
        background-color: var(--table-header-background);
    }

    .campaign-table tr:hover {
        background-color: rgba(28, 169, 201, 0.05);
        cursor: pointer;
    }

/* Dark mode specific adjustments for tables */
[data-theme="dark"] .campaign-table th,
[data-theme="dark"] .campaign-table td {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .campaign-table tr:hover {
    background-color: rgba(10, 132, 255, 0.1);
}

/* Comprehensive Onboarding Styles */
.onboarding-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background-color);
    padding: 2rem;
    box-sizing: border-box;
}

.onboarding-card {
    width: 100%;
    max-width: 600px;
    background-color: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    animation: fadeIn 0.5s ease;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.onboarding-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .onboarding-header h2 {
        color: var(--primary-color);
        margin-bottom: 0.5rem;
        font-size: 1.8rem;
        font-weight: 600;
    }

    .onboarding-header p {
        color: var(--text-secondary-color);
        font-size: 1rem;
    }

.onboarding-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.progress-step {
    flex-grow: 1;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0 0.5rem;
    border-radius: 2px;
    transition: background-color 0.3s;
    position: relative;
}

    .progress-step::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 12px;
        height: 12px;
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        transition: background-color 0.3s;
    }

    .progress-step.active {
        background-color: var(--primary-color);
    }

        .progress-step.active::before {
            background-color: var(--primary-color);
        }

    .progress-step.completed {
        background-color: var(--success-color);
    }

        .progress-step.completed::before {
            background-color: var(--success-color);
        }

.onboarding-step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .onboarding-step h3 {
        color: var(--primary-dark-color);
        margin-bottom: 1rem;
        text-align: center;
        font-size: 1.4rem;
        font-weight: 500;
    }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

    .form-group label {
        font-weight: 500;
        color: var(--text-color);
        font-size: 0.9rem;
        margin-bottom: -7px !important;
    }

.form-control {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background-color: var(--surface-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(28, 169, 201, 0.2);
    }

    .form-control.invalid {
        border-color: var(--error-color);
    }

.validation-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.3s ease;
}

.validation-error {
    color: red !important;
}

.onboarding-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-finish {
    background-color: var(--success-color);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn:active {
    transform: translateY(0);
}

.profile-photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.photo-preview {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

    .photo-preview:hover {
        transform: scale(1.05);
    }

    .photo-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .photo-preview i {
        font-size: 6rem;
        color: var(--text-secondary-color);
    }

.file-input {
    display: none;
}

.upload-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .upload-button:hover {
        background-color: var(--primary-dark-color);
        transform: translateY(-2px);
    }

/* Dark Mode Styles */
[data-theme="dark"] .onboarding-card {
    background-color: var(--surface-color);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .form-control {
    background-color: #2C2C2E;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.87);
}

    [data-theme="dark"] .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
    }

[data-theme="dark"] .photo-preview {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

    [data-theme="dark"] .photo-preview i {
        color: rgba(255, 255, 255, 0.6);
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .onboarding-card {
        max-width: 100%;
        margin: 0;
        padding: 1rem;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .onboarding-header {
        margin-bottom: 1rem;
    }

        .onboarding-header h2 {
            font-size: 1.5rem;
        }

    .onboarding-progress {
        margin-bottom: 1rem;
    }

    .photo-preview {
        width: 150px;
        height: 150px;
    }

    .upload-button {
        /*width: 100%;*/
    }

    .onboarding-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Accessibility and Animation Enhancements */
.form-control:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.onboarding-step {
    animation: stepFadeIn 0.3s ease;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Additional Micro-interactions */
.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary-color);
}

.input-group {
    position: relative;
}

/* Password Strength Indicator */
.password-strength {
    display: flex;
    height: 4px;
    margin-top: 0.25rem;
}

.strength-segment {
    flex: 1;
    margin-right: 3px;
    background-color: #e0e0e0;
    border-radius: 2px;
    transition: background-color 0.3s;
}

.password-strength.weak .strength-segment:nth-child(1) {
    background-color: var(--error-color);
}

.password-strength.medium .strength-segment:nth-child(1),
.password-strength.medium .strength-segment:nth-child(2) {
    background-color: #FFA000;
}

.password-strength.strong .strength-segment:nth-child(1),
.password-strength.strong .strength-segment:nth-child(2),
.password-strength.strong .strength-segment:nth-child(3) {
    background-color: var(--success-color);
}

.password-strength.very-strong .strength-segment {
    background-color: var(--success-color);
}

/* 
This CSS file contains fixes for the following items:
1. wrong columnheader width - Fix columns to have optimal widths
2. tableheader is scrolling - Make table headers fixed
3. no horizontal table scrollbars - Remove horizontal scrollbars
4. search function - Fix the search functionality 
5. user profile dialog - Create a user profile editing dialog similar to onboarding
6. onboarding dialog same size - Keep onboarding dialogs consistent size
7. registration form size - Reduce registration form height on mobile
8. main menu behavior - Close menu on click outside & increase animation speed
*/

/* 1. FIX: Wrong column header width - Update column widths for optimal display */
.match-table {
    width: 100%;
    min-width: 1200px; /* Ensure enough width for all data */
    table-layout: fixed; /* Use fixed layout for better control */
}

    /* Optimized column widths based on content */
    .match-table th:nth-child(1), .match-table td:nth-child(1) {
        width: 5rem; /* Datum - smaller */
        min-width: 5rem;
    }

    .match-table th:nth-child(2), .match-table td:nth-child(2) {
        width: 4rem; /* Uhrzeit - smaller */
        min-width: 4rem;
    }

    .match-table th:nth-child(3), .match-table td:nth-child(3),
    .match-table th:nth-child(6), .match-table td:nth-child(6) {
        width: 16rem; /* Team names - wider */
        min-width: 16rem;
    }

    .match-table th:nth-child(4), .match-table td:nth-child(4),
    .match-table th:nth-child(5), .match-table td:nth-child(5) {
        width: 3rem; /* Logo columns - smaller */
        min-width: 3rem;
        text-align: center;
    }

    .match-table th:nth-child(7), .match-table td:nth-child(7) {
        width: 5rem; /* Score - smaller */
        min-width: 5rem;
        text-align: center;
    }

    .match-table th:nth-child(8), .match-table td:nth-child(8) {
        width: 5rem; /* Mein Tipp - smaller */
        min-width: 5rem;
        text-align: center;
    }

    .match-table th:nth-child(9), .match-table td:nth-child(9) {
        width: 4rem; /* Tipps - smaller */
        min-width: 4rem;
        text-align: center;
    }

    .match-table th:nth-child(10), .match-table td:nth-child(10) {
        width: 7rem; /* Status - medium */
        min-width: 7rem;
        text-align: center;
    }

/* 2. FIX: Table headers should be fixed and not scroll */
.match-table-container {
    overflow: auto;
    max-height: calc(100vh - 200px);
    position: relative;
}

.match-table thead {
    position: sticky;
    top: 0;
    z-index: 11;
    background-color: var(--table-header-background);
}

    .match-table thead th {
        position: sticky;
        top: 0;
        z-index: 11;
        background-color: var(--table-header-background);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

/* 3. FIX: No horizontal table scrollbars */
/* Hide horizontal scrollbar but keep functionality */
.match-table-container::-webkit-scrollbar:horizontal {
    height: 0;
    display: none;
}

/* 4. FIX: Search function */
/* This requires JavaScript changes - adding script below */

/* 5. FIX: User profile dialog */
/* Create styles for user profile dialog similar to onboarding */
.profile-dialog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /*transition: opacity 0.3s ease;*/
}

    .profile-dialog-modal.show {
        opacity: 1;
        display: flex;
    }

.profile-dialog-content {
    background-color: var(--surface-color);
    width: 90%;
    max-width: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    /*animation: modalSlideIn 0.3s ease;*/
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* 6. FIX: Onboarding dialog same size */
.modal-content {
    width: 90%;
    max-width: 450px; /* Consistent width */
    height: auto;
    max-height: 600px; /* Consistent max height */
}

/* All modal bodies should scroll if content is too long */
.modal-body {
    overflow-y: auto;
    flex: 1;
}

.login-footer-links {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px;
    z-index: 10;
}

    .login-footer-links a {
        color: #555 !important;
        margin: 0 10px;
        text-decoration: none; /* No underline as requested */
        font-size: 0.9rem;
        padding: 5px;
    }

/* 7. FIX: Registration form size */
@media (max-width: 480px) {
    .login-card {
        margin-top:-4rem !important;
        min-height:31rem;
        max-height: calc(100vh - 70px); /* Leave space for links */
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .login-page {
        padding-bottom: 60px; /* Space for footer links */
        position: relative;
    }

    /* Footer links for mobile */
    .login-footer-links {
        position: fixed;
        display:block !important;
        bottom: 0rem;
        left: 0;
        right: 0;
        text-align: center;
        /*padding: 10px*/
    }

        .login-footer-links a {
            color: white;
            margin: 0 10px;
            text-decoration: none; /* No underline as requested */
            font-size: 0.9rem;
            padding: 5px;
        }

    /* Ensure login container doesn't overflow */
    .login-container {
        padding-bottom: 60px;
    }

    /* Make buttons smaller on mobile */
    .login-card .btn-login,
    .login-card .secondary-button {
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    /* Reduce form padding on mobile */
    .login-card {
        padding: 1.5rem 1rem;
        min-height:31rem;
    }

        /* Reduce form field height */
        .login-card .form-group {
            margin-bottom: 0.9rem !important;
        }

            .login-card .form-group:first-of-type {
                margin-top: 1rem !important;
            }

            .login-card input {
                padding: 0.6rem;
            }
}

/* 8. FIX: Main menu behavior */
/* This requires JavaScript changes - adding script below */
.side-menu {
    transition: transform 0.2s ease; /* Faster animation (0.3s -> 0.2s) */
}

/* JavaScript fixes for search and main menu behavior */