.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet-overlay.layered {
    z-index: 1150;
    background-color: rgba(0, 0, 0, 0.7);
}

.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.bottom-sheet-overlay.active .bottom-sheet {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 40px;
    height: 5px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin: 12px auto 8px;
    flex-shrink: 0;
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.bottom-sheet-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.bottom-sheet-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.bottom-sheet-close:hover {
    background: var(--bg-primary);
    transform: scale(1.05);
}

.bottom-sheet-close:active {
    transform: scale(0.95);
}

.bottom-sheet-close .material-symbols-outlined {
    font-size: 20px;
    color: var(--text-secondary);
}

.bottom-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 24px;
    overscroll-behavior: contain;
}

.bottom-sheet-search {
    padding: 12px 20px;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
}

.bottom-sheet-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bottom-sheet-search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.bottom-sheet-search-input::placeholder {
    color: var(--text-muted);
}

.bottom-sheet-search-wrapper {
    position: relative;
}

.bottom-sheet-search-wrapper .material-symbols-outlined {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.select-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    position: relative;
}

.select-item:hover {
    background: var(--bg-tertiary);
}

.select-item:active {
    background: var(--bg-primary);
}

.select-item.selected {
    background: var(--accent-muted);
}

.select-item.selected::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 0 4px 4px 0;
}

.select-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-primary);
    flex-shrink: 0;
}

.select-item-icon .material-symbols-outlined {
    font-size: 22px;
    color: var(--accent-primary);
}

.select-item-content {
    flex: 1;
    min-width: 0;
}

.select-item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.select-item-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.select-item-badge {
    padding: 4px 8px;
    background: var(--accent-muted);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-primary);
}

.select-item-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.select-item.selected .select-item-check {
    opacity: 1;
}

.category-header {
    padding: 16px 20px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 5;
}

.category-header:not(:first-child) {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 24px;
}

.provider-color-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .bottom-sheet-overlay {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .bottom-sheet {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        max-width: 420px;
        width: 100%;
        max-height: 70vh;
        border-radius: 20px;
        transform: scale(0.95) translateY(20px);
        opacity: 0;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    }

    .bottom-sheet-overlay.active .bottom-sheet {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    .bottom-sheet-handle {
        display: none;
    }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
}

.empty-state .material-symbols-outlined {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 14px;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.no-results .material-symbols-outlined {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}
