﻿/* ================= COMMON ================= */

/*.list-group-item.active {
    background-color: dimgrey;
    border-color: dimgray;
}

pre {
    background: #1e1e1e;
    color: #dcdcdc;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.sidebar-toggle {
    padding: 4px 10px;
    font-size: 14px;
}*/

/* ================= MOBILE CHATGPT STYLE ================= */

/*.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    background: #ffffff;
    z-index: 1100;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 60px;
}

    .mobile-sidebar.show {
        left: 0;
    }*/

/* 🔹 Backdrop */
/*.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1090;
    display: none;
}

    .sidebar-backdrop.show {
        display: block;
    }*/

/* ================= DESKTOP ================= */
/*@media (min-width: 768px) {
    .mobile-sidebar,
    .sidebar-backdrop,
    .sidebar-toggle {
        display: none !important;
    }
}*/
/* ====== LAYOUT FIX ====== */
html, body {
    height: 100%;
    overflow: hidden;
}

/* ====== SIDEBAR ====== */
.list-group {
    height: calc(100vh - 70px);
    overflow-y: auto;
}

/* Desktop sidebar fixed */
@media (min-width: 768px) {
    .col-md-3 {
        position: sticky;
        top: 60px;
        height: calc(100vh - 60px);
    }
}

/* ====== CONTENT SCROLL ====== */
.content-area {
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding-right: 15px;
}

/* ====== MOBILE SIDEBAR ====== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    background: #fff;
    z-index: 1050;
    overflow-y: auto;
    transition: left 0.3s ease;
}

    .mobile-sidebar.show {
        left: 0;
    }

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1040;
}

    .sidebar-backdrop.show {
        display: block;
    }

/* ====== CODE BLOCK ====== */
pre {
    background: #1e1e1e;
    color: #dcdcdc;
    padding: 15px;
    border-radius: 6px;
}

/* Active topic */
.list-group-item.active {
    background-color: #d6d5d4;
    border-color: #d6d5d4;
    color: #242323;
}
