/* Header */
.header {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 20px;
}

.header-title {
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    color: var(--main-dark);
    min-width: 152px;
}

/* Search */
.header-input-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 30px;
    max-width: 361px;
    width: 100%;
    height: 40px;
    background: var(--background-light);
    padding: 0 5px 0 20px;
}

.header-input {
    font-style: italic;
    font-weight: 600;
    font-size: 13px;
    color: var(--main-dark);
    width: 100%;
    height: 100%;
    background: transparent;
}

.header-input::placeholder {
    color: var(--light-grey);
}

.header-input:hover::placeholder {
    color: var(--accent-color);
}

.header-input:focus {
    color: var(--accent-color);
}

.header-search-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--light-grey);
    border-radius: 20px;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.header-search-btn:hover {
    background: var(--accent-color);
}

.header-search-btn:active {
    background: var(--main-dark);
}

/* Action Buttons */
.header-btn-container {
    position: relative;
    width: 188px;
}

.header-main-btn-wrap {
    position: relative;
    width: 188px;
    border: 0.87px solid var(--main-light);
    border-radius: 15px;
    background: var(--main-light);
}

.header-btn {
    display: flex;
    align-items: center;
    border-radius: 20px;
    width: 187px;
    height: 30px;
    background: var(--main-light);
    padding-left: 6px;
}

.header-btn:hover {
    background: var(--accent-color);
}

.header-btn:active {
    background: var(--main-dark);
}

.header-btn-text {
    font-style: italic;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: -0.03em;
    color: var(--white);
}

.header-btn svg {
    margin-left: auto;
}

.header-btn-list {
    display: flex;
    flex-direction: column;
    align-items: start;
    row-gap: 3px;
    width: 100%;
    padding: 0 10px 5px 10px;
}

.header-btn-list.header-list-active {
    display: none;
}

.header-btn-item {
    width: 100%;
}

.header-btn-item-link {
    display: inline-flex;
    font-style: italic;
    font-weight: 600;
    font-size: 12px;
    line-height: 117%;
    color: var(--white);
    width: 100%;
    padding: 5px;
    border-radius: 5px;
}

.header-btn-item-link:hover {
    background: var(--accent-color);
}

/* User Info */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 336px;
    width: 100%;
    column-gap: var(--spacing-md);
}

.header-time-text {
    font-style: italic;
    font-weight: 600;
    font-size: 10px;
    line-height: 150%;
    color: var(--main-light);
}

.header-date-text {
    font-style: italic;
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    color: var(--main-light);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.header-country-select-btn {
    display: flex;
    align-items: center;
    column-gap: 3px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.header-country-select-btn:hover {
    background: var(--background-grey);
}

.header-country-select-button-col {
    display: flex;
    align-items: center;
    column-gap: 3px;
}

.header-country-select-button-col span {
    font-style: italic;
    font-weight: 600;
    font-size: 13px;
    line-height: 150%;
    color: var(--main-light);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 150px;
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.language-dropdown.show {
    max-height: 500px;
    opacity: 1;
}

.language-dropdown form {
    padding: 5px 0;
    margin: 0;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
    font-style: italic;
}

.language-option:hover {
    background: var(--background-grey);
}

.language-option.active {
    background: #e3f2fd;
    font-weight: bold;
}

.language-option img {
    flex-shrink: 0;
}

/* Account Button */
.header-change-account-btn {
    display: flex;
    align-items: center;
    column-gap: 3px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.header-change-account-btn:hover {
    background: var(--background-grey);
}

.header-change-account-col {
    display: flex;
    align-items: center;
    column-gap: 6px;
}

.header-change-account-col span {
    font-style: italic;
    font-weight: 600;
    font-size: 13px;
    line-height: 150%;
    color: var(--main-light);
}