@import url('https://fonts.googleapis.com/css?family=Nunito&display=swap');
@import url('https://fonts.googleapis.com/css?family=Zen+Dots&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Flow+Block&display=swap');

/* THEME */
:root{
    --bg-color: #f7f7f7;
    --text-color: #070906;
    --placeholder-text-color: #5a5c5f;
    --nav-bg-color: #fef4ea;
    --nav-border-color: #e9dfd5;
    --nav-btn-bg: #d3d3dd;
    --nav-btn-bg-hover: #b5b5bd;
    --nav-btn-bg-active: #a1a1aa;
    --nav-svg-fill: #303030;
    --nav-menu-bg: #efeff1;
    --nav-menu-color: #1f1f23;
    --nav-menu-hr-bg: #a1a1bd;
    --nav-menu-ele-hover-bg: #c5c5d3;
    --nav-menu-ele-active-bg: #adadb6;
    --nav-menu-ele-svg-fill: #3e3e42;
    --main-notification-bg: #efeff1;
    --main-notification-border-color: #d3d3dd;
    --main-notification-details-color: #9999a9;
    --main-notification-btn-close-bg: #d3d3dd;
    --main-notification-btn-close-bg-hover: #c5c5d3;
    --main-notification-btn-close-bg-active: #adadb6;
    --main-notification-btn-close-color: #444;
    --main-notification-btn-close-color-hover: #2a2a2a;
    --main-notification-btn-close-color-active: #1f1f1f;
}

.dark-theme{
    --bg-color: #0e0e10;
    --text-color: #f5f5f8;
    --bg-main-loader: #000000dd;
    --placeholder-text-color: #8c8f94;
    --nav-bg-color: #18181b;
    --nav-border-color: #151518;
    --nav-btn-bg: #2f2f35;
    --nav-btn-bg-hover: #3c3c44;
    --nav-btn-bg-active: #4b4b57;
    --nav-svg-fill: #efeff1;
    --nav-menu-bg: #1f1f23;
    --nav-menu-color: #efeff1;
    --nav-menu-hr-bg: #38383f;
    --nav-menu-ele-hover-bg: #3c3c44;
    --nav-menu-ele-active-bg: #4d4d55;
    --nav-menu-ele-svg-fill: #efeff1;
    --main-notification-bg: #2f2f35;
    --main-notification-border-color: #4b4b57;
    --main-notification-details-color: #9999a9;
    --main-notification-btn-close-bg: #18181b;
    --main-notification-btn-close-bg-hover: #0f0f11;
    --main-notification-btn-close-bg-active: #0c0c0e;
    --main-notification-btn-close-color: #ccc;
    --main-notification-btn-close-color-hover: #ddd;
    --main-notification-btn-close-color-active: #fff;
}

/* MAIN */
html{
    font-size: 100%;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
    font-family: "Unbounded";
    font-size: 1rem;
    margin: 0;
}

main-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000dd;
    z-index: 99999;
    transition: 0.5s;
    display: none;
    opacity: 0;
}

main-loader svg{
    position: fixed;
    top: calc(50vh - 1.25rem);
    left: calc(50vw - 1.25rem);
    width: 2.5rem;
    height: 2.5rem;
    fill: #ff6934;
    animation: loader-spin 1s linear infinite;
}

main-notification{
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    z-index: 99;
}

.main_notification{
    font-family: "Unbounded";
    width: 352px;
    padding: 12px;
    border-radius: 4px;
    background: var(--main-notification-bg);
    border: 2px solid var(--main-notification-border-color);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.main_notification_label{
    font-size: 14px;
    font-weight: bold;
    color: #ff6934;
}

.main_notification_message{
    font-size: 14px;
    margin-top: 5px;
}

.main_notification_details{
    font-size: 12px;
    margin-top: 12px;
    border-radius: 4px;
    padding: 8px;
    width: calc(100% - 16px);
    background: #4b4b57;
    color: #e1e1ed;
    line-height: 16px;
}

.main_notification_btn_show_details{
    font-size: 12px;
    margin-top: 12px;
    color: var(--main-notification-details-color);
    padding: 9px 0;
    width: fit-content;
    border-radius: 4px;
    float: left;
}

.main_notification_btn_show_details:hover{
    cursor: pointer;
    text-decoration: underline;
}

.main_notification_btn_close{
    font-size: 14px;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--main-notification-btn-close-bg);
    color: var(--main-notification-btn-close-color);
    width: fit-content;
    border-radius: 4px;
    float: right;
}

