@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    overflow: hidden;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    line-height: 1.4;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

.layout {
    display: flex;
    height: 100vh;
}

.layout__sidebar,
.layout__content {
    min-height: 100vh;
}

.layout__sidebar--narrow {
    flex: 0 0 90px;
    background-color: #293A4C;
}

.layout__sidebar--wide {
    flex: 0 0 350px;
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    background-color: #ffffff;
}

.layout__content {
    flex: 1 1 auto;
    min-width: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: 24px;
    background-color: #b9cc8b;
    background-image: url('/img/bg.png');
    background-repeat: repeat;
    background-position: top left;
}

.page-settings .layout__content {
    background: #FFFFFF;
}

.layout__sidebar--wide,
.layout__content {
    -ms-overflow-style: none;
}

.layout__sidebar--wide::-webkit-scrollbar,
.layout__content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.sidebar-menu__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 90px;
    height: 90px;
    color: #8393A3;
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-menu__item:hover {
    background-color: #17212B;
}

.sidebar-menu__item--active {
    color: #5EB5F7;
    background-color: #17212B;
}

.sidebar-menu__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-family: "bootstrap-icons";
    font-size: 34px;
    line-height: 1;
    font-style: normal;
}

.sidebar-menu__icon[data-icon="f3e2"]::before {
    content: "\F3E2";
}

.sidebar-menu__icon[data-icon="f4d7"]::before {
    content: "\F4D7";
}

.sidebar-menu__icon[data-icon="f263"]::before {
    content: "\F263";
}

.sidebar-menu__label {
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
}

.notification-list {
    display: flex;
    flex-direction: column;
}

.notification-list__item {
    height: 90px;
    border-bottom: 1px solid #E5EDF4;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

.notification-list__item:hover {
    background-color: #F4F5F7;
}

.notification-list__item--error {
    background-color: #FFD5D5;
}

.notification-list__item--active {
    border-bottom: 0;
    background-color: #419FD9;
}

.notification-list__item--active:hover {
    background-color: #419FD9;
}

.notification-list__item--active .notification-list__title,
.notification-list__item--active .notification-list__excerpt,
.notification-list__item--active .notification-list__time {
    color: #ffffff;
}

.notification-list__link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    cursor: pointer;
}

.notification-list__main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.notification-list__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.notification-list__title {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #17212B;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
}

.notification-list__status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #E52921;
    font-family: "bootstrap-icons";
    font-size: 16px;
    font-style: normal;
    line-height: 1;
}

.notification-list__status-icon::before {
    content: "\F189";
}

.notification-list__excerpt {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.2;
    color: #999999;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-list__source {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: #232323;
    background: #F1F1F1;
    padding: 4px 10px;
    border-radius: 10px;
}

.notification-list__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
}

.notification-list__time {
    display: block;
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.2;
    color: #999999;
}

.notification-list__count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background-color: #419FD9;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.message-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-feed__item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid #E5EDF4;
    border-radius: 20px;
    background-color: #ffffff;
}

.message-feed__item--error {
    background-color: #FFDA2D;
    border-color: #FFDA2D;
}

.message-feed__item--error .message-feed__title,
.message-feed__item--error .message-feed__text {
    color: #000000;
}

.message-feed__item--error .message-feed__datetime {
    color: #826B00;
}

.message-feed__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    color: #17212B;
}

.message-feed__text {
    font-size: 16px;
    line-height: 1.55;
    color: #4D5C6B;
}

.message-feed__datetime {
    font-size: 14px;
    line-height: 1.2;
    color: #8393A3;
}

.message-feed__load-more {
    text-align: center;
}

.message-feed__load-more-btn {
    padding: 10px 18px;
    border: 1px solid #D7E1EA;
    border-radius: 999px;
    background-color: #ffffff;
    color: #0C78ED;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.message-feed__load-more-btn:hover {
    background-color: #E8F3FF;
}

.message-feed__service {
    text-align: center;
}

.message-feed__service-text {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 999px;
    background-color: #ffffff;
    color: #17212B;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.settings-tree__list,
.settings-tree__sublist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-tree__group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-tree__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-radius: 16px;
    color: #17212B;
    font-size: 16px;
    line-height: 1.2;
}

.settings-tree__label {
    min-width: 0;
}

.settings-tree__actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 50px;
    white-space: nowrap;
}

.settings-tree__actions button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #838689;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
}

.settings-tree__actions button:first-of-type:hover {
    color: #0C78ED;
}

.settings-tree__actions button:last-of-type:hover {
    color: #E52921;
}

.settings-tree__select {
    height: 32px;
    padding: 0 8px;
    border: 1px solid #D7E1EA;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #17212B;
    font-size: 14px;
    cursor: pointer;
}

.settings-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.settings-switch__input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
}

.settings-switch__slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background-color: #C9CDD2;
    transition: background-color 0.2s ease;
}

.settings-switch__slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #FFFFFF;
    transition: transform 0.2s ease;
}

.settings-switch__input:checked + .settings-switch__slider {
    background-color: #0C78ED;
}

.settings-switch__input:checked + .settings-switch__slider::before {
    transform: translateX(20px);
}

.settings-tree__item--level-1 {
    margin-left: -20px;
    background-color: #FFFFFF;
}

.settings-tree__item--level-1 .settings-tree__label {
    font-size: 20px;
    font-weight: 500;
}

.settings-tree__item--level-2 {
    background-color: #F0F0F0;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 420px;
    padding: 32px;
    border: 1px solid #E5EDF4;
    border-radius: 24px;
    background-color: #FFFFFF;
}

.profile-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background-color: #F0F4F8;
    color: #0C78ED;
    font-size: 40px;
}

.profile-card__name {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: #17212B;
}

.profile-card__setting {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-card__setting-label {
    font-size: 16px;
    line-height: 1.2;
    color: #17212B;
}

.profile-card__logout {
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    background-color: #E52921;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.profile-card__hint {
    font-size: 14px;
    line-height: 1.4;
    color: #8393A3;
}

.profile-card__hint a {
    color: #0C78ED;
    text-decoration: underline;
}

.profile-card__status {
    padding: 12px 16px;
    border-radius: 12px;
    background-color: #E8F3FF;
    color: #0C78ED;
    font-size: 14px;
    line-height: 1.4;
}

.profile-card__setting--stacked {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.profile-card__select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #D7E1EA;
    border-radius: 10px;
    background-color: #FFFFFF;
    color: #17212B;
    font-size: 14px;
    cursor: pointer;
}

.profile-card__select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-card__cleanup-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-card__danger-btn {
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background-color: #E52921;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: #F4F7FB;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 32px;
    border: 1px solid #E5EDF4;
    border-radius: 24px;
    background-color: #FFFFFF;
}

.auth-card__title {
    margin-bottom: 24px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: #17212B;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form__remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-form__label {
    font-size: 14px;
    line-height: 1.2;
    color: #4D5C6B;
}

.auth-form__label--inline {
    margin: 0;
}

.auth-form__input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #D7E1EA;
    border-radius: 12px;
    background-color: #FFFFFF;
    color: #17212B;
}

.auth-form__submit {
    height: 48px;
    border: 0;
    border-radius: 12px;
    background-color: #0C78ED;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.auth-form__status,
.auth-form__error {
    font-size: 14px;
    line-height: 1.4;
}

.auth-form__status {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background-color: #E8F3FF;
    color: #0C78ED;
}

.auth-form__error {
    color: #E52921;
}
