body {
    display: grid;
    grid-template-columns: 30% 1fr;
    transition: grid-template-columns 0.3s ease;
    margin: 0;
    font-family: sans-serif;
    height: 100vh;
}

.left {
    position: relative;
    overflow: hidden;
    overflow-y: auto;
    background: #f9f9f9;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
    z-index: 1000;
    /* stays above content when sliding */
}

body.collapsed .left {
    transform: translateX(-100%);
}

.right {
    padding: 20px;
    transition: margin-left 0.3s ease;
}

body.collapsed .right {
    margin-left: -30%;
    /* shift content back into place */
}

/*Splash Text*/

#delay_warning_splash {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s;
    padding: 0 10px;
    /* start with no vertical padding */
}

#delay_warning_splash.show {
    max-height: 200px;
    padding: 10px;
}

#channel_nr_warning_splash {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s;
    padding: 0 10px;
    /* start with no vertical padding */
}

#channel_nr_warning_splash.show {
    max-height: 200px;
    padding: 10px;
}

/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
    /* Add dots under the hoverable text */
    cursor: pointer;
}

/* Tooltip text */
.tooltiptext {
    visibility: hidden;
    /* Hidden by default */
    width: 500px;
    background-color: black;
    color: white;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    position: absolute;
    z-index: 1010;
    /* Ensure tooltip is displayed above content */
}

/* Show the tooltip text on hover */
.tooltip:hover .tooltiptext {
    visibility: visible;
}


/*
Sidebar Toggle Button
*/

.toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    color: gray;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.toggle-btn:hover {
    background: #9e9e9e;
}

/* Button that appears in main content when sidebar is collapsed */
.show-sidebar-btn {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    border: none;
    color: gray;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    margin: 10px;
}

.show-sidebar-btn:hover {
    background: #9e9e9e;
}

body.collapsed .show-sidebar-btn {
    display: inline-block;
}

.right {
    padding: 20px;
}


/*
TOGGLE BUTTON START
*/
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 20px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color:
        /*#2196F3*/
        rgb(211, 211, 211);
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/*
INPUT TYPES
*/

input_small {
    display: block;
    margin-bottom: 10px;
    width: 40%;
    padding: 8px;
    box-sizing: border-box;
}


input[type=number] {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

input[type=checkbox] {
    display: inline
}

button {
    padding: 10px;
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}


.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-row>div {
    flex: 1;
}

.collapsible-label {
    font-weight: bold;
    cursor: pointer;
    color: #333;
    padding: 5px 0;
    margin-bottom: 10px;
    user-select: none;
}

.collapsible-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.collapsible-content.open {
    max-height: 300px;
    /* Adjust if more space is needed */
}