/* Toolbar */
.vk-layout__toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--toolbar-height);
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-light);
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--content-padding-horizontal);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toolbar-section {
    display: flex;
    align-items: center;
}

.toolbar-section--align-start {
    justify-content: flex-start;
}

.toolbar-section--align-end {
    justify-content: flex-end;
    gap: 13px; /* Athena $gap */
}

/* Search in toolbar */
.toolbar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.toolbar-search__button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--gray-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.15s ease;
    min-width: 40px;
    height: 40px;
}

.toolbar-search__button:hover {
    background-color: var(--cl-super-soft);
}

.toolbar-search__container {
    display: none;
    position: relative;
    align-items: center;
    width: 380px;
    border: 1px solid var(--gray-light);
    border-radius: 24px;
    background-color: var(--white);
    padding: 0 12px;
    height: 40px;
    transition: border-color 0.2s ease;
}

.toolbar-search--expanded .toolbar-search__button {
    display: none;
}

.toolbar-search--expanded .toolbar-search__container {
    display: flex;
}

.toolbar-search__container:focus-within {
    border-color: var(--cl-hard);
    box-shadow: 0 0 0 2px rgba(38, 65, 143, 0.1);
}

.toolbar-search__icon {
    color: var(--gray-dark);
    margin-right: 13px; /* Athena $gap */
    display: flex;
    align-items: center;
}

.toolbar-search__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--gray-darker);
    padding: 0;
}

.toolbar-search__input::placeholder {
    color: var(--gray);
}

.toolbar-search__filter {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 13px; /* Athena $gap */
    transition: color 0.15s ease;
}

.toolbar-search__filter:hover {
    color: var(--gray-darker);
}

.toolbar-search__filter-panel {
    display: none;
    position: absolute;
    top: calc(100% + 13px); /* Athena $gap */
    left: 0;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 380px;
    z-index: 1001;
    padding: 20px;
}

.toolbar-search--filter-open .toolbar-search__filter-panel {
    display: block;
}

.toolbar-search__filter-description {
    font-size: 0.875rem;
    color: var(--gray-dark);
    margin-bottom: 16px;
    line-height: 1.4;
}

.toolbar-search__filter-section {
    margin-bottom: 16px;
}

.toolbar-search__filter-section-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-darker);
    margin-bottom: 12px;
}

.toolbar-search__filter-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    cursor: pointer;
}

.toolbar-search__filter-option:last-child {
    margin-bottom: 0;
}

.toolbar-search__filter-checkbox {
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
}

.toolbar-search__filter-label {
    font-size: 0.875rem;
    color: var(--gray-darker);
    line-height: 1.4;
    cursor: pointer;
    flex: 1;
}

/* Snabbvalsmeny (Quick menu) */
.snabbvalsmeny {
    position: relative;
}

.snabbvalsmeny__button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--gray-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.15s ease;
    min-width: 40px;
    height: 40px;
    position: relative;
}

.snabbvalsmeny__button:hover {
    background-color: var(--cl-super-soft);
}

.snabbvalsmeny__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--cl-red);
    color: var(--white);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.snabbvalsmeny__menu {
    display: none;
    position: absolute;
    top: calc(100% + 13px); /* Athena $gap */
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 480px;
    z-index: 1000;
    padding: 24px;
}

.snabbvalsmeny--open .snabbvalsmeny__menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 13px; /* Athena $gap for horizontal */
}

.snabbvalsmeny__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.15s ease;
    font-size: 0.75rem;
    color: var(--gray-darker);
    text-decoration: none;
    border: none;
    background: none;
    text-align: center;
    gap: 10px;
    width: 100%;
}

.snabbvalsmeny__item:hover {
    transform: scale(1.05);
}

.snabbvalsmeny__item-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    flex-shrink: 0;
    position: relative;
}

.snabbvalsmeny__item-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--cl-red);
    color: var(--white);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.snabbvalsmeny__item span {
    line-height: 1.2;
    max-width: 90px;
    word-wrap: break-word;
}

.snabbvalsmeny__item-icon--purple {
    background-color: #9575cd;
}

.snabbvalsmeny__item-icon--orange {
    background-color: #ff8a65;
}

.snabbvalsmeny__item-icon--cyan {
    background-color: #4dd0e1;
}

.snabbvalsmeny__item-icon--green {
    background-color: #4db6ac;
}

.snabbvalsmeny__item-icon--yellow {
    background-color: #ffd54f;
}

/* Notifications with badge */
.toolbar-notifications {
    position: relative;
}

