
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

.layout-app-container {
    display: flex;
    min-height: 100vh;
}

.layout-sidebar {
    width: 70px;
    background-color: #2b2d3a;
    padding: 10px 5px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #4a4d5a #2b2d3a;
}

.layout-sidebar::-webkit-scrollbar {
    width: 6px;
}

.layout-sidebar::-webkit-scrollbar-track {
    background: #2b2d3a;
}

.layout-sidebar::-webkit-scrollbar-thumb {
    background-color: #4a4d5a;
    border-radius: 3px;
}

.layout-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #555867;
}

.layout-sidebar ul {
    list-style-type: none;
}

.layout-sidebar ul li {
    margin-bottom: 10px;
}

.layout-sidebar ul li:last-child {
    margin-bottom: 0;
}

.layout-sidebar ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    color: #d0d0d0;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    border-radius: 10px;
}

.layout-sidebar ul li a .icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.layout-sidebar ul li a .text {
    font-size: 0.8rem;
    font-weight: 400;
}

.layout-sidebar ul li a:hover {
    background-color: #363945;
}

.layout-sidebar ul li a.active-link {
    background-color: #0088cc;
    color: #ffffff;
    font-weight: 500;
}

.layout-sidebar ul li a.active-link .icon,
.layout-sidebar ul li a.active-link .text {
    color: #ffffff;
}

.layout-main-content {
    flex-grow: 1;
}

.layout-loader-wrapper {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2b2d3a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-in-out;
}

.layout-loader {
    width: 60px;
    height: 60px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #0088cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.layout-loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.layout-loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}