/* Theme Variables */
:root {
    --theme-dark-bg: #25293c;
    --theme-darker-bg: #31354c;
    --theme-border-radius: 5px;
    --scrollbar-width: 8px;
    --scrollbar-track: var(--theme-dark-bg);
    --scrollbar-thumb: var(--theme-darker-bg);
}

/* Layout & Containers */
.layout-container {
    min-height: 100vh;
}

/* Custom Scrollbar Styling */
* {
    scrollbar-width: var(--scrollbar-width);
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: var(--theme-border-radius);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: var(--theme-border-radius);
    border: 2px solid var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb:hover {
    background-color: var(--theme-darker-bg);
}

/* Menu Styles */
.layout-menu {
    background-color: var(--theme-dark-bg);
    padding-top: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.menu-inner {
    background-color: var(--theme-darker-bg);
}

.app-brand {
    background-color: var(--theme-dark-bg);
    margin: 0;
}

.menu-toggle-icon {
    margin-top: 20px;
}

/* Navbar Styles */
.layout-navbar {
    background-color: var(--theme-dark-bg) !important;
    border-radius: var(--theme-border-radius);
}

/* Footer Styles */
.footer-container {
    border-radius: var(--theme-border-radius);
}

/* Common Components */
.rounded-custom {
    border-radius: var(--theme-border-radius);
}

.padding-custom {
    padding: 3px 10px;
}

/* Utility Classes */
.h-38 {
    height: 38px;
}

/* Animation Classes */
.fade {
    transition: opacity 0.15s linear;
}

/* Form Elements */
.form-control:focus {
    border-color: var(--theme-darker-bg);
    box-shadow: 0 0 0 0.25rem rgba(49, 53, 76, 0.25);
}

/* Custom Avatar Styles */
.avatar-online::before {
    background-color: #71dd37;
}

.avatar img {
    object-fit: cover;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 41, 60, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Media Queries */
@media (max-width: 991.98px) {
    .layout-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .layout-menu.show {
        transform: translateX(0);
    }
}

/* Date Formatting (replacing Moment.js functionality) */
.formatted-date {
    font-variant-numeric: tabular-nums;
}