.main_notification_btn_close:hover{
    cursor: pointer;
    background: var(--main-notification-btn-close-bg-hover);
    color: var(--main-notification-btn-close-color-hover);
}

.main_notification_btn_close:active{
    background: var(--main-notification-btn-close-bg-active);
    color: var(--main-notification-btn-close-color-active);
}

app{
    max-width: 1200px;
    margin: auto;
    padding: 64px 20px 0 20px;
    display: block;
}

/* COMMON */
::selection {
    background: #ff6934;
    color: #1e252b;
}

::-webkit-scrollbar {
    display: none;
}

::placeholder{
    color: var(--placeholder-text-color);
}

.no_selection{
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* NAV */
nav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: var(--nav-bg-color);
    border-bottom: 2px solid var(--nav-border-color);
    z-index: 999;
}

#nav_logo{
    font-family: "Unbounded";
    font-weight: bold;
    font-size: 26px;
    color: #ff6934;
    width: fit-content;
    margin-top: 5px;
    margin-left: 5px;
    margin-right: 10px;
    float: left;
    cursor: pointer;
}

.nav_ele{
    float: left;
    padding: 9px 16px;
    font-size: 18px;
    margin-top: 1px;
    border-radius: 15px;
    transition: 0.1s;
}

.nav_ele:hover{
    cursor: pointer;
    color: #ff6934;
}

.nav_ele:active{
    color: #ff4400;
}

#nav_profile_img{
    height: 40px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 30px;
    float: right;
    cursor: pointer;
}

#nav_chat_btn{
    width: fit-content;
    float: right;
    padding: 7px 16px 7px 11px;
    background: var(--nav-btn-bg);
    border-radius: 30px;
    margin-right: 8px;
    transition: 0.1s;
}

#nav_chat_btn:hover{
    cursor: pointer;
    background: var(--nav-btn-bg-hover);
}

#nav_chat_btn:active{
    background: var(--nav-btn-bg-active);
}

#nav_chat_btn svg{
    width: 24px;
    height: 24px;
    fill: var(--nav-svg-fill);
    transform: translateY(2px);
    margin-right: 8px;
}

#nav_chat_btn span{
    display: block;
    float: right;
    transform: translateY(4px);
}

#nav_notifications_btn{
    width: 24px;
    height: 24px;
    fill: var(--nav-svg-fill);
    float: right;
    padding: 9px;
    background: var(--nav-btn-bg);
    border-radius: 30px;
    margin-right: 8px;
    transition: 0.1s;
}

#nav_notifications_btn:hover{
    cursor: pointer;
    background: var(--nav-btn-bg-hover);
}

#nav_notifications_btn:active{
    background: var(--nav-btn-bg-active);
}

#nav_menu{
    position: fixed;
    top: 66px;
    right: 10px;
    padding: 8px;
    border-radius: 6px;
    color: var(--nav-menu-color);
    background: var(--nav-menu-bg);
    min-width: 300px;
    z-index: 9999;
    transition: 0.1s;
    display: none;
    opacity: 0;
}

#nav_menu_profile{
    height: 40px;
    padding: 8px;
    border-radius: 8px;
}

#nav_menu_profile_img{
    height: 40px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 30px;
    float: left;
}

#nav_menu_profile_name{
    float: left;
    margin-left: 8px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
}

.nav_hr{
    border: unset;
    border-bottom: 1px solid var(--nav-menu-hr-bg);
    margin: 5px 0;
}

.nav_menu_ele{
    font-size: 14px;
    padding: 7px 10px 10px 10px;
    border-radius: 4px;
    transition: 0.1s;
}

.nav_menu_ele:hover{
    cursor: pointer;
    background: var(--nav-menu-ele-hover-bg);
}

.nav_menu_ele:active{
    background: var(--nav-menu-ele-active-bg);
}

.nav_menu_ele svg{
    width: 17px;
    height: 17px;
    fill: var(--nav-menu-ele-svg-fill);
    transform: translateY(3px);
    margin-right: 3px;
}

#nav_menu_dark_theme_on{
    transform: scale(1.5) translateY(2px);
    float: right;
}

#nav_menu_dark_theme_off{
    transform: scale(1.5) translateY(2px);
    float: right;
    display: none;
}

#nav_chats{
    position: fixed;
    top: 66px;
    right: 10px;
    padding: 10px;
    border-radius: 6px;
    color: #efeff1;
    background: #1f1f23;
    width: 350px;
    z-index: 9999;
    transition: 0.1s;
    display: none;
    opacity: 0;
}

