<script setup>
    import LoadingModal from '../components/ui/LoadingModal.vue';
    import NavBar from '../components/NavBar.vue';
    import Sidebar from '../components/Sidebar.vue';

</script>

<template>
    <div class="wrapper">
        <Sidebar/>
        <div class="main-panel" id="main-panel">
            <NavBar/>
            <div class="view">
                <RouterView />
            </div>
        </div>
    </div>
    <LoadingModal/>
</template>

<style lang="scss" scoped>
    .wrapper {
        position: relative;
        width: 100wv;
        top: 0;
        height: 100vh; 
        display: flex;
        background-color: #f6f3f3;
    }
    
    .main-panel {
        position: relative;
        margin-left: 220px;
        width: calc(100wv - 220px) !important;
    }

    .view {
        width: 100%;
        padding: 24px 50px;
    }

    @media (max-width: 1400px) {
        .view {
            padding: 24px 24px;
        }
    }

    @media (max-width: 768px) {
        .main-panel {
            position: relative;
            margin-left: 0px;
            width: 100wv !important;
        }
        .view {
            margin: 24px 12px;
        }
    }
</style>