﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

.content-section {
    display: flex;
}

#toggle-filter {
    display: none;
}

/* Sửa lại style cho toggle button */
.toggle-btn {
    cursor: pointer;
    padding: 10px;
    background: #e0e0e0;
    position: sticky;
    top: 0px;
    left: 0px;
    width: 35px;
    height: 35px;
    display: block;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 100;
}

.toggle-btn span {
    display: inline-block;
    transition: transform 0.3s;
    pointer-events: none; /* Đảm bảo click event được xử lý bởi label */
}

#toggle-filter:checked ~ .content-section .toggle-btn span {
    transform: rotate(180deg);
}

#toggle-filter:not(:checked) ~ .filter-section {
    display: none;
}

.sticky-lock-btn {
    cursor: pointer;
    padding: 10px;
    background: #e0e0e0;
    position: sticky;
    top: 0px;
    left: calc(100vw - 70px);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 100;
}


.filter-section {
    display: block;
    background-color: #f0f0f0;
    padding: 20px;
    flex-shrink: 0;
    position: relative;
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.content-section {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
    position: relative;
}

/*!* Desktop styles (default) *!*/
/*@media screen and (min-width: 768px) {*/
/*    #toggle-filter:not(:checked) ~ .filter-section {*/
/*        max-height: 200px;*/
/*    }*/

/*    #toggle-filter:not(:checked) ~ .filter-section .filter-content {*/
/*        opacity: 1;*/
/*    }*/
/*}*/

/*!* Mobile styles *!*/
/*@media screen and (max-width: 767px) {*/
/*    .filter-section {*/
/*        max-height: 40px;*/
/*    }*/

/*    .filter-content {*/
/*        opacity: 0;*/
/*    }*/

/*    #toggle-filter:checked ~ .filter-section {*/
/*        max-height: 200px;*/
/*    }*/

/*    #toggle-filter:checked ~ .filter-section .filter-content {*/
/*        opacity: 1;*/
/*    }*/
/*}*/