.toolbar-notifications__button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--gray-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.15s ease;
    position: relative;
}

.toolbar-notifications__button:hover {
    background-color: var(--cl-super-soft);
}

.toolbar-notifications__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--cl-red);
    color: var(--white);
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0 4px;
}

.toolbar-notifications__badge:empty,
.toolbar-notifications__badge[data-count="0"] {
    display: none;
}

.toolbar-notifications__panel {
    display: none;
    position: absolute;
    top: calc(100% + 13px); /* Athena $gap */
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 380px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
}

.toolbar-notifications--open .toolbar-notifications__panel {
    display: block;
}

.toolbar-notifications__header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-lighter);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-darker);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toolbar-notifications__list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.toolbar-notifications__item {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-lighter);
    cursor: pointer;
    transition: background-color 0.15s ease;
    gap: 13px; /* Athena $gap */
}

.toolbar-notifications__item:hover {
    background-color: var(--cl-super-soft);
}

.toolbar-notifications__item:last-child {
    border-bottom: none;
}

.toolbar-notifications__item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--cl-hard);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toolbar-notifications__item-content {
    flex: 1;
    min-width: 0;
}

.toolbar-notifications__item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-darker);
    margin: 0 0 4px 0;
}

.toolbar-notifications__item-message {
    font-size: 0.813rem;
    color: var(--gray-dark);
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.toolbar-notifications__item-time {
    font-size: 0.75rem;
    color: var(--gray);
}

.toolbar-notifications__footer {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid var(--gray-lighter);
}

.toolbar-notifications__footer-link {
    color: var(--cl-hard);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    display: inline-block;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.toolbar-notifications__footer-link:hover {
    background-color: var(--cl-super-soft);
}

/* User name display */
.toolbar-user {
    position: relative;
}

.toolbar-user__button {
    display: flex;
    align-items: center;
    gap: 13px; /* Athena $gap */
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    background: none;
    border: none;
}

.toolbar-user__button:hover {
    background-color: var(--cl-super-soft);
}

.toolbar-user__icon {
    color: var(--gray-dark);
}

.toolbar-user__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #6b8ed9;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    overflow: hidden;
}

.toolbar-user__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.toolbar-user__name {
    font-size: 0.875rem;
    color: var(--gray-darker);
    font-weight: 400;
}

.toolbar-user__menu {
    display: none;
    position: absolute;
    top: calc(100% + 13px); /* Athena $gap */
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    padding: 13px 0; /* Athena $gap */
}

.toolbar-user--open .toolbar-user__menu {
    display: block;
}

.toolbar-user__menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 0.875rem;
    color: var(--gray-darker);
    text-decoration: none;
    gap: 13px; /* Athena $gap */
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.toolbar-user__menu-item:hover {
    background-color: var(--cl-super-soft);
}

.toolbar-user__menu-item i {
    color: var(--gray-dark);
    font-size: 20px;
}

.toolbar-logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--cl-hard);
    text-decoration: none;
}

/* Logo Styling */
.vk-layout__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

/* Desktop Logo Styling */
@media (min-width: 1280px) {
    .vk-layout__logo {
        position: relative;
        left: 65px;
        border-left: solid 1px var(--gray-light);
        height: 37px;
    }

    .vk-layout__logo__symbol {
        width: 44px;
        height: 28.45px;
        position: relative;
        left: -65px;
    }

    .vk-layout__logo__text {
        width: 58px;
        height: 15.5px;
        position: relative;
        left: -24px;
    }
}

/* Tablet Logo Styling */
@media (min-width: 600px) and (max-width: 1279px) {
    .vk-layout__logo {
        position: relative;
        left: 46.2px;
        height: 37px;
    }

    .vk-layout__logo__symbol {
        width: 40.2px;
        height: 26px;
        position: relative;
        left: -46.2px;
    }

    .vk-layout__logo__text {
        width: 58px;
        height: 15.5px;
        position: relative;
        left: -33px;
    }
}

/* Mobile Logo Styling */
@media (max-width: 599px) {
    .vk-layout__logo__symbol {
        width: 40.2px;
        height: 26px;
    }

    .vk-layout__logo__text {
        width: 48.75px;
        height: 13px;
        margin-left: 15px;
    }
}

/* Toolbar responsive */
@media (max-width: 959px) {
    .toolbar-search__container {
        width: 280px;
    }
}

@media (max-width: 599px) {
    .toolbar-search__container {
        width: 240px;
    }

    .toolbar-user__name {
        display: none;
    }
}

