/* public/css/blindstimer.css */
#rotate-warning {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    color: #fff;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

        .payout-setup-block {
            height: 84vh;
            display: none;
            flex-direction: column;
            overflow: hidden;

            .header {
                height: 8vh;
                display: flex;
                justify-content: center;
                align-items: center;
                font-size: 4vh;
                color: white;
            }

            .payout-setup-form {
                display: flex;
                flex-direction: column;
                gap: 0.55em;
                width: 92%;
                max-width: 1200px;
                margin: 0 auto;
                padding: 0.75em;
                border: 0.3vh solid #d4af37;
                border-radius: 2vh;
                background: rgba(0,0,0,0.6);
                height: calc(84vh - 8vh - 1.2em);
                box-sizing: border-box;
                overflow-y: auto;
                overflow-x: hidden;

                .form-row {
                    display: flex;
                    flex-direction: column;
                    gap: 0.22em;
                    min-height: 0;
                    flex: 1 1 auto;

                    label {
                        color: #ffd700;
                        font-size: 2vh;
                        font-weight: bold;
                    }

                    input,
                    select {
                        border-radius: 0.5em;
                        border: 1px solid #d4af37;
                        background: #0f0f0f;
                        color: #fff;
                        padding: 0.5em;
                        font-size: 1.8vh;
                        width: 100%;
                        box-sizing: border-box;
                    }
                }

                .payout-grid-two {
                    display: grid;
                    grid-template-columns: 1fr 1fr;
                    gap: 0.35em;
                }

                .payout-grid-two > div,
                .payout-grid-three > div {
                    min-width: 0;
                }

                .payout-aligned-field {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    gap: 0.6em;
                }

                .payout-aligned-field label {
                    width: 9.5em;
                    min-width: 9.5em;
                    margin: 0;
                }

                .payout-grid-three {
                    display: grid;
                    grid-template-columns: 1fr 1fr 1fr;
                    gap: 0.35em;
                }

                .payout-grid-two > div,
                .payout-grid-three > div,
                .payout-grid-three > div {
                    min-width: 0;
                }

                .payout-short-input {
                    width: 8.5em !important;
                    max-width: 8.5em !important;
                }

                .payout-align-placeholder {
                    visibility: hidden;
                    pointer-events: none;
                }

                #payout-tournament-pot {
                    width: 8.5em !important;
                    max-width: 8.5em !important;
                }

                .payout-grid-three input,
                .payout-grid-three select {
                    width: 100%;
                    max-width: none;
                }

                .payout-shared-settings-row {
                    align-items: end;
                    border-top: 1px solid rgba(212, 175, 55, 0.55);
                    border-bottom: 1px solid rgba(212, 175, 55, 0.55);
                    padding: 0.6em 0;
                }

                .payout-shared-input {
                    width: 7.5em !important;
                    max-width: 7.5em !important;
                }

                .payout-grid-four {
                    display: grid;
                    grid-template-columns: 1fr 1fr 1fr 1fr;
                    gap: 0.8em;
                }

                .payout-tournament-inline-row {
                    display: grid !important;
                    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
                    align-items: end;
                }

                .payout-grid-three > div,
                .payout-grid-four > div {
                    min-width: 0;
                }

                .payout-short-input {
                    width: 8.5em !important;
                    max-width: 8.5em !important;
                }

                .payout-grid-three input,
                .payout-grid-four input,
                .payout-grid-three select,
                .payout-grid-four select {
                    width: 100%;
                    max-width: none;
                }

                .payout-grid-four {
                    display: grid;
                    grid-template-columns: 1fr 1fr 1fr 1fr;
                    gap: 0.8em;
                }

                .payout-setup-levels-scroll {
                    max-height: 16vh;
                    overflow-y: auto;
                    overflow-x: hidden;
                    border: 1px solid rgba(212, 175, 55, 0.35);
                    border-radius: 0.5em;
                }

                .payout-setup-levels-table {
                    width: 100%;
                    border-collapse: collapse;
                    background: rgba(15, 15, 15, 0.8);

                    thead th {
                        position: sticky;
                        top: 0;
                        background: #1a1a1a;
                        z-index: 1;
                    }

                    th,
                    td {
                        border: 1px solid rgba(212, 175, 55, 0.35);
                        padding: 0.35em;
                        text-align: center;
                        color: #fff;
                        font-size: 1.7vh;
                    }

                    th {
                        color: #ffd700;
                        font-weight: bold;
                    }

                    input {
                        width: 100%;
                        box-sizing: border-box;
                    }

                    .remove-tier-btn {
                        background-color: #a13a3a;
                        color: #fff;
                        border: none;
                        border-radius: 0.4em;
                        padding: 0.35em 0.55em;
                        cursor: pointer;
                    }
                }

                #payout-add-percentage-tier-btn,
                #payout-add-tournament-tier-btn {
                    align-self: flex-start;
                    border-radius: 0.8em;
                    background-color: #D4AF36;
                    color: black;
                    border: none;
                    padding: 0.5em 1em;
                    font-weight: bold;
                    cursor: pointer;
                }

                .button-row {
                    display: flex;
                    gap: 1em;
                    justify-content: flex-end;

                    button {
                        border-radius: 1em;
                        min-width: 8em;
                        justify-content: center;
                        background-color: #D4AF36;
                        font-weight: bold;
                        color: black;
                        align-items: center;
                        border: none;
                        padding: 0.6em 1.2em;
                        cursor: pointer;
                    }
                }
            }
        }

