.dashboard-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
}

.dashboard-filter__form {
    margin: 0;
}

.dashboard-filter .dropdown {
    min-width: 220px;
    position: relative;
}

.dashboard-filter .dropdown-trigger .button {
    border-radius: 0.7rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    font-weight: 600;
    color: #1f2937;
    background: #fff;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-filter .dropdown-menu {
    min-width: 240px;
    border-radius: 0.7rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-top: 0.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 35;
    padding-top: 0.4rem;
    display: none;
}

.dashboard-filter .dropdown-content {
    border-radius: 0.7rem;
    padding: 0.5rem 0;
    background: #fff;
    max-height: 16rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.dashboard-filter .dropdown-item {
    font-size: 1rem;
    padding: 0.7rem 1.2rem 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.5rem;
    color: #1f2937;
    transition: background 0.15s;
}

.dashboard-filter .dropdown-item.is-active,
.dashboard-filter .dropdown-item:hover {
    background: #f1f3f4;
    color: #0542fc;
}

.dashboard-filter .dropdown-item .icon.is-right {
    margin-left: auto;
    color: #22c55e;
    font-size: 1.2em;
}

.dashboard-filter .dropdown.is-active .dropdown-menu {
    display: block;
}

.dashboard-filter__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-filter__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0.4rem 0.55rem 0.4rem 0.7rem;
}

.dashboard-filter__tag-remove {
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.dashboard-filter__clear {
    color: #0542fc !important;
    font-weight: 600;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.dashboard-filter__content {
    transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
    .dashboard-filter .dropdown,
    .dashboard-filter .dropdown-menu,
    .dashboard-filter .dropdown-trigger,
    .dashboard-filter .dropdown-trigger .button {
        width: 100%;
    }

    .dashboard-filter .dropdown-menu {
        left: 0;
        right: auto;
    }
}
