/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        display: block;
    }

    #app {
        max-width: 100%;
        padding: 0;
    }

    /* Hide non-printable elements */
    .app-header,
    .nav-btn,
    .user-controls,
    .btn,
    .toast,
    #view-login,
    .player-form-container,
    #player-form-wrapper,
    .actions,
    .input-group,
    input,
    .action-buttons,
    #tab-players,
    #tab-settings {
        display: none !important;
    }

    /* Show all content that matters */
    .view {
        display: block !important;
        opacity: 1 !important;
    }

    /* Ensure Standings and Matches are visible regardless of active tab */
    #tab-standings,
    #tab-matches {
        display: block !important;
    }

    /* Grouping Logic */
    .jornada-container {
        page-break-inside: avoid;
        margin-bottom: 30px;
        border-bottom: 2px solid #eee;
    }

    /* Override Glassmorphism for paper */
    .glass-panel {
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        color: black;
        padding: 0;
        margin-bottom: 20px;
    }

    /* Typography fixes */
    h1,
    h2,
    h3 {
        color: black !important;
        page-break-after: avoid;
    }

    .subtitle,
    .hint {
        color: #333;
    }

    /* Tables */
    .standings-table th,
    .standings-table td {
        border-bottom: 1px solid #ddd;
        color: black;
    }

    /* Match Cards */
    .match-card {
        background: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .match-score-input {
        display: none !important;
        /* Always hide inputs in print */
    }

    .print-only {
        display: inline-block !important;
        /* Show print text */
        font-weight: bold;
        font-size: 1.2rem;
        min-width: 20px;
        text-align: center;
    }

    .match-teams {
        gap: 10px;
    }
}