﻿:root {
    --race-mode: #59aff8;
    --nomination: orange;
    --raceresult: #59aff8;
}

body {
    background-color: #1e1e1e;
    margin: 0px;
    padding: 0px;
    font-family: "Roboto", "Ubunutu", "Montserrat", "Helvetica", Arial, sans-serif;
    overflow-y: hidden;
    overflow-x: hidden;
}


.swimlynx-blue {
    color: #1b75bb
}

#app-wait {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out; /* This will handle the fading effect */
}

    #app-wait .spinner {
        border: 5px solid #d9d9d9;
        border-top: 5px solid #3498db;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        animation: spin 2s linear infinite;
    }



sltk-meet {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom:0px;
    overflow:hidden;
}

    sltk-meet .header {
        position: absolute;
        top: 0px;
        left: 0px;
        right: 0px;
        height: 60px;
        background-color: #333;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
    }

        sltk-meet .header .brand {
            flex: 1; 
            font-size: 1.5rem;
        }
        
        sltk-meet .header .meet {
            position: absolute;
            left: 50%;
            transform: translateX(-50%); /* This will center the box-container */
            text-align: center;
        }

        sltk-meet .header .links {
            display: flex;
            gap: 10px; /* Spacing between icons and the button */
            padding-top: 10px;
        }

        sltk-meet .header .links button {
            line-height: 2.4rem;
            height: 2.4rem;
        }


    sltk-meet .program {
        position: absolute;
        top: 60px;
        left: 0px;
        right: 0px;
        bottom: 30px;
        overflow-y: auto;
        background-color: #1e1e1e;
        margin: 2px;
        padding: 0px 10px 0px 10px;
        transition: right 0.8s ease; /* Smooth transition for resizing */
    }

    sltk-meet .sidebar {
        position: absolute; /* Sidebar is absolutely positioned */
        top: 60px;
        bottom: 30px;
        right: -400px; /* Start off-screen */
        width: 400px;
        background-color: #1e1e1e;
        color: white;
        transition: right 0.8s ease; /* Smooth slide-in */
        border-left: 1px solid #36393b;
    }

        sltk-meet .sidebar.open {
            right: 0; /* Slide in when open */
        }

    sltk-meet .program.shifted  {
        right: 400px;  
    }








sltk-meet .box {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #333;
    border-radius: 5px;
}



sltk-meet .footer {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 30px; 
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 3px 0px 3px;
}

    sltk-meet .footer .status {
        font-size: 13px;
    }

    sltk-meet .footer .devices {
        display: flex;
        gap: 3px;
    }

    sltk-meet .footer .devices .footer-box {
        font-size: 0.8rem;
        border: 1px solid #555;
        padding: 0px 15px 0px 15px;
        margin-top: 2px;
        color: #fff;
        border-radius: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor:pointer;
    }







sltk-race {
    box-sizing: border-box;
    border-collapse: collapse;
}

    sltk-race .heading {
        justify-content: space-between;
        display: flex;
        background-color: #333;
        text-align: left;
        color: var(--race-mode);
        margin: 0.6rem 0 0.2rem 0;
        padding: 0 0.7rem;
        line-height: 2rem;
    }

        sltk-race .heading .event {
            width: 70px;
            margin-right: 10px;
        }

        sltk-race .heading .gender-age-stroke {
            flex: 1;
        }

        sltk-race .heading .menu {
            min-width: 25px;
            text-align: right;
            display: flex;
            align-items:center;
        }

        sltk-race .heading .menu i {
            color: #555555;
            cursor:pointer;
            font-size: 1.3rem;
            margin-left: 0.6rem;
        }
            sltk-race .heading .menu i:hover {
                color: #fff;
            }

