/* Variables */
:root {
    --base-font-size: 17px;
    --base-font-family: Nunito;

    --theme-shell-background-color-rgb: 34 19 7;
    --theme-shell-background-color: rgba(var(--theme-shell-background-color-rgb)/1);
    --theme-shell-background-image: url("/Content/Images/Background/wood01.png");

    --theme-shell-border-radius: 30px;

    --theme-shell-color-rgb: 77 44 15;
    --theme-shell-color: rgba(var(--theme-shell-color-rgb)/1);
    --theme-shell-color-50: rgba(var(--theme-shell-color-rgb)/0.05);
    --theme-shell-color-100: rgba(var(--theme-shell-color-rgb)/0.1);
    --theme-shell-color-200: rgba(var(--theme-shell-color-rgb)/0.2);
    --theme-shell-color-300: rgba(var(--theme-shell-color-rgb)/0.3);
    --theme-shell-color-400: rgba(var(--theme-shell-color-rgb)/0.4);
    --theme-shell-color-500: rgba(var(--theme-shell-color-rgb)/0.5);
    --theme-shell-color-600: rgba(var(--theme-shell-color-rgb)/0.6);
    --theme-shell-color-700: rgba(var(--theme-shell-color-rgb)/0.7);
    --theme-shell-color-800: rgba(var(--theme-shell-color-rgb)/0.8);
    --theme-shell-color-900: rgba(var(--theme-shell-color-rgb)/0.9);

    --theme-shell-text-color-rgb: 253 232 194;
    --theme-shell-text-color: rgba(var(--theme-shell-text-color-rgb)/1);
    --theme-shell-text-color-50: rgba(var(--theme-shell-text-color-rgb)/0.05);
    --theme-shell-text-color-100: rgba(var(--theme-shell-text-color-rgb)/0.1);
    --theme-shell-text-color-200: rgba(var(--theme-shell-text-color-rgb)/0.2);
    --theme-shell-text-color-300: rgba(var(--theme-shell-text-color-rgb)/0.3);
    --theme-shell-text-color-400: rgba(var(--theme-shell-text-color-rgb)/0.4);
    --theme-shell-text-color-500: rgba(var(--theme-shell-text-color-rgb)/0.5);
    --theme-shell-text-color-600: rgba(var(--theme-shell-text-color-rgb)/0.6);
    --theme-shell-text-color-700: rgba(var(--theme-shell-text-color-rgb)/0.7);
    --theme-shell-text-color-800: rgba(var(--theme-shell-text-color-rgb)/0.8);
    --theme-shell-text-color-900: rgba(var(--theme-shell-text-color-rgb)/0.9);
    --theme-shell-text-shadow: none;

    --theme-background-color-rgb: 34 19 7;
    --theme-background-color: rgba(var(--theme-background-color-rgb)/1);
    --theme-background-image: none;

    --theme-border-radius: 25px;

    --theme-control-border-radius: 15px;
    --theme-control-shadow: 5px 5px 10px rgba(0,0,0, 0.2);
    --theme-control-hover-shadow: 1px 1px 5px rgba(0,0,0, 0.3);

    --theme-primary-color-rgb: 67 34 5;
    --theme-primary-color: rgba(var(--theme-primary-color-rgb)/1);
    --theme-primary-color-50: rgba(var(--theme-primary-color-rgb)/0.05);
    --theme-primary-color-100: rgba(var(--theme-primary-color-rgb)/0.1);
    --theme-primary-color-200: rgba(var(--theme-primary-color-rgb)/0.2);
    --theme-primary-color-300: rgba(var(--theme-primary-color-rgb)/0.3);
    --theme-primary-color-400: rgba(var(--theme-primary-color-rgb)/0.4);
    --theme-primary-color-500: rgba(var(--theme-primary-color-rgb)/0.5);
    --theme-primary-color-600: rgba(var(--theme-primary-color-rgb)/0.6);
    --theme-primary-color-700: rgba(var(--theme-primary-color-rgb)/0.7);
    --theme-primary-color-800: rgba(var(--theme-primary-color-rgb)/0.8);
    --theme-primary-color-900: rgba(var(--theme-primary-color-rgb)/0.9);

    --theme-primary-bright-color-rgb: 130 79 34;
    --theme-primary-bright-color: rgba(var(--theme-primary-bright-color-rgb)/1);
    --theme-primary-bright-color-50: rgba(var(--theme-primary-bright-color-rgb)/0.05);
    --theme-primary-bright-color-100: rgba(var(--theme-primary-bright-color-rgb)/0.1);
    --theme-primary-bright-color-200: rgba(var(--theme-primary-bright-color-rgb)/0.2);
    --theme-primary-bright-color-300: rgba(var(--theme-primary-bright-color-rgb)/0.3);
    --theme-primary-bright-color-400: rgba(var(--theme-primary-bright-color-rgb)/0.4);
    --theme-primary-bright-color-500: rgba(var(--theme-primary-bright-color-rgb)/0.5);
    --theme-primary-bright-color-600: rgba(var(--theme-primary-bright-color-rgb)/0.6);
    --theme-primary-bright-color-700: rgba(var(--theme-primary-bright-color-rgb)/0.7);
    --theme-primary-bright-color-800: rgba(var(--theme-primary-bright-color-rgb)/0.8);
    --theme-primary-bright-color-900: rgba(var(--theme-primary-bright-color-rgb)/0.9);

    --theme-primary-text-color-rgb: 253 232 194;
    --theme-primary-text-color: rgba(var(--theme-primary-text-color-rgb)/1);
    --theme-primary-text-color-50: rgba(var(--theme-primary-text-color-rgb)/0.05);
    --theme-primary-text-color-100: rgba(var(--theme-primary-text-color-rgb)/0.1);
    --theme-primary-text-color-200: rgba(var(--theme-primary-text-color-rgb)/0.2);
    --theme-primary-text-color-300: rgba(var(--theme-primary-text-color-rgb)/0.3);
    --theme-primary-text-color-400: rgba(var(--theme-primary-text-color-rgb)/0.4);
    --theme-primary-text-color-500: rgba(var(--theme-primary-text-color-rgb)/0.5);
    --theme-primary-text-color-600: rgba(var(--theme-primary-text-color-rgb)/0.6);
    --theme-primary-text-color-700: rgba(var(--theme-primary-text-color-rgb)/0.7);
    --theme-primary-text-color-800: rgba(var(--theme-primary-text-color-rgb)/0.8);
    --theme-primary-text-color-900: rgba(var(--theme-primary-text-color-rgb)/0.9);
    --primary-theme-text-shadow: none;

    --theme-primary-text-contrast-color-rgb: 253 232 194;
    --theme-primary-text-contrast-color: rgba(var(--theme-primary-text-contrast-color-rgb)/1);
    --theme-primary-text-contrast-color-50: rgba(var(--theme-primary-text-contrast-color-rgb)/0.05);
    --theme-primary-text-contrast-color-100: rgba(var(--theme-primary-text-contrast-color-rgb)/0.1);
    --theme-primary-text-contrast-color-200: rgba(var(--theme-primary-text-contrast-color-rgb)/0.2);
    --theme-primary-text-contrast-color-300: rgba(var(--theme-primary-text-contrast-color-rgb)/0.3);
    --theme-primary-text-contrast-color-400: rgba(var(--theme-primary-text-contrast-color-rgb)/0.4);
    --theme-primary-text-contrast-color-500: rgba(var(--theme-primary-text-contrast-color-rgb)/0.5);
    --theme-primary-text-contrast-color-600: rgba(var(--theme-primary-text-contrast-color-rgb)/0.6);
    --theme-primary-text-contrast-color-700: rgba(var(--theme-primary-text-contrast-color-rgb)/0.7);
    --theme-primary-text-contrast-color-800: rgba(var(--theme-primary-text-contrast-color-rgb)/0.8);
    --theme-primary-text-contrast-color-900: rgba(var(--theme-primary-text-contrast-color-rgb)/0.9);
    --primary-theme-text-contrast-shadow: none;


    --theme-color-red-rgb: 200 100 100;
    --theme-color-red: rgba(var(--theme-color-red-rgb)/1);
    --theme-color-red-50: rgba(var(--theme-color-red-rgb)/0.05);
    --theme-color-red-100: rgba(var(--theme-color-red-rgb)/0.1);
    --theme-color-red-200: rgba(var(--theme-color-red-rgb)/0.2);
    --theme-color-red-300: rgba(var(--theme-color-red-rgb)/0.3);
    --theme-color-red-400: rgba(var(--theme-color-red-rgb)/0.4);
    --theme-color-red-500: rgba(var(--theme-color-red-rgb)/0.5);
    --theme-color-red-600: rgba(var(--theme-color-red-rgb)/0.6);
    --theme-color-red-700: rgba(var(--theme-color-red-rgb)/0.7);
    --theme-color-red-800: rgba(var(--theme-color-red-rgb)/0.8);
    --theme-color-red-900: rgba(var(--theme-color-red-rgb)/0.9);

    --theme-color-green-rgb: 100 200 100;
    --theme-color-green: rgba(var(--theme-color-green-rgb)/1);
    --theme-color-green-50: rgba(var(--theme-color-green-rgb)/0.05);
    --theme-color-green-100: rgba(var(--theme-color-green-rgb)/0.1);
    --theme-color-green-200: rgba(var(--theme-color-green-rgb)/0.2);
    --theme-color-green-300: rgba(var(--theme-color-green-rgb)/0.3);
    --theme-color-green-400: rgba(var(--theme-color-green-rgb)/0.4);
    --theme-color-green-500: rgba(var(--theme-color-green-rgb)/0.5);
    --theme-color-green-600: rgba(var(--theme-color-green-rgb)/0.6);
    --theme-color-green-700: rgba(var(--theme-color-green-rgb)/0.7);
    --theme-color-green-800: rgba(var(--theme-color-green-rgb)/0.8);
    --theme-color-green-900: rgba(var(--theme-color-green-rgb)/0.9);

    --theme-color-blue-rgb: 100 100 200;
    --theme-color-blue: rgba(var(--theme-color-blue-rgb)/1);
    --theme-color-blue-50: rgba(var(--theme-color-blue-rgb)/0.05);
    --theme-color-blue-100: rgba(var(--theme-color-blue-rgb)/0.1);
    --theme-color-blue-200: rgba(var(--theme-color-blue-rgb)/0.2);
    --theme-color-blue-300: rgba(var(--theme-color-blue-rgb)/0.3);
    --theme-color-blue-400: rgba(var(--theme-color-blue-rgb)/0.4);
    --theme-color-blue-500: rgba(var(--theme-color-blue-rgb)/0.5);
    --theme-color-blue-600: rgba(var(--theme-color-blue-rgb)/0.6);
    --theme-color-blue-700: rgba(var(--theme-color-blue-rgb)/0.7);
    --theme-color-blue-800: rgba(var(--theme-color-blue-rgb)/0.8);
    --theme-color-blue-900: rgba(var(--theme-color-blue-rgb)/0.9);

    --theme-color-yellow-rgb: 255 255 0;
    --theme-color-yellow: rgba(var(--theme-color-yellow-rgb)/1);
    --theme-color-yellow-50: rgba(var(--theme-color-yellow-rgb)/0.05);
    --theme-color-yellow-100: rgba(var(--theme-color-yellow-rgb)/0.1);
    --theme-color-yellow-200: rgba(var(--theme-color-yellow-rgb)/0.2);
    --theme-color-yellow-300: rgba(var(--theme-color-yellow-rgb)/0.3);
    --theme-color-yellow-400: rgba(var(--theme-color-yellow-rgb)/0.4);
    --theme-color-yellow-500: rgba(var(--theme-color-yellow-rgb)/0.5);
    --theme-color-yellow-600: rgba(var(--theme-color-yellow-rgb)/0.6);
    --theme-color-yellow-700: rgba(var(--theme-color-yellow-rgb)/0.7);
    --theme-color-yellow-800: rgba(var(--theme-color-yellow-rgb)/0.8);
    --theme-color-yellow-900: rgba(var(--theme-color-yellow-rgb)/0.9);

    --theme-color-magenta-rgb: 150 0 150;
    --theme-color-magenta: rgba(var(--theme-color-magenta-rgb)/1);
    --theme-color-magenta-50: rgba(var(--theme-color-magenta-rgb)/0.05);
    --theme-color-magenta-100: rgba(var(--theme-color-magenta-rgb)/0.1);
    --theme-color-magenta-200: rgba(var(--theme-color-magenta-rgb)/0.2);
    --theme-color-magenta-300: rgba(var(--theme-color-magenta-rgb)/0.3);
    --theme-color-magenta-400: rgba(var(--theme-color-magenta-rgb)/0.4);
    --theme-color-magenta-500: rgba(var(--theme-color-magenta-rgb)/0.5);
    --theme-color-magenta-600: rgba(var(--theme-color-magenta-rgb)/0.6);
    --theme-color-magenta-700: rgba(var(--theme-color-magenta-rgb)/0.7);
    --theme-color-magenta-800: rgba(var(--theme-color-magenta-rgb)/0.8);
    --theme-color-magenta-900: rgba(var(--theme-color-magenta-rgb)/0.9);

    --theme-color-cyan-rgb: 0 255 255;
    --theme-color-cyan: rgba(var(--theme-color-cyan-rgb)/1);
    --theme-color-cyan-50: rgba(var(--theme-color-cyan-rgb)/0.05);
    --theme-color-cyan-100: rgba(var(--theme-color-cyan-rgb)/0.1);
    --theme-color-cyan-200: rgba(var(--theme-color-cyan-rgb)/0.2);
    --theme-color-cyan-300: rgba(var(--theme-color-cyan-rgb)/0.3);
    --theme-color-cyan-400: rgba(var(--theme-color-cyan-rgb)/0.4);
    --theme-color-cyan-500: rgba(var(--theme-color-cyan-rgb)/0.5);
    --theme-color-cyan-600: rgba(var(--theme-color-cyan-rgb)/0.6);
    --theme-color-cyan-700: rgba(var(--theme-color-cyan-rgb)/0.7);
    --theme-color-cyan-800: rgba(var(--theme-color-cyan-rgb)/0.8);
    --theme-color-cyan-900: rgba(var(--theme-color-cyan-rgb)/0.9);


    --field-background-color: rgb(233, 212, 174);
    --field-foreground-color: #222;
    --field-border-color: #555;
    --field-padding: 15px 15px;
    --field-select-padding: 15px 15px;
    --field-font-size: 15px;
    --field-invalid-color: #FFAAAA;


    --shade-10: rgba(0,0,0,0.1);
    --shade-20: rgba(0,0,0,0.2);
    --shade-30: rgba(0,0,0,0.3);
    --shade-40: rgba(0,0,0,0.4);
    --shade-50: rgba(0,0,0,0.5);
    --shade-60: rgba(0,0,0,0.6);
    --shade-70: rgba(0,0,0,0.7);
    --shade-80: rgba(0,0,0,0.8);
    --shade-90: rgba(0,0,0,0.9);

    --glass-10: rgba(127,127,200,0.1);
    --glass-20: rgba(127,127,200,0.2);
    --glass-30: rgba(127,127,200,0.3);
    --glass-40: rgba(127,127,200,0.4);
    --glass-50: rgba(127,127,200,0.5);
    --glass-60: rgba(127,127,200,0.6);
    --glass-70: rgba(127,127,200,0.7);
    --glass-80: rgba(127,127,200,0.8);
    --glass-90: rgba(127,127,200,0.9);

    --highlight-10: rgba(255,255,255, 0.1);
    --highlight-20: rgba(255,255,255, 0.2);
    --highlight-30: rgba(255,255,255, 0.3);
    --highlight-40: rgba(255,255,255, 0.4);
    --highlight-50: rgba(255,255,255, 0.5);
    --highlight-60: rgba(255,255,255, 0.6);
    --highlight-70: rgba(255,255,255, 0.7);
    --highlight-80: rgba(255,255,255, 0.8);
    --highlight-90: rgba(255,255,255, 0.9);




}