#nav_chats_h1{
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

#nav_chats_search {
    width: calc(100% - 30px);
    border: none;
    padding: 12px 15px;
    background: #3c3c44;
    border-radius: 30px;
    color: #fff;
    margin-bottom: 10px;
    outline: none;
    font-family: "Unbounded";
}

.nav_chat_ele{
    padding: 8px;
    border-radius: 6px;
    transition: 0.1s;
}

.nav_chat_ele:hover{
    cursor: pointer;
    background: #3c3c44;
}

.nav_chat_ele_img{
    height: 50px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50px;
}

.nav_chat_ele_{
    float: right;
    width: calc(100% - 60px);
}

.nav_chat_ele_name{
    font-size: 14px;
    margin-top: 8px;
}

.nav_chat_ele_mess{
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

#nav_notifications{
    position: fixed;
    top: 66px;
    right: 10px;
    padding: 10px;
    border-radius: 6px;
    color: #efeff1;
    background: #1f1f23;
    width: 350px;
    z-index: 9999;
    transition: 0.1s;
    display: none;
    opacity: 0;
}

#nav_notifications_h1{
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* SETTINGS */
#settings_h1{
    font-size: 26px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 10px;
}

#app_menu {
    border-bottom: 3px solid #1f1f23;
}

.app_menu_ele{
    width: fit-content;
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
    padding: 10px 5px;
    border-bottom: 3px solid #1f1f23;
    transform: translateY(3px);
    transition: 0.1s;
}

.app_menu_ele:hover{
    cursor: pointer;
    color: #ff6934;
}

.app_menu_ele:active{
    color: #ff4400;
}

.app_menu_ele_active{
    width: fit-content;
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
    padding: 10px 5px;
    border-bottom: 3px solid #ff6934;
    color: #ff6934;
    transform: translateY(3px);
    cursor: pointer;
    transition: 0.1s;
}

.settings_h2{
    font-size: 18px;
    margin-top: 25px;
}

.app_box{
    padding: 20px;
    background: #18181b;
    border: 2px solid #35353b;
    border-radius: 4px;
    margin-top: 15px;
}

#app_profile_img{
    height: 100px;
    aspect-ratio: 1/1;
    border-radius: 100px;
}

#settings_profile_img_{
    display: inline-block;
    transform: translateY(-18px);
    margin-left: 20px;
}

.settings_box_btn{
    font-size: 14px;
    padding: 8px 22px;
    border-radius: 30px;
    background: #2f2f35;
    width: fit-content;
    transition: 0.1s;
}

.settings_box_btn:hover{
    cursor: pointer;
    background: #35353b;
}

.settings_box_btn:active{
    background: #4b4b57;
}

#settings_profile_img_label{
    color: #888;
    font-size: 12px;
    margin-top: 14px;
}

.app_table{
    background: #18181b;
    border: 2px solid #35353b;
    border-radius: 4px;
    margin-top: 15px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    table-layout: fixed;
    font-size: 14px;
}

.app_table td{
    padding: 20px;
    border-bottom: 2px solid #35353b;
}

.app_table tr:last-child td {
    border-bottom: none;
}

.app_table th{
    padding: 20px;
    border-bottom: 2px solid #35353b;
    text-align: left;
    background: #2f2f35;
}

.profile_table{
    background: #18181b;
    border: 2px solid #35353b;
    border-radius: 4px;
    margin-top: 15px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    table-layout: fixed;
    font-size: 14px;
}

.profile_table td{
    padding: 12px 20px;
    border-bottom: 2px solid #35353b;
}

.profile_table tr:last-child td {
    border-bottom: none;
}

.profile_table th{
    padding: 20px;
    border-bottom: 2px solid #35353b;
    text-align: left;
    background: #2f2f35;
}

.profile_table_td_label{
    color: #aaa;
}

#settings_profile_img_delete_btn {
    height: 19px;
    width: 19px;
    fill: #ff6934;
    padding: 7px;
    border-radius: 30px;
    transform: translate(5px, 11px);
}

#settings_profile_img_delete_btn:hover {
    background: #2f2f35;
    fill: #fff;
    cursor: pointer;
}

.settings_value_box {
    width: fit-content;
    padding: 6px 20px;
    border-radius: 6px 0 0 6px;
    border: 1px solid #555;
    background: #28282c;
    color: #adadb8;
    float: left;
    cursor: default;
    margin-top: 2px;
    min-height: 1rem;
}

