﻿@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

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

    body.dark-mode {
        background-color: #121212;
        color: #e0e0e0;
    }

        body.dark-mode .bg-white {
            background-color: #1e1e1e !important;
        }

        body.dark-mode .text-dark {
            color: #f0f0f0 !important;
        }

        body.dark-mode aside {
            background-color: #1e1e1e !important;
            border-color: #2c2c2c;
        }

            body.dark-mode aside .nav-link {
                color: #f0f0f0 !important;
            }

.skeleton {
    height: 1rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
}

.layout-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-wrapper {
    display: flex;
    flex: 1;
    margin-top: 64px;
    transition: margin-left 0.3s ease-in-out;
}

    .main-wrapper.with-sidebar {
        margin-left: 240px;
    }

.main-content {
    flex-grow: 1;
    padding: 2rem;
    background-color: #ffffff;
}

body.dark-mode .main-content {
    background-color: #181818;
}

aside#sidebar {
    width: 240px;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    background: #fff;
    border-right: 1px solid #dee2e6;
    padding: 1rem;
    z-index: 999;
    transition: transform 0.3s ease-in-out;
}

    aside#sidebar.hide {
        transform: translateX(-100%);
    }

body.dark-mode aside#sidebar {
    background-color: #1e1e1e;
}

footer.footer {
    flex-shrink: 0;
}
