@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #1a3a2a;
    --color-primary-light: #2ecc71;
    --color-secondary: #1a2a3a;
    --color-accent: #e67e22;
    --color-bg: #f4f6f9;
    --color-surface: #ffffff;
    --color-text: #2c3e50;
    --color-text-light: #7f8c8d;
    --color-gold: #ffd700;
    --color-silver: #c0c0c0;
    --color-bronze: #cd7f32;
    --sidebar-bg: #1a2a3a;
    --sidebar-text: #ecf0f1;
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active-border: #e67e22;
}

*,
::after,
::before {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--color-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 45 L20 12 L30 28 L40 8 L60 45 Z' fill='%232c3e50' opacity='0.035'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

h1, h2, h3, .sidebar-logo a, .sidebar-header {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h3 {
    font-size: 1.2375rem;
    color: #000000;
}

a {
    cursor: pointer;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

li {
    list-style: none;
}

/* Layout skeleton */

.wrapper {
    align-items: stretch;
    display: flex;
    width: 100%;
}

#sidebar {
    max-width: 264px;
    min-width: 264px;
    background-color: var(--sidebar-bg);
    transition: all 0.35s ease-in-out;
    box-shadow: 0 0 35px 0 rgba(49, 57, 66, 0.5);
    z-index: 1111;
}

.sidebar-nav {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Sidebar collapse */

#sidebar.collapsed {
    margin-left: -264px;
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
}

.main .navbar {
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.btn-navbar-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-navbar-toggle svg {
    display: block;
}

.btn-navbar-toggle:hover {
    background-color: var(--sidebar-hover);
    border-color: rgba(255, 255, 255, 0.4);
}

.sidebar-logo {
    padding: 1.15rem 1.5rem;
}

.sidebar-logo a {
    color: #e9ecef;
    font-size: 1.25rem;
    font-weight: 600;
}

.sidebar-nav {
    padding: 0;
}

.sidebar-header {
    color: #e9ecef;
    font-size: .75rem;
    padding: 1.5rem 1.5rem .375rem;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #e9ecef;
    position: relative;
    display: block;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

a.sidebar-link:hover {
    background-color: var(--sidebar-hover);
    transform: translateX(4px);
    color: #ffffff;
    border-left-color: var(--sidebar-active-border);
}

a.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--sidebar-active-border);
    color: #ffffff;
    font-weight: 500;
}

.sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

.sidebar-multilevel{
    border-top: 1px solid black;
}


.content {
    flex: 1;
    max-width: 100vw;
    width: 100vw;
}

/* Sidebar overlay */
#sidebarOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
}

#sidebarOverlay.active {
    display: block;
}

/* Responsive */

@media (min-width:768px) {
    .content {
        width: auto;
    }
}

@media (max-width: 767.98px) {
    #sidebar.collapsed {
        min-width: 0;
        max-width: 0;
        padding: 0;
        overflow: hidden;
        margin-left: 0;
    }

    #sidebar:not(.collapsed) {
        z-index: 2000;
    }
}