:root {
    --sidebar-width: 280px;
    --nav-height: 60px;
}

html,body {
    height: 100%;
    margin: 0;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar .nav-link:hover{
    color: var(--bs-white) !important;
    background-color: var(--bs-nav-pills-link-active-bg) !important;
}

.sidebar .dropdown-toggle { outline: 0; }

.sidebar .btn-toggle {
    /*padding: .25rem .5rem;*/
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    font-weight: 600;
    color: var(--bs-white);
    background-color: transparent;
}

.sidebar .btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}

.sidebar .btn-toggle:hover,
.sidebar .btn-toggle:focus {
    color: var(--bs-white) !important;
}

/*[data-bs-theme="dark"] .btn-toggle::before {*/
/*    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");*/
/*}*/

.sidebar .btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.sidebar .btn-toggle-nav a {
    padding: .1875rem 1.2rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
}

.sidebar .btn-toggle-nav li:hover,
.sidebar .btn-toggle-nav li:focus {
    border-radius: var(--bs-border-radius);
    color: var(--bs-white) !important;
    background-color: var(--bs-nav-pills-link-active-bg);
}

.sidebar .btn-toggle-nav li a:hover {
    color: var(--bs-white) !important;
}

.sidebar .btn-toggle-nav li.active {
    border-radius: var(--bs-border-radius);
    color: var(--bs-white) !important;
    background-color: var(--bs-nav-pills-link-active-bg);
}

.sidebar .navbar-toggler-icon {
    width: 35px;
    height: 35px;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFFFFF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 992px) {
    .main {
        flex-direction: column !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .sidebar {
        position: unset !important;
        width: 100% !important;
        height: var(--nav-height) !important;
        flex-direction: row;
        align-items: center;
    }

    .sidebar .offcanvas {
        width: auto !important;
    }

    .sidebar .btn-close {
        --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFF'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
        background: transparent var(--bs-btn-close-bg) center/1em auto no-repeat;
    }
}

@media (min-width: 992px) {
    .sidebar .offcanvas {
        visibility: visible !important;
        transform: none !important;
        position: unset !important;
    }

    .sidebar .offcanvas .offcanvas-body {
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar .dropdown-menu {
        z-index: 1046;
    }
}

/* End sidebar */

.w-300px {
    width: 300px !important;
}
.w-500px{
    width: 500px !important;
}

.card-header {
    background-color: var(--bs-secondary-bg-subtle);
}

.scrollbar {
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    overscroll-behavior: contain;
    scrollbar-color: #989ea6 transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.cursor-pointer {
    cursor: pointer;
}

.pointer-event-none{
    pointer-events: none;
}

.avatar {
    flex-shrink: 0;
    font-size: 1.0909090909rem;
    height: 3rem;
    position: relative;
    width: 3rem;
}

.avatar-md {
    font-size: .75rem;
    height: 2rem;
    width: 2rem;
}

.avatar-circle .avatar-title {
    border-radius: 50%;
}

.avatar-title {
    align-items: center;
    display: flex;
    font-weight: 700;
    height: 100%;
    justify-content: center;
    line-height: 0;
    pointer-events: none;
    text-transform: uppercase;
    width: 100%;
}

blockquote p {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  padding: 0.5em 10px;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Base styles for all <pre><code></code></pre> */
pre code {
    display: block;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    color: #212529;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: calc(1.5em * 10); /* show 10 lines */
    overflow-y: auto; /* display scrollbar for more than 10 lines */
}

/* Shell commands */
pre code.language-shell {
    color: #4caf50; /* Green text */
    background-color: #2d2d2d; /* black background */
}

/* Configuration files */
pre code.language-config {
    color: #dc3545; /* Red text */
}