sltk-race-lane {
    display: flex;
    padding: 5px 10px;
    margin-top: 2px;
    background-color: #252525;
    align-items: center;
    color: #fff;
    text-align: left;
    font-size: 0.95rem;
}

    sltk-race-lane .name {
        flex: 1;
        text-align: left;
        min-width: 100px;
    }

    sltk-race-lane .number {
        min-width: 20px;
    }

    sltk-race-lane .club {
        min-width: 225px;
    }

    sltk-race-lane .gender {
        min-width: 50px;
    }
    sltk-race-lane .age {
        min-width: 75px;
    }

    sltk-race-lane .time {
        min-width: 85px;
    }
        sltk-race-lane .time.editable {
            cursor: pointer;
        }
            sltk-race-lane .time.editable:hover {
                color: #1b75bb
            }

    sltk-race-lane .place {
        min-width: 50px;
    }
        sltk-race-lane .place.na {
            color: #555;
        }
    sltk-race-lane .flags {
        min-width: 20px;
        text-align: left;
    }
        sltk-race-lane .flags.na {
            color: #555;
        }

    sltk-race-lane .awards {
        min-width: 30px;
    }

    sltk-race-lane .links {
        min-width: 15px;
        margin-left: 10px;
    }

    sltk-race-lane .links {
        color: #555;
        cursor: pointer;
    }

        sltk-race-lane .links:hover {
            color: #fff;
        }




sltk-nominate-cm .nominate {
    display: flex;
    width: 100%; /* Fills the width of its parent */
    margin-top: 15px;
}

    sltk-nominate-cm .nominate .tick {
        width: 30px;
    }
        sltk-nominate-cm .nominate .tick input[type=checkbox] {
            height: 18px;
            width: 18px;
        }

    sltk-nominate-cm .nominate .mode {
        width: 25px;
        font-size: 15px;
        cursor: pointer;
    }
    sltk-nominate-cm .nominate .assisted {
        width: 35px;
        font-size: 18px;
        cursor: pointer;
    }

    sltk-nominate-cm .nominate .assisted .on{
        color: #1b75bb;
    }
        sltk-nominate-cm .nominate .assisted .off {
            color: #383838;
        }
    sltk-nominate-cm .nominate .name {
        flex-grow: 1; /* Takes up available space */
        font-size: 15px;
        line-height: 25px;
        vertical-align:middle;
    }

sltk-nominate-cm .qualified{
    color: #FFF;
}

sltk-nominate-cm .notqualified {
    color: #555;
}











sltk-timing .heat {
    color: var(--race-mode);
    font-size: 2em;
    padding: 0px !important;
    margin: 5px 0 0 0;
}
sltk-timing .time {
    color: #fff;
    font-size: 2em;
    padding: 0px !important;
    margin: 5px 0 0 0;
}
sltk-timing .event {
    color: var(--race-mode);
    font-size: 1em;
    padding: 0px 0px 20px 0px;
    margin: 5px 0 20px 0;
    border-bottom: 1px solid #383838;
}

sltk-timing .finalise {
    padding: 5px 10px; /* Adjust button padding */
    border: 1px solid #ccc;
    border-radius: 3px;
    text-align: center;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    background-color: #39b720
}

sltk-timing .controls {
    display: flex;
    margin: 20px 0 20px 0;

}


sltk-timing #lanes-container {
    margin: 0px 0 20px 0;
    border-top: 1px solid #383838;
    padding-top: 10px;
}

sltk-timing input[type=button] {
    background-color: forestgreen; /* Default background color for all buttons */
    margin: 0;
    width: 100%;
    height: 50px;
}

    sltk-timing input[type=button]:focus {
        background-color: green; /* Focus state for all buttons */
    }

    sltk-timing input[type=button]:hover {
        background-color: green; /* Hover state for all buttons */
    }

    sltk-timing input[type=button]:disabled {
        background-color: #252525; /* Disabled state for all buttons */
        color: #383838;
        border: 1px solid #383838; /* Corrected border style */
    }

    /* Specific styles for 'start' button */
    sltk-timing input[type=button].start {
        background-color: forestgreen; /* Specific background color for 'start' button */
        flex:1;
        border: none;
    }

        /* Hover states for start and reset buttons with different colors */
    sltk-timing input[type=button].start:hover {
        background-color: green; /* Example hover state for 'reset' button */
    }
    sltk-timing input[type=button].start:disabled {
        background-color: #252525; /* Disabled state for all buttons */
        color: #383838;
        border: 1px solid #383838; /* Corrected border style */
    }

    sltk-timing input[type=button].reset {
        background-color: red;
        flex: 1;
        border: none;
    }
        sltk-timing input[type=button].reset:hover {
            background-color: darkred; 
        }
        sltk-timing input[type=button].reset:disabled {
            background-color: #252525; 
            color: #383838;
            border: 1px solid #383838; 
        }

    sltk-timing input[type=button].final {
        background-color: #1b75bb;
        flex: 1;
    }

        sltk-timing input[type=button].final:hover {
            background-color: #1b75bb;
        }

        sltk-timing input[type=button].final:disabled {
            background-color: #252525;
            color: #383838;
            border: 1px solid #383838;
        }