html {
    min-height: 100%;
    font-size: var(--base-font-size);
    background-color: var(--theme-shell-background-color);
    font-family: var(--base-font-family);
}

body {
    min-height: 100vh;
    background: transparent;
    margin: 0;
}

    body.size-xs {
        font-size: 13px;
    }

.size-xs .outlet-border {
    padding: 0;
}

#screen-outlet {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.size-xs #screen-outlet {
    padding: 10px;
}


/* 
    System 
*/

.brand-logo-text {
    font-family: Nunito;
    font-size: 40px;
}

    .brand-logo-text span:first-child {
        font-weight: 700;
    }

.area-drawer {
    display: flex;
    background-color: var(--shade-20);
    width: 100%;
    border-radius: var(--theme-shell-border-radius);
    align-items: center;
    justify-content: space-between;
    padding: 7px;
    gap: 7px;
    color: var(--theme-shell-text-color-800);
}

    .area-drawer .area-title {
        flex: 1;
        background-color: var(--theme-shell-color);
        border-radius: var(--theme-shell-border-radius);
        padding: 8px;
        text-align: center;
        cursor: pointer;
    }

        .area-drawer .area-title:hover {
            background-color: var(--highlight-10);
            color: var(--theme-shell-text-color);
        }

    .area-drawer .area-button {
        background-color: var(--theme-shell-color);
        color: var(--theme-primary-text-color-800);
        border: none;
        border-radius: var(--theme-shell-border-radius);
        cursor: pointer;
        padding: 6px;
    }

        .area-drawer .area-button:hover {
            background-color: var(--highlight-10);
            color: var(--theme-shell-text-color);
        }

