/* input(406,34): run-time error CSS1019: Unexpected token, found '!important'
input(406,34): run-time error CSS1042: Expected function, found '!important'
input(406,44): run-time error CSS1062: Expected semicolon or closing curly-brace, found ',' */
:root {
    --primary-color: #a020f0;
    --primary-gradient: linear-gradient(to right, #9c27b0, #d81b60);
    --text-dark: #1B2559;
    --bg-light: #f8f2ff;
    --sidebar-width: 260px;
}

html {
    min-height: 100%;
}

body {
    font-family: 'Roboto';
    font-size: 14px;
    height: 100%;
}

.dvh-100 {
    height: 100dvh !important;
}

/* Custom Styles */
.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.2s ease;
    background: url('../img/bg-trongdong.png?v=MCIQX_rbMJvztbDiXEQclEEK4Zc'), linear-gradient(227.26deg, #E3F0FF -7.67%, #FFFFFF 65.55%);
    position: relative; /* Để định vị .bg-custom bên trong */
    background-size: contain, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}


.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: white;
    box-shadow: 0px 17px 40px 4px rgba(112, 144, 176, 0.11);
    z-index: 1000;
}

    .sidebar.collapsed {
        width: 0px;
    }

        .sidebar.collapsed .logo a {
            display: none;
        }

        .sidebar.collapsed .nav {
            display: none !important;
        }


        .sidebar.collapsed .conversation-list {
            display: none !important;
        }

        .sidebar.collapsed .sidebar-footer {
            display: none !important;
        }

        .sidebar.collapsed .logo button {
            margin: 0 auto;
        }

    .sidebar .logo button {
        display: block;
    }

.logo-text {
    font-weight: 700;
    font-size: 1.4rem;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 0px;
}

.header-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #555;
}

.header-description {
    font-size: 32px;
    color: #130261;
    max-width: 800px;
    margin: 0 auto 10px auto;
    text-align: center;
    line-height: 40px;
}


.search-box {
    max-width: 800px;
    margin: 0 auto 0px auto;
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0px 4.273px 34.184px -4.273px rgba(99, 140, 243, 0.32);
    border-radius: 17.092px;
    border-radius: 25px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

    .search-box input {
        flex: 1;
        border: none;
        outline: none;
        padding: 5px 10px;
        font-size: 1rem;
    }

.search-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
}

.magazine-card {
    border: none;
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: transparent;
}

    .magazine-card:hover {
        transform: translateY(-5px);
        cursor:pointer;
    }

    .magazine-card .card-body {
        padding: 0 15px;
    }

    .magazine-card .card-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 0px;
        line-height: 22px;
        color: var(--text-dark);
    }

    .magazine-card .card-description {
        font-size: 14px;
        color: #666;
        margin-bottom: 0;
        line-height: 18px;
    }


    .magazine-card .magazine-image {
        width: 72px;
        height: 96px;
        object-fit: cover;
        cursor: pointer;
    }


.magazine-category {
    background-color: #FFEFE8;
    color: #E58D57;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/*carousel*/
.carousel {
    margin: 0 auto;
    padding: 20px 0;
    max-width: 700px;
    overflow: hidden;
    display: flex;
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 128px, black calc(100% - 128px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 128px, black calc(100% - 128px), transparent 100%);
}

    .carousel.animated:hover .group {
        animation-play-state: paused;
    }

    .carousel:not(.basic) > * {
        flex: 0 0 100%;
    }

.group {
    display: flex;
    gap: 20px;
    padding-right: 20px;
    will-change: transform;
}

    .group.animated {
        animation: scrolling 20s linear infinite;
    }

@keyframes scrolling {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}
    

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 1050;
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0 !important;
    }
}