/* Show warning only in portrait mode */
@media screen and (orientation: portrait) {
    #rotate-warning {
        display: flex;
    }

    #main-conten {
        display: none;
    }
}

body {
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f4c3a 0%, #1a5f4a 50%, #0d3d2e 100%);
    overflow: hidden;

    .main-content {
        margin: 2vh 2vh 0vh 2vh;
        height: 98vh;
        /* Row 1 - Logo */
        .logo-row {
            display: flex;
            height: 8vh;
            margin: 1% 0% 1% 0%;
            justify-content: center;
            align-items: center;

            .logo {
                height: 100%;
            }
        }

        .main-data-block {
            display: flex;
            flex-direction: column;
            height: 84vh;
            /* Row 2 - Timer */
            .timer-row {
                display: flex;
                height: 35vh;
                margin: 1% 0% 1% 0%;
                justify-content: space-around;
                gap: 2vh;

                .placeholder-container {
                    display: none;
                    flex-direction: column;
                    height: 100%;
                    width: 30%;
                    justify-content: center;
                    background: rgba(0,0,0,0.0);
                    border-radius: 2vh 2vh;
                    border: 0.3vh solid #00000000;
                    box-shadow: 0 2vh 3vh rgba(0,0,0,0);
                }

                .control-container {
                    display: none;
                    flex-direction: column;
                    height: 100%;
                    width: 30%;
                    justify-content: flex-start;
                    background: rgba(0,0,0,0.6);
                    border-radius: 2vh 2vh;
                    border: 0.3vh solid #d4af37;
                    box-shadow: 0 2vh 3vh rgba(0,0,0,0.5);
                    padding: 0.6em;
                    box-sizing: border-box;
                    overflow: hidden;

                    .title {
                        font-size: 2.1vh;
                        font-weight: bold;
                        color: #ffd700;
                        text-align: center;
                        text-transform: uppercase;
                        letter-spacing: 0.1em;
                        border-bottom: 0.2em solid #d4af37;
                        padding-bottom: 0.35em;
                        margin-bottom: 0.35em;
                        flex: 0 0 auto;
                    }

                    .box {
                        display: flex;
                        flex: 1 1 auto;
                        flex-direction: column;
                        overflow-y: auto;
                        overflow-x: hidden;
                        justify-content: flex-start;
                        gap: 0.35em;
                        min-height: 0;
                        padding-right: 0.15em;

                        .title {
                            font-size: 1.5vh;
                            border-bottom: unset;
                            margin-bottom: 0;
                            padding-bottom: 0;
                        }

                        .group {
                            display: grid;
                            grid-template-columns: minmax(5.6em, 33%) 1fr;
                            gap: 0.4em;
                            align-items: center;
                            background: rgba(212, 175, 54, 0.08);
                            border: 1px solid rgba(212, 175, 55, 0.25);
                            border-radius: 0.6em;
                            padding: 0.35em;

                            .title {
                                text-align: left;
                                white-space: nowrap;
                                font-size: 1.5vh;
                                color: #ffd700;
                            }

                            .button-group {
                                display: flex;
                                flex-wrap: wrap;
                                gap: 0.3em;
                                width: 100%;
                                align-items: center;
                                align-content: center;

                                button {
                                    display: flex;
                                    border-radius: 1em;
                                    flex: 1 1 5.2em;
                                    max-width: 6.8em;
                                    justify-content: center;
                                    background-color: #D4AF36;
                                    font-weight: bold;
                                    color: black;
                                    align-items: center;
                                    font-size: clamp(0.62rem, 0.72vw, 0.8rem);
                                    line-height: 1.1;
                                    padding: 0.35em 0.2em;
                                    min-height: 2.1em;
                                    min-width: 0;
                                    white-space: nowrap;
                                    overflow: hidden;
                                    text-overflow: ellipsis;
                                    cursor: pointer;
                                }
                            }
                        }
                    }
                }

                .card-rankings-container {
                    display: none;
                    flex-direction: column;
                    height: 100%;
                    width: 30%;
                    justify-content: center;
                    background: rgba(0,0,0,0.6);
                    border-radius: 2vh 2vh;
                    border: 0.3vh solid #d4af37;
                    box-shadow: 0 2vh 3vh rgba(0,0,0,0.5);
                    /*margin: 0 0 0 0;*/

                    .info-text {
                        font-size: 5vh;
                        color: gray;
                        font-weight: bold;
                    }
                }

                .timer-container {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    height: 100%;
                    width: 33%;
                    background: rgba(0,0,0,0.6);
                    border-radius: 2vh 2vh;
                    border: 0.3vh solid #d4af37;
                    box-shadow: 0 2vh 3vh rgba(0,0,0,0.5);
                    margin: 0 0 0 0;

                    .timer-info {
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;
                        height: 70%;

                        .timer-info-text {
                            font-size: 15vh;
                            color: white;
                            font-weight: bold;
                        }
                    }

                    .break-info {
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;
                        height: 30%;

                        .break-info-text {
                            font-size: 5vh;
                            color: gray;
                            font-weight: bold;
                        }
                    }
                }

                .league-logo-container {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    height: 100%;
                    width: 30%;

                    .logo {
                        width: 100%;
                    }
                }

                .payment-info-container {
                    display: none;
                    flex-direction: column;
                    height: 100%;
                    width: 30%;
                    justify-content: center;
                    background: rgba(0,0,0,0.6);
                    border-radius: 2vh 2vh;
                    border: 0.3vh solid #d4af37;
                    box-shadow: 0 2vh 3vh rgba(0,0,0,0.5);
                    margin: 0 0 0 0;

                    .title {
                        font-size: 3vh;
                        font-weight: bold;
                        color: #ffd700;
                        text-align: center;
                        text-transform: uppercase;
                        letter-spacing: 0.1em;
                        border-bottom: 0.2em solid #d4af37;
                        padding-bottom: 0.5em;
                    }

                    .info-text {
                        font-size: 5vh;
                        color: gray;
                        font-weight: bold;
                    }

                    .info-box {
                        display: flex;
                        flex: auto;
                        flex-direction: column;
                        overflow: hidden;
                        justify-content: space-evenly;

                        .item {
                            /*display: flex;*/
                            justify-content: space-between;
                            align-items: center;
                            font-size: 3vh;
                            border-bottom: 1px solid rgba(212, 175, 55, 0.3);

                            .label {
                                color: #ccc;
                                font-weight: 600;
                            }

                            .value {
                                color: #ffd700;
                                font-weight: bold;
                            }
                        }
                    }
                }
            }
            /* Row 3 - Info Boxes */
            .info-row {
                display: flex;
                height: 40vh;
                flex-direction: row;
                justify-content: space-evenly;
                gap: 2vh;

                .box {
                    display: flex;
                    /*flex: auto;*/
                    width: 33%;
                    flex-direction: column;
                    background: rgba(0, 0, 0, 0.6);
                    border-radius: 2vh 2vh;
                    padding: 0.5em;
                    border: 0.3vh solid #d4af37;
                    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);

                    .title {
                        font-size: 3vh;
                        font-weight: bold;
                        color: #ffd700;
                        text-align: center;
                        text-transform: uppercase;
                        letter-spacing: 0.1em;
                        border-bottom: 0.2em solid #d4af37;
                        padding-bottom: 0.5em;
                    }

                    .statistics {
                        display: flex;
                        flex: auto;
                        flex-direction: column;
                        overflow: hidden;
                        justify-content: space-evenly;

                        .item {
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            font-size: 3vh;
                            font-weight: bold;
                            border-bottom: 1px solid rgba(212, 175, 55, 0.3);

                            .label {
                                color: #ccc;
                            }

                            .value {
                                color: #ffd700;
                            }
                        }
                    }

                    .blinds {
                        display: flex;
                        flex: auto;
                        flex-direction: column;
                        overflow: hidden;
                        justify-content: space-evenly;
                        text-align: center;

                        .current {
                            font-size: 7vh;
                            color: #ffd700;
                            font-weight: bold;
                        }

                        .next {
                            font-size: 5vh;                            
                            color: #ccc;
                        }
                    }

                    .prize-pool {
                        display: flex;
                        flex: auto;
                        flex-direction: column;
                        overflow: hidden;
                        justify-content: space-evenly;

                        .item {
                            padding: 0.2em;
                            background: rgba(255, 215, 0, 0.1);
                            border-left: 3px solid #ffd700;
                            font-size: 3vh;
                            color: white;
                            justify-content: space-between;
                        }
                    }
                }
            }
        }

        .standings-data-block {
            height: 84vh;
            display: none;
            flex-direction: column;

            .standings-header {
                height: 10vh;
                display: flex;
                justify-content: center;
                align-items: center;
                font-size: 8vh;
                color: white;
            }

            .standings-data {
                display: flex;
                justify-content: center;

                .standings-table {
                    border-collapse: collapse;
                    font-size: 1.0em;
                    background: rgba(0,0,0,0.4) !important;

                    tr {

                        th {
                            border: 1px solid #ccc;
                            padding: 0.3em 0.3em;
                            text-align: center;
                            color: #ffd700 !important;
                        }

                        td {
                            border: 1px solid #ccc;
                            padding: 0.3em 0.3em;
                            min-width: 80px;
                            text-align: center;
                            font-size: 1.6vh;
                            color: white;
                        }
                    }
                }
            }
        }

        .blinds-setup-block {
            height: 84vh;
            display: none;
            flex-direction: column;
            overflow: hidden;

            .header {
                height: 10vh;
                display: flex;
                justify-content: center;
                align-items: center;
                font-size: 8vh;
                color: white;
            }

            .blinds-setup-form {
                display: flex;
                flex-direction: column;
                gap: 1em;
                width: 92%;
                max-width: 1000px;
                margin: 0 auto;
                padding: 1.2em;
                border: 0.3vh solid #d4af37;
                border-radius: 2vh;
                background: rgba(0,0,0,0.6);
                height: calc(84vh - 10vh - 2em);
                box-sizing: border-box;
                overflow: hidden;

                .form-row {
                    display: flex;
                    flex-direction: column;
                    gap: 0.5em;
                    min-height: 0;

                    label {
                        color: #ffd700;
                        font-size: 2.2vh;
                        font-weight: bold;
                    }

                    input,
                    textarea {
                        border-radius: 0.5em;
                        border: 1px solid #d4af37;
                        background: #0f0f0f;
                        color: #fff;
                        padding: 0.6em;
                        font-size: 2vh;
                    }

                    .blinds-setup-levels-scroll {
                        flex: 1;
                        min-height: 0;
                        max-height: none;
                        overflow-y: auto;
                        overflow-x: hidden;
                        border: 1px solid rgba(212, 175, 55, 0.35);
                        border-radius: 0.5em;
                    }

                    .blinds-setup-levels-table {
                        width: 100%;
                        border-collapse: collapse;
                        background: rgba(15, 15, 15, 0.8);

                        thead th {
                            position: sticky;
                            top: 0;
                            background: #1a1a1a;
                            z-index: 1;
                        }

                        th,
                        td {
                            border: 1px solid rgba(212, 175, 55, 0.35);
                            padding: 0.35em;
                            text-align: center;
                            color: #fff;
                            font-size: 1.8vh;
                        }

                        th {
                            color: #ffd700;
                            font-weight: bold;
                        }

                        input[type="number"] {
                            width: 100%;
                            box-sizing: border-box;
                            border-radius: 0.4em;
                            border: 1px solid #d4af37;
                            background: #0f0f0f;
                            color: #fff;
                            padding: 0.25em 0.35em;
                            font-size: 1.8vh;
                        }

                        input[type="checkbox"] {
                            width: 1.2em;
                            height: 1.2em;
                        }

                        .remove-level-btn {
                            background-color: #a13a3a;
                            color: #fff;
                            border: none;
                            border-radius: 0.4em;
                            padding: 0.35em 0.55em;
                            cursor: pointer;
                        }
                    }

                    #blinds-setup-add-level-btn {
                        align-self: flex-start;
                        border-radius: 0.8em;
                        background-color: #D4AF36;
                        color: black;
                        border: none;
                        padding: 0.5em 1em;
                        font-weight: bold;
                        cursor: pointer;
                    }
                }

                .button-row {
                    display: flex;
                    gap: 1em;
                    justify-content: flex-end;
                    flex: 0 0 auto;

                    button {
                        border-radius: 1em;
                        min-width: 8em;
                        justify-content: center;
                        background-color: #D4AF36;
                        font-weight: bold;
                        color: black;
                        align-items: center;
                        border: none;
                        padding: 0.6em 1.2em;
                        cursor: pointer;
                    }
                }
            }
        }

        .payout-setup-block {
            height: 84vh;
            display: none;
            flex-direction: column;
            overflow: hidden;

            .header {
                height: 10vh;
                display: flex;
                justify-content: center;
                align-items: center;
                font-size: 8vh;
                color: white;
            }

            .payout-setup-form {
                display: flex;
                flex-direction: column;
                gap: 1em;
                width: 92%;
                max-width: 1200px;
                margin: 0 auto;
                padding: 1.2em;
                border: 0.3vh solid #d4af37;
                border-radius: 2vh;
                background: rgba(0,0,0,0.6);
                height: calc(84vh - 10vh - 2em);
                box-sizing: border-box;
                overflow: hidden;

                .form-row {
                    display: flex;
                    flex-direction: column;
                    gap: 0.5em;
                    min-height: 0;

                    label {
                        color: #ffd700;
                        font-size: 2vh;
                        font-weight: bold;
                    }

                    input,
                    select {
                        border-radius: 0.5em;
                        border: 1px solid #d4af37;
                        background: #0f0f0f;
                        color: #fff;
                        padding: 0.5em;
                        font-size: 1.8vh;
                        width: 100%;
                        box-sizing: border-box;
                    }
                }

                .payout-grid-two {
                    display: grid;
                    grid-template-columns: 1fr 1fr;
                    gap: 0.8em;
                }

                .payout-grid-three {
                    display: grid;
                    grid-template-columns: 1fr 1fr 1fr;
                    gap: 0.8em;
                }

                .payout-tabs {
                    display: flex;
                    gap: 0.5em;

                    button {
                        border-radius: 0.8em;
                        background-color: #444;
                        color: #fff;
                        border: 1px solid #d4af37;
                        padding: 0.45em 1em;
                        font-weight: bold;
                        cursor: pointer;
                    }

                        button.active {
                            background-color: #D4AF36;
                            color: black;
                        }
                }

                .payout-tab-panel {
                    display: none;
                    flex-direction: column;
                    gap: 0.3em;
                    min-height: 0;
                    height: 100%;
                }

                    .payout-tab-panel.active {
                        display: flex;
                        flex: 1;
                        min-height: 0;
                        overflow-y: auto;
                        overflow-x: hidden;
                    }

                .payout-setup-levels-scroll {
                    flex: 1;
                    min-height: 0;
                    max-height: 100%;
                    height: 100%;
                    min-height: 16vh;
                    overflow-y: auto;
                    overflow-x: hidden;
                    border: 1px solid rgba(212, 175, 55, 0.35);
                    border-radius: 0.5em;
                }

                .payout-tiers-row {
                    flex: 1 1 16vh;
                    min-height: 16vh;
                }

                .payout-aligned-field {
                    gap: 0.25em;
                }

                    .payout-aligned-field label {
                        width: 8.2em;
                        min-width: 8.2em;
                    }

                .payout-setup-levels-table {
                    width: 100%;
                    border-collapse: collapse;
                    background: rgba(15, 15, 15, 0.8);

                    thead th {
                        position: sticky;
                        top: 0;
                        background: #1a1a1a;
                        z-index: 1;
                    }

                    th,
                    td {
                        border: 1px solid rgba(212, 175, 55, 0.35);
                        padding: 0.35em;
                        text-align: center;
                        color: #fff;
                        font-size: 1.7vh;
                    }

                    th {
                        color: #ffd700;
                        font-weight: bold;
                    }

                    input {
                        width: 100%;
                        box-sizing: border-box;
                    }

                    .remove-tier-btn {
                        background-color: #a13a3a;
                        color: #fff;
                        border: none;
                        border-radius: 0.4em;
                        padding: 0.35em 0.55em;
                        cursor: pointer;
                    }
                }

                #payout-add-percentage-tier-btn,
                #payout-add-tournament-tier-btn {
                    align-self: flex-start;
                    border-radius: 0.8em;
                    background-color: #D4AF36;
                    color: black;
                    border: none;
                    padding: 0.5em 1em;
                    font-weight: bold;
                    cursor: pointer;
                }

                .button-row {
                    display: flex;
                    gap: 1em;
                    justify-content: flex-end;

                    button {
                        border-radius: 1em;
                        min-width: 8em;
                        justify-content: center;
                        background-color: #D4AF36;
                        font-weight: bold;
                        color: black;
                        align-items: center;
                        border: none;
                        padding: 0.6em 1.2em;
                        cursor: pointer;
                    }
                }
            }
        }

        .footer-row {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.5vh;
            color: #ccc;
            opacity: 0.8;
        }
    }
}