.client-frame {
    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background-image: var(--theme-shell-background-image);
    background-size: cover;
    background-position: center center;
}

.client-panel {

    max-height: 98%;
    max-width: 2400px;
    width: 90%;
    height: 98%;

    background-color: var(--theme-background-color);
    background-image: var(--theme-background-image);
    background-size: cover;
    background-position: center center;

    border-radius: var(--theme-shell-border-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 10px 10px 80px rgba(0,0,0, 0.6);
}

    .size-xs .client-panel {
        max-height: 100%;
        max-width: 100%;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .screen-short .client-panel {
        max-height: 100%;
        height: 100%;
    }

    .screen-narrow .client-panel {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
    }

    .client-panel .client-panel-header {
        background-color: var(--theme-shell-color);
        color: var(--theme-shell-text-color);
        height: 80px;
                
        padding-left: 30px;
        padding-right: 30px;
    }

        .size-xs .client-panel .client-panel-header {
            height: 60px;
        }

        .screen-short .client-panel .client-panel-header {
            height: 60px;
        }


        .client-panel .client-panel-header .header-button {
            transition: 0.5s;
            height: 50px;
            width: 50px;
            border-radius: var(--theme-shell-border-radius);
            background-color: transparent;
            border: none;
            color: var(--theme-shell-text-color);
            cursor: pointer;
        }

            .size-xs .client-panel .client-panel-header .header-button {
                height: 50px;
                width: 50px;
            }

            .client-panel .client-panel-header .header-button:hover {
                background-color: var(--highlight-10);
            }

            .client-panel .client-panel-header .header-button .material-symbols-outlined {
                font-size: 32px;
            }


    .client-panel .client-panel-content {
        flex: 1;
        position: relative;
    }
    

    .client-panel .client-panel-content .client-panel-content-effects {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('/Content/Images/Background/Rain.gif');
        background-size: cover;
        opacity: 0.6;
    }

    .client-panel .client-panel-navbar {
        background-color: var(--theme-shell-color);
        height: 80px;
        display: flex;
        align-items: center;
        padding-left: 30px;
        padding-right: 30px;
        z-index: 1;
    }

        .size-xs .client-panel .client-panel-navbar {
            height: 60px;
            padding-left: 10px;
            padding-right: 10px;
        }

        .screen-short .client-panel .client-panel-navbar {
            height: 60px;
        }

        .client-panel .client-panel-navbar .navbar-left {
            flex: 1;
            display: flex;
            gap: 15px;
        }
            .size-xs .client-panel .client-panel-navbar .navbar-left {
                gap: 10px;
            }

        .client-panel .client-panel-navbar .navbar-center {
            flex: 1;
            justify-content: center;
            display: flex;
        }

        .client-panel .client-panel-navbar .navbar-right {
            flex: 1;
            justify-content: flex-end;
            display: flex;
            gap: 15px;
        }

            .size-xs .client-panel .client-panel-navbar .navbar-right {
                gap: 10px;
            }

        .client-panel .client-panel-navbar .navbar-button {
            transition: 0.5s;
            height: 60px;
            width: 60px;
            border-radius: var(--theme-shell-border-radius);
            background-color: transparent;
            border: none;
            color: var(--theme-shell-text-color);
            cursor: pointer;
            z-index: 100;
        }

            .size-xs .client-panel .client-panel-navbar .navbar-button {
                height: 50px;
                width: 50px;
            }

            .client-panel .client-panel-navbar .navbar-button:hover {
                background-color: var(--highlight-10);
            }

            .client-panel .client-panel-navbar .navbar-button .material-symbols-outlined {
                font-size: 32px;
            }

        .client-panel .client-panel-navbar .navbar-center-button {
            transition: 0.5s;
            height: 100px;
            width: 100px;
            border-radius: calc(var(--theme-shell-border-radius) * 2);
            background-color: var(--theme-primary-bright-color);
            border: none;
            color: var(--theme-primary-text-color);
            cursor: pointer;
        }

            .size-xs .client-panel .client-panel-navbar .navbar-center-button {
                height: 75px;
                width: 75px;
            }

            .screen-short .client-panel .client-panel-navbar .navbar-center-button {
                height: 75px;
                width: 75px;
            }

            .client-panel .client-panel-navbar .navbar-center-button:hover {
                background-color: var(--theme-primary-text-color);
                color: var(--theme-primary-color);
            }

            .client-panel .client-panel-navbar .navbar-center-button .material-symbols-outlined {
                font-size: 48px;
            }


.account-button {
    background-color: var(--theme-shell-text-color-900);
    color: var(--theme-shell-color);
    height: 50px;
    width: 50px;
    border: none;
    border-radius: var(--theme-shell-border-radius);
    transition: 0.5s;
    cursor: pointer;
}

    .account-button:hover {
        background-color: var(--theme-shell-text-color);
    }

    .account-button .material-symbols-outlined {
        font-size: 37px;
    }

.client-panel-apps-drawer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--shade-60);
    backdrop-filter: blur(20px);
    display: flex;
    padding: 30px;
    gap: 15px;
    flex-wrap: wrap;
    z-index: 200;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
}

    .size-xs .client-panel-apps-drawer {
        padding: 15px;
    }

    .client-panel-apps-drawer .app-item {
        transition: 0.5s;
        color: white;
        background-color: var(--shade-20);
        width: 150px;
        height: 150px;
        padding: 15px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: var(--theme-shell-border-radius);
        cursor: pointer;
    }

        .size-xs .client-panel-apps-drawer .app-item { 
            width: 100px;
            height: 100px;
        }

        .client-panel-apps-drawer .app-item:hover {
            background-color: var(--highlight-10);
        }

        .client-panel-apps-drawer .app-item .app-icon {
            margin-bottom: 5px;
        }

            .client-panel-apps-drawer .app-item .app-icon .material-symbols-outlined { 
                font-size: 64px;
            }


