@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Iosevka+Charon+Mono:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@font-face {
    font-family: 'SF-Pro-Display';
    src: url('fonts/SF-Pro-Display-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Оптимизация загрузки */
}

@font-face {
    font-family: 'SF-Pro-Display-light';
    src: url('fonts/SF-Pro-Display-Light.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; 
}

:root{
    --primary-color: #ffffff;
    --secondary-color: #E2E6EE;
    --mc_colors: #F0F2F5;
}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


body {
    margin: 0;
    background-color: var(--secondary-color);
}
body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;  
    background: linear-gradient(to top, #e2e6eec9, transparent);
    pointer-events: none;  
    z-index: 2;
}


.all{
    display: flex;
    justify-content: center;
    width: 100%;
}
#app{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    height: 100dvh;
    z-index: 1;
    position: relative;
}
#ErrorPage{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    height: 100dvh;
    z-index: 1;
    position: relative;
}
#header{
    display: flex;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
.header_item{
    display: flex;
    align-items: center;
}
#header_logo_text {
    margin-left: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 45px;
}
#header_logo_text p{
    margin: 0;
    font-family: "Oswald";
    font-weight: 800;
    font-size: 20px;
    text-transform: uppercase;
    line-height: 1;
}
#header_logo_svg{
    width: 45px;
    height: 45px;
}
#header_right_balance{
    padding: 4px;
    background-color: var(--mc_colors);
    border-radius: 7.5px;
    display: flex;
    align-items: center;
}
#balance_add_button{
    width: 25px;
    height: 25px;
    background-color: #FFFFFF;
    border-radius: 7.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
#balance{
    line-height: 1;
    margin-left: 4px;
    margin-right: 6px;
    font-family: "SF-Pro-Display";
    font-size: 16px;
}
#avatar{
    height: 45px;
    width: 45px;
    border-radius: 15px;
    margin-left: 10px;
}
#menu_buttons{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: fixed;
    bottom: 30px;
    z-index: 5;
}
#menu_mainButtons{
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 15px;
    border-radius: 15px;
    background-color: #ffffff;
    gap: 15px;
    box-shadow: 0px 0px 10px var(--secondary-color);
}
.menu_button{
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 70px;
    transition: all 1s ease-in-out;
    position: relative;
}
.Podpis{
    margin-top: 5px;
    font-family: "Inter", monospace;
    font-weight: 400;
    font-size: 12px;
    color: #292D32;
    font-weight: 600;
    font-size: 13px;
}
.menu_button path{
    fill: #292D32;
}
.menu_button svg{
    width: 32px;
    height: 36px;
}
.active_menu_button path{
    fill: #0075F8;
}
.active_menu_button .Podpis{
    color: #0075F8;
}
#panels{
    box-sizing: border-box;
    display: flex;
    flex-direction: column;    
    padding: 15px;
    width: 100%;
    position: relative;
    z-index: 1;
}
#panels > div{
    justify-content: center;
    display: flex;
}
#panel_main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-family: "Inter";
    font-weight: 500;    
    color: #292D32;
}
#panel_profile{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
#panel_loading{
    display: flex;
    flex-direction: column;
    align-items: center;
}
#loadingText{
    font-family: "Inter";
    font-weight: 400;
    font-size: 28px;
    color: #292D32;
}
.waiter{
    width: 250px;
    height: 250px;
}
.waiter circle{
    fill: #0075F8;
    r: 13px;
}
.error-title{
    font-family: "Inter";
    font-weight: 700;
    font-size: 46px;
    color: #292D32;
    margin: 0;
}
.error-description{
    font-family: "Inter";
    font-weight: 500;
    font-size: 23px;
    color: #292D32;
    text-align: center;
    margin: 0;
}
.ERRORIcon{
    width: 300px;
    height: 300px;
}
.ERRORIcon path{
    fill: #b10000;
}
.soonTasks{
    position: absolute;
    right: 0;
    bottom: 18px;
    font-family: "Inter";
    font-weight: 500;
    font-size: 10px;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
    background-color: #0075F8;
    padding: 1px 3px;
    border-radius: 3px;
}
#panel_tasks{
    font-family: "SF-Pro-Display";
    font-size: 16px;
    line-height: 1;
    color: #6c6c6c;
}

.switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
            flex-shrink: 0;
        }

        /* Скрываем стандартный чекбокс (он будет невидим, но доступен для управления) */
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        /* Слайдер (фон переключателя) */
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .slider::before {
            content: "";
            position: absolute;
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .switch input:checked + .slider {
            background-color: #2196F3;
        }

        .switch input:checked + .slider::before {
            transform: translateX(26px);
        }

        .switch input:focus-visible + .slider {
            outline: 2px solid #0a58ca;
            outline-offset: 2px;
        }
        
        /* --- Информация о состоянии (для наглядности) --- */
        .status-label {
            font-size: 16px;
            color: #333;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .status-text {
            font-weight: 600;
            min-width: 70px;
            transition: color 0.3s;
        }

        .status-text.on {
            color: #2196F3;
        }
        .status-text.off {
            color: #888;
        }