.settings_value_box_svg_btn {
    height: 19px;
    width: 19px;
    padding: 6px;
    background: #2f2f35;
    fill: #eee;
    border-radius: 0 6px 6px 0;
    margin-top: 2px;
    transition: 0.1s;
}

.settings_value_box_svg_btn:hover{
    cursor: pointer;
    background: #35353b;
    color: #fafafa;
}

.settings_value_box_svg_btn:active{
    background: #414149;
    color: #fff;
}


#popup_bg{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000cc;
    z-index: 9999;
}

.popup_form{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #18181b;
    border-radius: 8px;
    padding: 30px;
    width: 600px;
    z-index: 9999;
}

.popup_form_label {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
}

.popup_form_text {
    margin-top: 10px;
    font-size: 12px;
    color: #ccc;
}

.popup_form_input_label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}

.popup_form_input {
    width: calc(100% - 34px);
    padding: 8px 15px;
    border-radius: 6px;
    background: #18181b;
    border: 2px solid #666;
    margin-top: 8px;
    font-size: 14px;
    color: #fff;
    outline: none;
    font-family: 'Unbounded';
}

.popup_form_input:hover{
    border: 2px solid #7a7a7a;
}

.popup_form_input:focus{
    border: 2px solid #ff6934;
}

.popup_form_input_error {
    width: calc(100% - 34px);
    padding: 8px 15px;
    border-radius: 6px;
    background: #18181b;
    border: 2px solid #ff4f4d;
    margin-top: 8px;
    font-size: 14px;
    color: #fff;
    outline: none;
    font-family: 'Unbounded';
}

.popup_form_input_error_label{
    color: #ff4f4d;
    font-size: 12px;
    margin-top: 2px;
    display: none;
}

.popup_form_btn_cancel {
    background: #2f2f35;
    width: fit-content;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 30px;
    margin-top: 30px;
    float: left;
    transition: 0.1s;
}

.popup_form_btn_cancel:hover{
    cursor: pointer;
    background: #35353b;
}

.popup_form_btn_cancel:active{
    background: #45454e;
    color: #fff;
}

.popup_form_btn_ok {
    background: #ff6934;
    width: fit-content;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 30px;
    margin-top: 30px;
    float: right;
}

.popup_form_btn_ok:hover{
    cursor: pointer;
    background: #e75a26;
    color: #fff;
}

.popup_form_btn_ok:active{
    background: #ff4400;
}

.popup_form_btn_ok_ {
    background: #232328;
    color: #adadb8;
    cursor: no-drop;
    width: fit-content;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 30px;
    margin-top: 30px;
    float: right;
}

.form_error{
    padding: 5px 8px;
    border-radius: 4px;
    background: #941910;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
}

.form_error svg{
    width: 26px;
    height: 26px;
    fill: #fff;
}


#app_profile_bg_img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    margin-top: 20px;
    display: block;
}

#app_profile{
    width: calc(100% - 40px);
    padding: 20px;
    background: #18181b;
    border-radius: 0 0 20px 20px;
}

#app_profile_avatar{
    width: 120px;
    border-radius: 50%;
    margin-top: -80px;
    margin-bottom: 10px;
}

#app_profile_username{
    font-size: 18px;
    font-weight: bold;
}

#app_profile_left, #app_profile_right{
    width: 50%;
    float: left;
}

#app_profile_stats{
    width: fit-content;
    padding: 10px 15px;
    border-radius: 8px;
    background: #2f2f35;
    float: right;
}

.app_profile_stat{
    width: 120px;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    display: inline-block;
    padding: 5px 0;
}

.app_profile_stat span{
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

#app_profile_username {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 2px;
}

.app_profile_role{
    margin-top: 6px;
    font-size: 12px;
    width: fit-content;
    padding: 5px 10px;
    border: 1px solid;
    border-radius: 6px;
    display: inline-block;
    margin-right: 5px;
}

.app_profile_role_blue{
    color: #00c2ff;
    background: #00c2ff1a;
}

.app_profile_role_yellow{
    color: #ffb300;
    background: #ffb3001a;
}

.app_profile_role_green{
    color: #0dff00;
    background: #0dff001a;
}

#bio_label{
    margin-top: 12px;
    color: #eee;
    font-size: 12px;
    font-weight: bold;
}

#bio{
    margin-top: 4px;
    color: #ccc;
    font-size: 14px;
}

/* ANIMATIONS */
@keyframes loader-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}