.client-panel-app-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(10px);
    overflow-y: hidden;
    overflow-x: hidden;
}

.client-panel-area-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(10px);
    overflow-y: hidden;
    overflow-x: hidden;
}


.scrollbox {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}


/*
    Area Menu
*/

.area-menu {
    position: absolute;
    bottom: -150px;
    left: 50%;
    margin-left: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--theme-primary-bright-color-500);
    
}

    .area-menu button {
        transition: 0.3s;
        position: absolute;
        transform-origin: center;
        translate: -50% -50%; 
        width: 150px;
        padding: 15px;
        background-color: var(--theme-primary-bright-color);
        color: var(--theme-primary-text-color);
        border: none;
        border-radius: 100px;
        cursor: pointer;
    }

        .area-menu button:hover {
            background-color: var(--theme-primary-text-color);
            color: var(--theme-primary-color);
        }

    .area-menu button:nth-child(1) { left: 0%; top: 40%; }
    .area-menu button:nth-child(2) { left: 15%; top: 20%; }
    .area-menu button:nth-child(3) { left: 50%; top: 0%; }
    .area-menu button:nth-child(4) { left: 85%; top: 20%; }
    .area-menu button:nth-child(5) { left: 100%; top: 40%  }


/*
    Scrollbars
*/

::-webkit-scrollbar {
    width: 15px;
    height: 15px;
}