sltk-timing-lane .error {
    color: red;
    padding-left: 35px;
}


.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Dark background */
}




.modal-content {
    background-color: #1e1e1e; /* Dark background */
    width: 405px;
    height: 545px;
    margin: auto;
    margin-top: 50vh;
    transform: translateY(-50%);
    border-radius: 10px; /* Rounded corners */
    position: relative;
    color: #fff; /* Text color */
    border: 1px solid #4a4b4a;
    
}

.header {
    display: flex;
    align-items: center;
    background-color: #363a37;
    padding: 10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    justify-content: space-between; /* Align items to the ends */
}

.close-btn {
    width: 12px;
    height: 12px;
    background-color: #ff5f57;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    border: 1px solid #ff5f57;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

    .close-btn::before,
    .close-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 1px;
        background-color: #633a38;
        border-radius: 1px;
        transform: translate(-50%, -50%) rotate(45deg);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .close-btn::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .close-btn:hover::before,
    .close-btn:hover::after {
        opacity: 1;
    }

    .close-btn:hover {
        background-color: #ff5f57;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    }






.title-bar {
    color: #fff;
    display: flex;
    background-color: #000;
    border-bottom: 1px solid #36393b;
}

    .title-bar .left {
        margin: 0;
        padding: 10px 0px 10px 10px;
        color: #fff;
        flex: 1
    }

    .title-bar .right {
        flex: none;
        padding: 10px 10px 10px 0px;
    }

        .title-bar .right i {
            cursor: pointer;
        }

form {
    padding: 10px;
}

    form .title {
        color: #1b75bb;
        border-bottom: 1px solid #252525;
        padding: 0px 5px 5px 5px;
        margin: 5px 0px 10px 0px;
    }

    form input[type=text] {
        margin-bottom: 0;
        height: auto;
        padding: 7px;
        font-size: 13px;
    }

        form input[type=text]:disabled {
            background-color: #333;
            border: none;
            color: #fff;
        }

        form input[type=text]:focus {
            outline: 2px solid #59aff8;
        }

    form input[type=checkbox] {
        height: 28px;
        width: 28px;
        border-radius: 3px;
    }

    form select {
        margin-bottom: 0;
        height: auto;
        padding: 7px;
        font-size: 13px;
    }

        form select option {
            padding: 15px; /* Match padding with select */
            background-color: #eee; /* Match background-color with select */
        }

        form select:disabled {
            background-color: #333;
            color: #fff;
        }

        form select:focus {
            outline: 2px solid #59aff8;
        }

    form .input-group {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        margin: 10px 0px 10px 0px;
        padding: 0;
    }

        form .input-group .left {
            width: 100px; /* Take up remaining space */
        }

            form .input-group .left p {
                margin: 0;
                padding: 5px;
                color: #fff;
            }

            form .input-group .left .lane {
                margin: 0;
                background-color: #333;
                border-radius: 4px;
                color: #fff;
                width: 30px;
                height: 31px;
                line-height: 31px;
                padding: 0;
                vertical-align: middle;
                text-align: center;
            }

            form .input-group .left .flags {
                margin: 0;
                background-color: #333;
                border-radius: 4px;
                color: #555;
                width: 30px;
                height: 31px;
                line-height: 31px;
                padding: 0;
                vertical-align: middle;
                text-align: center;
            }

        form .input-group .right {
            flex-grow: 1
        }

            form .input-group .right p {
                margin: 0;
                background-color: #333;
                padding: 5px 5px;
                border-radius: 4px;
                color: #fff
            }

    form .button-group {
        border-top: 1px solid #252525;
        margin-top: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        padding: 20px 0px;
    }




sltk-device {
    font-size: 0.9rem;
    border: 1px solid #555;
    padding: 2px 15px 2px 15px;
    color: #fff;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

sltk-device.registered {
    background-color: forestgreen; /*#59aff8;*/
}




sltk-download {
    border: 1px solid #555;
    padding: 0px 15px 0px 15px;
    color: #fff;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

sltk-download i {
    font-size: 1em;
    color: #fff;
}