.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--bg);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text);
    margin: 0;
}

.closeButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 20px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;

    &:hover {
        color: var(--text);
        background: var(--bg-hover);
    }
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    gap: 8px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;

    &:hover {
        color: var(--text);
        background: var(--bg-hover);
    }

    &.active {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

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

.formGroup {
    display: flex;
    flex-direction: column;
}

.label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

.input,
.select,
.textarea {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

.textarea {
    resize: vertical;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
}

.footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.buttonSecondary {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
}

.buttonPrimary {
    border: none;
    background: var(--accent);
    color: var(--accent-text);
}

.inputRow {
    display: flex;
    gap: 8px;
}

.inputRow .input {
    flex: 1;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.tokenList {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tokenItem {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-active);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}

.tokenRemoveButton {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 2px;
    font-size: 14px;
    color: var(--text-muted);
}

.emptyText {
    color: var(--text-muted);
}