::-webkit-scrollbar-track {
    margin-top: 50px;
    margin-bottom: 50px;
    border-radius: 15px;
    background-color: var(--shade-10);
}

.size-xs ::-webkit-scrollbar-track { 
    margin-top: 0;
    margin-bottom: 0;
}

::-webkit-scrollbar-thumb {
    background-color: var(--theme-primary-bright-color);
    border: 5px solid transparent;  /* creates spacing */
    background-clip: padding-box;   /* keep thumb inside */
    border-radius: 15px;
}


/*
    Padding
*/
.padded {
    padding: 15px;
}

.padded-double {
    padding: 30px;
}

.column-padding {
    padding: 15px;
}

.dialog-padding {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-top: 20px;
}

    .size-xs .dialog-padding {
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
        padding-top: 10px;
    }

/*
    Panels
*/

.panel {
    padding: 15px;
    background-color: var(--panel-background-color);
    backdrop-filter: blur(5px);
}

.column-padding {
    padding: 15px !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


/* 
    Tables
*/

.property-table {
    display: grid;
    grid-template-columns: 1fr 2fr; /* two columns: label + value */
    row-gap: 0.5rem;
    column-gap: 1rem;
    align-items: center;
    width: 300px;
}

.property-table-row {
    display: contents; /* lets the children participate in the grid */
}

.property-table-column {
    padding: 0.5rem 0;
}

.property-table-column:first-child {
    font-weight: 900;
}



/* 
    Loading 

*/

.loading-content {
    
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0, 0.2);
    backdrop-filter: blur(20px);

    justify-content: center;
    align-items: center;

    z-index: 100;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    background-color: var(--theme-shell-color-900);
    color: var(--theme-shell-text-color-900);
    padding: 50px;
    border-radius: var(--theme-shell-border-radius);
    box-shadow: 0 0 40px rgba(0,0,0, 0.5);
}

    .loading-indicator .material-symbols-outlined {
        font-size: 48px;
    }