.conversation-list {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.conversation-list-item {
    height: 38px;
    color: rgb(38 38 38);
    background-color: #fff;
    cursor: pointer;
    --ds-focus-ring-border-radius: 14px;
    border-radius: 12px;
    align-items: center;
    padding: 0 10px;
    font-size: 14px;
    display: flex;
    position: relative;
}

    .conversation-list-item.active {
        background-color: rgb(243 243 243);
    }

    .conversation-list-item:hover {
        background-color: rgb(243 243 243);
    }

    .conversation-list-item .conversation-list-item__title {
        white-space: nowrap;
        flex: 1;
        align-items: center;
        min-width: 0;
        line-height: 18px;
        display: flex;
        overflow: hidden;
        color: rgb(38 38 38);
        text-decoration:none;
    }

    .conversation-list-item .conversation-list-item__tool {
        opacity: 0;
        z-index: 1;
        --ds-focus-ring-border-radius: 8px;
        border-radius: 8px;
        outline: none;
        justify-content: center;
        align-items: center;
        width: 24px;
        height: 24px;
        display: flex;
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
    }

    .conversation-list-item:hover .conversation-list-item__tool {
        opacity: 1;
    }

    .conversation-list-item .conversation-list-item__tool .conversation-list-item__icon {
        font-size: 16px;
        width: 16px;
        height: 16px;
        line-height: 0;
        display: inline-flex;
    }

    .conversation-list-item .conversation-list-item__blur1 {
        background: linear-gradient(90deg, rgba(249,251,255, 0) 0%, #fff 50%, #fff 100%);
        width: 24px;
        content: "";
        pointer-events: none;
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
    }

    .conversation-list-item .conversation-list-item__blur2 {
        opacity: 0;
        width: 84px;
        content: "";
        pointer-events: none;
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        background: linear-gradient(90deg, rgba(249,251,255, 0, 0) 0%, #fff 100%);
    }

    .conversation-list-item:not(.conversation-list-break):hover .conversation-list-item__blur2 {
        background: linear-gradient(90deg, rgba(243, 243, 243, 0) 0%, rgb(243 243 243) 60%, rgb(243 243 243) 100%);
        opacity: 1;
    }

.conversation-list-time {
    z-index: 2;
    background-color: #fff;
    color: #555;
    margin: 6px 0 6px -6px;
    padding: 0 10px 0 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
}

.context-menu {
    position: absolute;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1000;
    width: 120px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .context-menu.show {
        opacity: 1;
        transform: translateY(0);
    }

.context-menu-item {
    padding: 5px 10px;
    margin:0.5rem;
    cursor: pointer;
    font-size:13px;
    color: #333;
}

    .context-menu-item:last-child {
        border-bottom: none;
    }

    .context-menu-item:hover {
        border-radius:10px;
        background-color: #f7f7f7;
    }


#toggleSidebar-mobile{
    position:absolute;
    top: 10px;
    left:10px;
    z-index:999;
    cursor:pointer;
}

/*scroll bar*/

.scrollbar-thumb-idle {
    --scrollbar-thumb: #E0E0DC !important;
}

.scrollbar-track-transparent {
    --scrollbar-track: transparent !important;
}

.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: var(#E0E0DC !important, initial) var( transparent !important, initial);
}

/* Bootstrap Overrides */

.collapsing {
    transition: height 0.05s ease-in;
}

.btn-primary-custom {
    left: calc(50% - 400px/2);
    top: calc(50% - 56px/2 + 24px);
    background: linear-gradient(225deg, #E3395C 0%, #C72389 48.1%, #741BCF 100%);
    box-shadow: 14px 17px 40px 4px rgba(112, 144, 176, 0.1);
    border-radius: 12px;
    color:#fff;
    padding:0.5rem;
}

    .btn-primary-custom:hover{
        color: #fff !important;
    }

    .btn-login {
        background: #FFFFFF;
        box-shadow: 14px 17px 40px 4px rgba(112, 144, 176, 0.1);
        border-radius: 30px;
    }

    .btn-login span {
        font-family: 'Roboto';
        font-style: normal;
        font-weight: 500;
        font-size: 16px;
        line-height: 32px;
        background: linear-gradient(90deg, #8F1FE6 0%, #CA2383 28%, #EC1D29 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-fill-color: transparent;
    }


    .btn-outline-primary {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .btn-outline-primary:hover,
    .btn-outline-primary.active {
        background-color: rgba(160, 32, 240, 0.1);
        color: var(--primary-color);
    }

.sidebar .nav-link {
    color: var(--text-dark);
    padding: 0.5rem 0.75rem;
    border-radius: 30px;
    box-shadow: 14px 17px 60px 4px rgba(112, 144, 176, 0.1);
}

    .sidebar .nav-link:hover,
    .sidebar .nav-link.active {
        background-color: #FFFFFF;
        color: linear-gradient(90deg, #8F1FE6 0%, #CA2383 28%, #EC1D29 100%);
    }

.modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.form-control:focus {
    box-shadow: none !important;
}

.cursor-pointer{
    cursor:pointer;
}

.sidebar-footer .dropdown-menu .dropdown-item{
    padding: 10px;
}

    .sidebar-footer .dropdown-menu .dropdown-item:hover {
        background-color: rgb(243 243 243);
    }