﻿/*#region Fonts */
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-Regular.ttf') format('tff')
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-Medium.ttf') format('tff')
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-Bold.ttf') format('tff')
}

/* Poppins Google Font */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Special+Gothic:wght@400..700&display=swap'); */

/*#endregion */

/* #region Base */

.main {
    display: flex;
    position: relative;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
}

.empty-table {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.main-content {
    flex: 1 1 auto;
    flex-direction: column;
    overflow-y: auto;
    min-height: 0;
}

.page-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Poppins', sans-serif;
    /*    background-color: var(--bg-1);*/
    background: url(/img/beautiful-shot-top-mountain.jpg) center / cover no-repeat;
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

    body::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: var(--overlay-1);
        pointer-events: none;
        z-index: 0;
    }

.wrapper {
    display: flex;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

main {
    flex: 1 0 auto;
}

/* #endregion */

/* #region Navbar & Sidebar */

#navbar {
    background: var(--bg-2);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
    padding: 5px;
    border-radius: 15px;
    margin: 8px;
    z-index: 1;
}

.navbar-item {
    border: solid 1px var(--fg-1);
    border-radius: 25px;
    padding: 6px 6px 3px 6px;
    margin-left: 5px;
    background-color: transparent;
    height: 35px;
    width: 35px;
}

    .navbar-item i {
        margin: 0 !important;
        padding: 0 !important;
    }

#sidebar {
    background: var(--brand-2);
    border: 1px solid rgba(0, 130, 206, .16);
    border-radius: 15px;
    margin: 8px 0 8px 8px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .18);
    width: 80px;
    min-width: 80px;
    transition: width .25s ease, min-width .25s ease, background-color .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

    #sidebar.expand {
        width: 270px;
        min-width: 270px;
        z-index: 10;
    }

    #sidebar > .d-flex {
        min-height: 58px;
        padding: 0 14px !important;
    }

    #sidebar .sidebar-logo a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    #sidebar .sidebar-logo img {
        width: 30px;
        height: 30px;
        padding: 0;
        object-fit: contain;
    }

    #sidebar .close-btn {
        display: none;
        color: rgba(255, 255, 255, .78) !important;
        font-size: 1.1rem;
        transition: color .2s ease, transform .2s ease;
    }

    #sidebar .close-btn:hover {
        color: #fff !important;
        transform: rotate(90deg);
    }

@media (max-width: 992px) {

    #sidebar {
        display: none;
        margin: 0;
        border-radius: 0px;
    }

        #sidebar.expand {
            display: flex;
            width: 100%;
            min-width: 100%;
            height: 100dvh;
            max-height: 100dvh;
            border-radius: 0;
            z-index: 10;
        }

        #sidebar:not(.expand) .sidebar-dropdown {
            position: absolute;
            top: 0;
            left: 40px !important;
            background-color: var(--brand-2);
            padding: 0;
            min-width: 15rem;
            display: none;
        }

        #sidebar .close-btn {
            color: var(--bs-primary) !important;
            display: block;
        }
}

.logo-toast {
    display: block;
    width: 25px;
    transition: opacity 0.2s ease;
}

#sidebar:not(.expand) a.sidebar-link span {
    display: none;
}

.toggle-btn {
    width: 30px;
    height: 30px;
    color: var(--bs-primary) !important;
    border-radius: 0.425rem;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.headertoggle-btn {
    font-size: small;
    border: 0;
    color: var(--bs-body-bg-secondary);
    background-color: transparent;
}

.toggle-btn i {
    color: var(--bs-primary);
}

#sidebar.expand.sidebar-logo,
#sidebar.expand a.sidebar-link span {
    animation: fadeIn .25s ease;
}

.navbar-brand img {
    max-height: 55px;
    max-width: 120px;
    background-color: rgb(252, 250, 255);
    border-radius: 15px;
    padding: 0 10px;
}

.sidebar-logo a img {
    max-height: 30px;
    max-width: 120px;
    object-fit: contain;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.sidebar-nav {
    flex: 1 1 auto;
    z-index: 10;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: .5rem .6rem;
}

.sidebar-link {
    position: relative;
}

a.sidebar-link {
    position: relative;
    width: 100%;
    min-height: 52px;
    padding: .75rem .85rem;
    border: 1px solid transparent;
    border-radius: 14px;
    color: rgba(255, 255, 255, .78);
    display: flex;
    align-items: center;
    gap: .75rem;
    white-space: nowrap;
    font-weight: 600;
    transition: background-color .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}

.sidebar-link i,
.dropdown-item i {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-2);
    background: rgba(255, 255, 255, .06);
    font-size: 1.05rem;
    transition: background-color .22s ease, color .22s ease;
}

#sidebar a.sidebar-link:hover,
#sidebar a.sidebar-link:focus-visible {
    border-color: #8da7ff;
    background: rgba(0, 130, 206, .12);
    color: #fff;
    transform: translateX(2px);
}

#sidebar a.sidebar-link:hover i,
#sidebar a.sidebar-link:focus-visible i {
    background: rgba(0, 130, 206, .22);
    color: var(--brand-1);
}

#sidebar a.sidebar-link.active {
    border-color: #8da7ff;
    background: linear-gradient(130deg, rgba(0, 130, 206, .2), rgba(0, 130, 206, .05));
    color: #fff;
    box-shadow: 0 8px 16px rgba(0, 130, 206, .14);
}

#sidebar a.sidebar-link.active i {
    background: rgba(0, 130, 206, .24);
    color: #fff;
}

#sidebar .sidebar-footer {
    margin-top: auto;
    padding: .75rem .6rem 0;
    flex: 0 0 auto;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

@media (max-width: 992px) {
    #sidebar.expand .sidebar-footer {
        padding-bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
    }
}

#sidebar .sidebar-footer a.sidebar-link {
    color: #ffb4ad;
    background: rgba(220, 38, 38, .08);
    border-color: rgba(220, 38, 38, .18);
}

#sidebar .sidebar-footer a.sidebar-link i {
    color: #ffb4ad;
    background: rgba(220, 38, 38, .12);
}

#sidebar .sidebar-footer a.sidebar-link:hover,
#sidebar .sidebar-footer a.sidebar-link:focus-visible {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}

#sidebar .sidebar-footer a.sidebar-link:hover i,
#sidebar .sidebar-footer a.sidebar-link:focus-visible i {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

#sidebar:not(.expand) a.sidebar-link {
    justify-content: center;
    padding-right: .5rem;
    padding-left: .5rem;
}

#sidebar:not(.expand) a.sidebar-link i {
    margin: 0;
}

#sidebar:not(.expand) .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 80px;
    background-color: hsla(0, 0%, 100%, 0.15);
    backdrop-filter: blur(30px);
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar.expand .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.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}
/* #endregion */
/* #region Auth*/

.auth-logo img {
    height: 25px;
    border-radius: 5px;
}

.auth-logo a {
    color: var(--fg-1);
}

.auth-card {
    background-color: var(--bg-2);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--fg-1);
    padding: 30px;
    width: 450px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

@media (max-width: 800px) {
    .auth-card {
        width: 100%;
        min-height: 100vh;
    }
}
/* #endregion */