/* 
    Dialogs 

*/

.dialogs-content {
    
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0, 0.2);
    backdrop-filter: blur(20px);

    justify-content: center;
    align-items: center;

    z-index: 100;
}

.dialog-body {
    color: var(--theme-shell-text-color);
    background-color: var(--theme-shell-color-700);
    overflow: hidden;
}

.dialog-div-body {
    width: 100%;
    color: var(--theme-shell-text-color);
    background-color: var(--theme-shell-color);
}

.dialog-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 40px;
}

dialog-frame {
    flex: 1;
    
    position: fixed;
    min-height: 200px;
    min-width: 300px;
    max-width: 100%;
    max-height: 100%;
    border: none;
    border-radius: var(--theme-shell-border-radius);
    overflow: hidden;

    box-shadow: 0px 0px 40px rgba(0,0,0, 0.7);
}

    .dialog-frame-header {
        position: relative;
        display: flex;
        align-items: center;

        color: var(--theme-shell-text-color);
        background-color: var(--theme-shell-color);

        padding: 0 30px;
        
        font-weight: 600;
        height: 60px;
        box-sizing: border-box;
    }

        .size-xs .dialog-frame-header {
            height: 40px;
        }

    .dialog-frame-header .dialog-frame-header-controls {
        position: absolute;
        top: 0;
        right: 10px;
        bottom: 0;
    }

            .dialog-frame-header .dialog-frame-header-controls ion-icon {
                margin-left: 8px;
                margin-top: 7px;
                font-size: 24px;
                vertical-align: middle;
            }

    .dialog-frame-content-div {
        display: flex;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0 0 5px 5px;

        overflow: auto;
    }

        .size-xs .dialog-frame-content-div {
            top: 40px;
        }


    .dialog-frame-content {
        display: flex;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0 0 5px 5px;
    }

        .size-xs .dialog-frame-content {
            top: 40px;
        }

    .dialog-frame-content .dialog-frame-iframe {
        border: none;
        flex: 1;
    }


    .dialog-loading {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: white;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }



/*
    Buttons
*/

.button-box {
    padding-top: 30px;
    display: flex;
    gap: 15px;
}

    .size-xs .button-box {
        padding-top: 15px;
    }

.button-block {
    padding-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 10px;
}

    .button-block button {
        width: 44vw;
    }


