* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -webkit-app-region: no-drag;
    touch-action: manipulation;
    -webkit-touch-callout: none;

    overscroll-behavior: contain;

        
    &::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
    
    &::-webkit-scrollbar-track {
        background: transparent;
    }
    
    &::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 10px;
    }
    
    &::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255, 255, 255, 0.75);
    }

    }

:root {
    --font-family-primary: 'Inter', sans-serif;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.3);

    --headerMainHeight: 0;
        --mainPadding: 10px;
    --mainBorderRadius: 10px;

    --blur-strong: blur(30px);
    --blur-medium: blur(20px);
    --blur-light: blur(10px);

    --mobile-bottom-space: 0;
    --desktop-titlebar-height: 32px;
}

html, body {
        background: linear-gradient(135deg, #141420 0%, #1e1e2e 100%);
                    background-size: cover;
    overflow: hidden;
}

body {
    font-family: var(--font-family-primary);
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;

    display: flex;
    flex-direction: column;
    height: 100vh;
    -webkit-user-drag: none;
    -webkit-app-region: no-drag;
    color: var(--text-primary);
}


a {
    color: var(--text-primary);
    text-decoration: none;
}

p, a {
    line-height: 1.15;
}

h1, h2, h3, h4, h5, h6, p {
    cursor: default;
}

button {
    width: fit-content;
    background: rgba(128, 128, 128, 0.1);
    color: var(--text-primary);
    outline: 1px solid rgba(255, 255, 255, 0.15);
    outline-offset: -1px;
    border-radius: var(--mainBorderRadius);
    border: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.25s ease;

    &:hover {
        background: rgba(128, 128, 128, 0.2);
        outline: 1px solid rgba(255, 255, 255, 0.25);
        outline-offset: -1px;
        transition: all 0.25s ease;
    }

    &:active {
        background: rgba(100, 100, 100, 0.2);
        outline: 1px solid rgba(255, 255, 255, 0.5);
        outline-offset: -1px;
        transition: all 0s ease;
    }
}

label {
    pointer-events: none;
}

header {
    position: relative;
    background-color: rgba(75, 75, 85, 0.4);
    height: var(--headerMainHeight);
    width: 100%;
    backdrop-filter: blur(75px);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.10);
    z-index: 100;
    transition: all 0.5s ease-out;
    
    &.opaque {
        background-color: rgba(75, 75, 85, 0.125);
        backdrop-filter: blur(0);
        box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
        transition: all 1.75s cubic-bezier(0.55, 0, 0.25, 1);

        &:hover {
            background-color: rgba(75, 75, 85, 0.4);
            backdrop-filter: blur(75px);
            box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.10);
            transition: all 0.1s ease-in-out;

            .container {
                opacity: 1;
                transition: opacity 0.2s ease-out;
            }
        }

        .container {
            opacity: 0.325;
            transition: opacity 1.75s cubic-bezier(0.55, 0, 0.25, 1);
        }
    }

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 var(--mainPadding);
        height: 100%;
        transition: all 0.5s ease;

        
        .left {
            display: flex;
            align-items: center;
            gap: 20px;

            a, p {
                font-size: 21px;
                color: rgba(255, 255, 255, 0.9);
            }

            .headerApplication {
                display: flex;
                align-items: center;
                gap: 13px;

                a, p {
                    font-weight: 600;
                    max-height: 33px;

                    img {
                        width: 33px;
                        height: 33px;
                        border-radius: 22%;

                        transition: all 0.4s cubic-bezier(0.6, 0, 0, 1);
                        
                        &:hover {
                            width: 80px;
                            height: 80px;
                            background-color: rgba(64, 64, 64, 0.6);
                            filter: drop-shadow(0 0 10px rgba(24, 24, 24, 0.8));
                            transition: all 0.3s cubic-bezier(0.25, 0, 0, 1.2);
                        }
                    }
                }
            }
        }

        .right {
            display: flex;
            align-items: center;
            gap: 15px;

            a:has(img) {
                width: 33px;
                height: 33px;
                
                img {
                    width: 33px;
                    height: 33px;
                    object-fit: cover;
                    border-radius: 4px;
                }
            }

            input[type="text"] {
                height: 100%;
                display: flex;
                align-items: center;
                padding: 8px 9px;
                width: 225px;
                color: rgba(255, 255, 255, 0.75);
                background-color: rgba(32, 32, 32, 0.2);
                border: 0px solid rgba(255, 255, 255, 0.75);
                outline: none;
                transition: all 0.25s ease, border 0s;

                &:focus {
                    background-color: rgba(32, 32, 32, 0.35);
                    border: 1px solid rgba(255, 255, 255, 0.125);
                    padding: 8px 10px;
                    transition: 0.25s ease;
                }
            }

            input::placeholder {
                font-size: 16px;
                transform: translateY(1px);
                color: rgba(255, 255, 255, 0.35);
                            }
        }
    }
}

#main {
    width: 100%; height: 100%;
    max-width: 100%; max-height: calc(100vh - var(--headerMainHeight));
    padding: var(--mainPadding);
}

#mainContainer {
    width: 100%;
    height: 100%;
        margin: 0 auto;

    display: flex;
    gap: var(--mainPadding);

    > * {
        height: 100%;
        border-radius: var(--mainBorderRadius);
    }

    > #menu {
        flex: 1;
        max-width: 250px;
        background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    }
    
    > #list {
        flex: 1;
        max-width: 350px;
        background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
        overflow: hidden;
    }
    
    > #mainContent {
        flex: 1;
        min-width: 0;             }
    
    > #sidebar {
        flex: 1;
        max-width: 300px;
        background-color: var(--bg-tertiary);
    }
}

.display-none, [hidden] {
    display: none !important;
}

.avatar, [data-avatar], [data-user-avatar], [data-profile-avatar] {
    aspect-ratio: 1 / 1 !important;
    background-color: rgba(100, 100, 100, 0.2);

    &.clickable {
        transition: scale 0.15s cubic-bezier(0.15, 0, 0, 1) !important;
        cursor: pointer;
    
        &:active {
            scale: 0.9;
        }
    }


    &[src*="img/default-avatar.jpg"] {
                        opacity: 0.6;
    }
}

.avatar-wrapper {
    &.clickable {
        transition: scale 0.15s cubic-bezier(0.15, 0, 0, 1) !important;
        cursor: pointer;
    
        &:active {
            scale: 0.9;
        }
    }
}

@keyframes blurINOUT {
    0% {
        filter: blur(0px);
    }
    50% {
        filter: blur(3px);
    }
    100% {
        filter: blur(0px);
    }
}

.avatar {
    --3d-max-rotation: 30deg !important;
    --3d-max-move-x: 2px !important;
    --3d-max-move-y: 2px !important;
    --3d-smoothness: 0.15 !important;
    --3d-scale: 1.05 !important;
    --3d-shadow-blur: 20px !important;
    --3d-shadow-opacity: 0.3 !important;
    --3d-depth: 1.2 !important;
    --3d-enter-duration: 0.4s !important;
    --3d-exit-duration: 0.5s !important;
}