.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--theme-primary-bright-color-600);
    color: var(--them-primary-text-color-800);
    padding: 10px 15px;
    border: 2px solid transparent;
    border-radius: var(--theme-control-border-radius);
    gap: 5px;
    cursor: pointer;
}

    .btn-primary:has(.material-symbols-outlined) {
        padding-right: 23px;
    }

    .btn-primary:hover {
        background-color: var(--theme-primary-bright-color);
    }

    .btn-primary.danger {
        background-color: var(--theme-color-red-700);
    }

        .btn-primary.danger:hover {
            background-color: var(--theme-color-red-900);
        }

    .btn-primary .material-symbols-outlined {
        font-size: 20px;
    }




.btn-outline-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--them-primary-text-color-800);
    padding: 10px 15px;
    border: 2px solid var(--theme-primary-bright-color-800);
    border-radius: var(--theme-control-border-radius);
    gap: 5px;
    cursor: pointer;
}

    .btn-outline-primary:has(.material-symbols-outlined) {
        padding-right: 23px;
    }

    .btn-outline-primary .material-symbols-outlined {
        font-size: 20px;
    }

    .btn-outline-primary:hover {
        background-color: var(--theme-primary-bright-color-200);
    }


.btn-floating {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--theme-primary-color);
    color: var(--theme-primary-text-contrast-color-800);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    height: 70px;
    width: 70px;
    box-shadow: 3px 3px 10px rgba(0,0,0, 0.7);
}

    .btn-floating .material-symbols-outlined {
        font-size: 36px;
    }

    .btn-floating:hover {
        background-color: var(--theme-primary-bright-color);
    }



/* 
    Fields
*/

.field {
    padding: 10px 0;
    min-width: 150px;
    position: relative;
}

    .size-xs .field {
        padding: 7px 0;
    }

.field label {
    display: flex;
    margin-bottom: 3px;
    font-size: var(--field-font-size);
    font-weight: 600;
    align-items: center;
}

    .size-xs .field label {
        font-size: 13px;
    }

    .field label.caption-label input {
        margin-top: 0;
    }

    .field label.caption-label span {
        display: flex;
        font-weight: 100;
        align-items: center;
    }

.field input {
    background-color: var(--field-background-color);
    color: var(--field-foreground-color);
    border: 1px solid var(--field-border-color);
    padding: var(--field-padding);
    font-size: var(--base-font-size);
    border-radius: var(--theme-control-border-radius);
    font-size: var(--field-font-size);
    width: 100%;
}

    .size-xs .field input {
        font-size: 13px;
        padding: 10px 10px;
    }


.field input.invalid {
    background-color: var(--field-invalid-color);
}

.field textarea {
    background-color: var(--field-background-color);
    color: var(--field-foreground-color);
    border: 1px solid var(--field-border-color);
    padding: var(--field-padding);
    font-size: var(--base-font-size);
    border-radius: var(--theme-control-border-radius);
    font-size: var(--field-font-size);
    width: 100%;
}

    .size-xs .field textarea {
        font-size: 13px;
        padding: 10px 10px;
    }

.field textarea.invalid {
    background-color: var(--field-invalid-color);
}

.field input.password {
    padding-right: 30px;
}

.field input.color  {
    padding: 2px 4px;
    max-width: 200px;
    height: 50px;
}

.field input[type=checkbox] {
    box-shadow: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin-left: 0;
    margin-right: 10px;
}

.field input[type=radio] {
    box-shadow: none;
    width: 20px;
    height: 20px;
    margin: 0;
    margin-right: 5px;
}

.field select {
    background-color: var(--field-background-color);
    color: var(--field-foreground-color);
    border: 1px solid var(--field-border-color);
    padding: var(--field-select-padding);
    font-size: var(--base-font-size);
    border-radius: var(--theme-control-border-radius);
    width: 100%;
    box-sizing: border-box;
}

    .size-xs .field select {
        padding: 10px 15px;
        font-size: 14px;
    }

.field select.invalid {
    background-color: var(--field-invalid-color);
}

.field.single-image-field {
    display: inline-block;
    width: 300px;
    text-align: center;
}

.field.single-image-field .image-preview {
    min-height: 200px;
    width: 100%;
    margin-bottom: 15px;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    border: none;
}

.field.file-field .file-preview {
    background-color: #EEE;
    color: #888;
    padding: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.field.date-field select {
    width: 70px;
    padding-left: 2px;
    padding-right: 2px;
    text-align: center;
}

    .field.date-field select.day {
        width: 70px;
        margin-right: 10px;
    }

    .field.date-field select.month {
        width: 120px;
        margin-right: 10px;
        text-align: left;
    }

    .field.date-field select.hours {
        width: 60px;
        margin-left: 10px;
    }

    .field.date-field select.minutes {
        width: 60px;
    }

.field.choice-field .choices label {
    display: flex;
    align-items: center;
    font-weight: 100;
}

.field.choice-field .choices.invalid {
    background-color: var(--field-invalid-color);
}

.field.choice-field .scrollbox {
    background-color: var(--highlight-50);
    border: 1px solid var(--glass-30);
    border-radius: var(--theme-control-border-radius);
    padding: 10px;
    max-height: 120px;
    overflow-y: auto;

}

.field.choice-field .dropdown {
    position: absolute;
    width: 100%;
    z-index: 1;
    background-color: white;
}

.field .group {
    break-inside: avoid;
    margin-bottom: 15px;
}

.field .group-header {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.field .search-results {
    position: absolute;
    left: 0px;
    right: 0px;
    background-color: white;
    z-index: 1;
    border: var(--glass-50);
    box-shadow: 2px 2px 2px rgba(0,0,0, 0.5);
    border-radius: 0 0 10px 10px;
    max-height: 175px;
    overflow-y: auto;
}

    .field .search-results .search-results-item {
        cursor: pointer;
        padding: 10px 5px;
        font-size: 12px;
    }

        .field .search-results .search-results-item:hover {
            background-color: var(--glass-10);
        }

    .field .field-icon {
        position: absolute;
        bottom: 17px;
        right: 5px;
        cursor: pointer;
    }

    .field .search-input {
        padding-right: 30px;
    }



/*
    Mapbox
*/


.mapbox-map {
    height: 100%;
}


.mbx-marker {
    --size: 45px;
    --m: #ff3b30;

    position: relative;
    width: var(--size);
    height: var(--size);
    cursor: pointer;
    user-select: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
    transition: transform .12s ease, filter .12s ease;
}

.mbx-marker:hover {
    transform: rotate(2deg);
    filter: drop-shadow(0 5px 7px rgba(0,0,0,.35));
}

.mbx-marker:active {
    transform: translateY(0) scale(.96);
}

/* Icon */
.mbx-marker__icon {
    position: absolute;
    left: 50%;
    top: 50%;

    transform: translate(-50%, -55%);

    font-size: 26px;
    line-height: 1;
    color: #fff;

    display: grid;
    place-items: center;

    text-shadow: 0 1px 2px rgba(0,0,0, 0.8);
}

/* ===== PLACE (teardrop pin) ===== */
.mbx-marker--place {
    width: var(--size);
    height: var(--size);
}

.mbx-marker--place::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--m);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

/* small highlight */
.mbx-marker--place::after {
    content: "";
    position: absolute;
    inset: 4.5px 4.5px auto auto;
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,.25);
    border-radius: 999px;
}

/* ===== EVENT (diamond) ===== */
.mbx-marker--event::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--m);
    transform: rotate(45deg);
    border-radius: 8px;
}

.mbx-marker--event .mbx-marker__icon {
    position: absolute;
    left: 50%;
    top: 50%;

    transform: translate(-50%, -55%);

    font-size: 26px;
    line-height: 1;
    color: #fff;

    display: grid;
    place-items: center;

    text-shadow: 0 1px 2px rgba(0,0,0, 0.8);
}

/* ===== HUB (rounded square) ===== */
.mbx-marker--hub::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--m);
    border-radius: 10px;
    width: 55px;
    height: 55px;
}

.mbx-marker--hub .mbx-marker__icon {
    position: absolute;
    left: 50%;
    top: 50%;

    transform: translate(-30%, -40%);

    font-size: 30px;
    line-height: 1;
    color: #fff;

    display: grid;
    place-items: center;

    text-shadow: 0 1px 2px rgba(0,0,0, 0.8);
}

/* ===== CLUSTER ===== */
.mbx-marker--cluster {
    --size: 48px;
}

.mbx-marker--cluster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--m);
    border-radius: 999px;
}

.mbx-marker--cluster .mbx-marker__icon {
    display: none;
}

.mbx-marker__count {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font: 700 13px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
}




/* 
    Animations
*/

.anim-spin {
    animation: spin 4s linear infinite;
}

.anim-start-on-visible {
    opacity: 0;
}

    .anim-start-on-visible.anim-start-slide-left {
        animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }

    .anim-start-on-visible.anim-start-slide-right {
        animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }

    .anim-start-on-visible.anim-start-grow-vertical {
        animation: growVertical 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }

.anim-appear {  
    animation: appear 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.anim-disappear {  
    animation: disappear 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.anim-slide-up {  
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.anim-slide-down {  
    animation: slideInDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.anim-slide-left {  
    animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.anim-slide-right {  
    animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.anim-grow-vertical {  
    animation: growVertical 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform: scaleY(0);
}

.anim-shrink-vertical {  
    animation: shrinkVertical 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform: scaleY(1);
}

.anim-order-1 {
    animation-delay: 0.1s;
}

.anim-order-2 {
    animation-delay: 0.2s;
}

.anim-order-3 {
    animation-delay: 0.3s;
}

.anim-order-4 {
    animation-delay: 0.4s;
}

.anim-order-5 {
    animation-delay: 0.5s;
}

.anim-order-6 {
    animation-delay: 0.6s;
}

.anim-order-7 {
    animation-delay: 0.7s;
}

@keyframes spin { 
    100% { 
        transform: rotate(360deg); 
    } 
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes growVertical {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

@keyframes shrinkVertical {
    from {
        transform: scaleY(1);
    }
    to {
        transform: scaleY(0);
    }
}

@keyframes appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes disappear {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}